Changeset 80871
- Timestamp:
- 07/19/11 15:18:04 (4 years ago)
- Location:
- trunk/dports/graphics/gvedit
- Files:
-
- 3 added
- 1 copied
-
. (added)
-
Portfile (copied) (copied from trunk/dports/graphics/graphviz/Portfile) (2 diffs)
-
files (added)
-
files/patch-cmd-gvedit-Makefile.am.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/gvedit/Portfile
r80868 r80871 3 3 4 4 PortSystem 1.0 5 PortGroup archcheck 1.0 6 PortGroup xcodeversion 1.0 5 PortGroup qt4 1.0 7 6 8 name g raphviz9 conflicts g raphviz-devel7 name gvedit 8 conflicts gvedit-devel 10 9 set my_name graphviz 11 # keep version in sync between graphviz and graphviz-gui10 # keep version in sync between graphviz, graphviz-gui and gvedit 12 11 version 2.28.0 13 12 categories graphics … … 37 36 rmd160 5a5fae7cb1128d4e863b954bee5f2491ff23ada0 38 37 39 # graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant 40 # graphviz-gui needs Xcode 3.1.2+; see #18811 41 minimum_xcodeversions {9 3.1.2} 38 use_autoreconf yes 42 39 43 depends_lib port:xorg-libXaw \ 44 path:lib/pkgconfig/pango.pc:pango \ 45 port:jpeg \ 46 port:libpng \ 47 port:fontconfig \ 48 port:freetype \ 49 port:expat \ 50 port:gd2 \ 51 port:gts \ 52 port:ghostscript \ 53 port:zlib \ 54 port:gettext 40 depends_lib-append port:graphviz 55 41 56 archcheck.files lib/libXaw.dylib \ 57 lib/libpango-1.0.dylib \ 58 lib/libjpeg.dylib \ 59 lib/libpng.dylib \ 60 lib/libfontconfig.dylib \ 61 lib/libfreetype.dylib \ 62 lib/libexpat.dylib \ 63 lib/libgd.dylib \ 64 lib/libgts.dylib \ 65 lib/libgs.dylib \ 66 lib/libz.dylib \ 67 lib/libintl.dylib 42 patchfiles patch-cmd-gvedit-Makefile.am.diff 68 43 69 depends_build port:pkgconfig 44 configure.args --with-qt 70 45 71 depends_run port:urw-fonts 46 build.dir ${worksrcpath}/cmd/gvedit 72 47 73 configure.args --with-codegens \ 74 --with-x \ 75 --without-devil \ 76 --without-smyrna \ 77 --with-digcola \ 78 --with-ipsepcola \ 79 --without-rsvg \ 80 --with-pangocairo \ 81 --without-glitz \ 82 --with-freetype2 \ 83 --with-fontconfig \ 84 --without-gdk-pixbuf \ 85 --without-gtk \ 86 --without-gtkgl \ 87 --without-gtkglext \ 88 --with-gts \ 89 --without-glade \ 90 --without-gnomeui \ 91 --without-ming \ 92 --without-qt \ 93 --without-quartz \ 94 --disable-swig \ 95 --disable-sharp \ 96 --disable-guile \ 97 --disable-io \ 98 --disable-java \ 99 --disable-lua \ 100 --disable-ocaml \ 101 --disable-perl \ 102 --disable-php \ 103 --disable-python \ 104 --disable-python23 \ 105 --disable-python24 \ 106 --disable-python25 \ 107 --disable-r \ 108 --disable-ruby \ 109 --disable-tcl 110 111 # http://www.graphviz.org/mantisbt/view.php?id=2109 112 patchfiles libltdl.patch 113 use_autoreconf yes 114 autoreconf.args -fvi 115 116 platform macosx { 117 if {${os.major} > 8} { 118 configure.args-delete --without-quartz 119 configure.args-append --with-quartz 120 } 121 } 122 123 variant guile description {Include Guile language bindings} { 124 depends_lib-append port:guile 125 depends_build-append port:swig-guile 126 configure.args-delete --disable-swig \ 127 --disable-guile 128 configure.args-append --enable-guile 129 } 130 131 variant lua description {Include Lua language bindings} { 132 depends_lib-append port:lua 133 depends_build-append port:swig-lua 134 configure.args-delete --disable-swig \ 135 --disable-lua 136 configure.args-append --enable-lua 137 post-patch { 138 reinplace "s|/usr/lib\$LIBPOSTFIX/lua|${prefix}/lib\$LIBPOSTFIX/lua|g" ${worksrcpath}/configure 139 } 140 } 141 142 variant ocaml description {Include Objective Caml language bindings} { 143 depends_lib-append port:ocaml 144 depends_build-append port:swig-ocaml 145 configure.args-delete --disable-swig \ 146 --disable-ocaml 147 configure.args-append --enable-ocaml 148 configure.cppflags-append -I${prefix}/lib/ocaml 149 } 150 151 variant perl description {Include PERL 5 language bindings} { 152 depends_lib-append path:bin/perl:perl5 153 depends_build-append port:swig-perl 154 configure.args-delete --disable-swig \ 155 --disable-perl 156 configure.args-append --enable-perl 157 configure.perl ${prefix}/bin/perl 158 } 159 160 variant php description {Include PHP language bindings} { 161 depends_lib-append path:bin/php:php5 162 depends_build-append port:swig-php5 163 configure.args-delete --disable-swig \ 164 --disable-php 165 configure.args-append --enable-php 166 post-patch { 167 reinplace "s|/usr/include/php|${prefix}/include/php|g" ${worksrcpath}/configure 168 reinplace "s|/usr/lib\${LIBPOSTFIX}/php|${prefix}/lib\${LIBPOSTFIX}/php|g" ${worksrcpath}/configure 169 reinplace "s|/usr/share/php|${prefix}/share/php|g" ${worksrcpath}/configure 170 } 171 } 172 173 variant python24 description {Include Python 2.4 language bindings} conflicts python25 python26 { 174 depends_lib-append port:python24 175 depends_build-append port:swig-python 176 configure.args-delete --disable-swig \ 177 --disable-python 178 configure.args-append --enable-python 179 configure.python ${prefix}/bin/python2.4 180 # The configure script asks python where to install 181 # This doesn't work for 2.4 and 2.5 (see #16334) 182 post-patch { 183 reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.4|" ${worksrcpath}/configure 184 } 185 } 186 187 variant python25 description {Include Python 2.5 language bindings} conflicts python24 python26 { 188 depends_lib-append port:python25 189 depends_build-append port:swig-python 190 configure.args-delete --disable-swig \ 191 --disable-python 192 configure.args-append --enable-python 193 configure.python ${prefix}/bin/python2.5 194 # The configure script asks python where to install 195 # This doesn't work for 2.4 and 2.5 (see #16334) 196 post-patch { 197 reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.5|" ${worksrcpath}/configure 198 } 199 } 200 201 variant python26 description {Include Python 2.6 language bindings} conflicts python24 python25 { 202 depends_lib-append port:python26 203 depends_build-append port:swig-python 204 configure.args-delete --disable-swig \ 205 --disable-python 206 configure.args-append --enable-python 207 configure.python ${prefix}/bin/python2.6 208 } 209 210 variant ruby description {Include Ruby language bindings} { 211 depends_lib-append port:ruby 212 depends_build-append port:swig-ruby 213 configure.args-delete --disable-swig \ 214 --disable-ruby 215 configure.args-append --enable-ruby 216 } 217 218 variant tcl description {Include Tcl language bindings} { 219 depends_lib-append port:tcl 220 depends_build-append port:swig-tcl 221 configure.args-delete --disable-swig \ 222 --disable-tcl 223 configure.args-append --enable-tcl 224 } 225 226 variant java description {Include Java language bindings} { 227 depends_build-append port:swig-java 228 configure.args-delete --disable-swig \ 229 --disable-java 230 configure.args-append --enable-java 231 } 232 233 variant smyrna description {Include the Smyrna large graph viewer} { 234 configure.args-delete --without-smyrna \ 235 --without-gtk \ 236 --without-gtkglext \ 237 --without-glade 238 configure.args-append --with-smyrna \ 239 --with-gtk \ 240 --with-gtkglext \ 241 --with-glade 242 depends_lib-append port:gtk2 \ 243 port:gtkglext \ 244 port:libglade2 245 archcheck.files-append bin/gtk-demo \ 246 lib/libgtkglext-x11-1.0.dylib \ 247 lib/libglade-2.0.dylib 248 } 249 250 variant r description {Include R language bindings} { 251 depends_build-append port:swig-r 252 configure.args-delete --disable-swig \ 253 --disable-r 254 configure.args-append --enable-r 255 } 256 257 variant rsvg description {enable the rsvg plugin} { 258 depends_lib-append port:librsvg 259 archcheck.files-append lib/librsvg-2.dylib 260 configure.args-delete --without-rsvg 261 configure.args-append --with-rsvg 262 } 263 264 variant gdk_pixbuf description {enable the gdk_pixbuf plugin} { 265 depends_lib-append port:gtk2 266 archcheck.files-append bin/gtk-demo 267 configure.args-delete --without-gdk-pixbuf 268 configure.args-append --with-gdk-pixbuf 269 } 270 271 variant glitz description {enable the incomplete glitz plugin} { 272 depends_lib-append port:glitz 273 archcheck.files-append lib/libglitz.dylib 274 configure.args-delete --without-glitz 275 configure.args-append --with-glitz 276 } 277 278 variant ming description {enable the incomplete ming plugin} { 279 depends_lib-append port:ming 280 archcheck.files-append lib/libming.dylib 281 configure.args-delete --without-ming 282 configure.args-append --with-ming 283 } 284 285 variant no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} { 286 depends_lib-delete path:lib/pkgconfig/pango.pc:pango 287 archcheck.files-delete lib/libpango-1.0.dylib 288 configure.args-delete --with-pangocairo 289 configure.args-append --without-pangocairo 290 } 291 292 variant no_x11 requires no_pangocairo { 293 depends_lib-delete port:xorg-libXaw 294 archcheck.files-delete lib/libXaw.dylib 295 configure.args-append --without-x 296 } 297 298 post-destroot { 299 # Make the configuration file that makes the plugins work. 300 system "GVBINDIR=${destroot}${prefix}/lib/graphviz DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/dot -c" 301 } 302 303 pre-install { 304 # Remove old configuration files left behind by old versions of this port. 305 foreach file [glob -nocomplain -directory ${prefix}/lib/graphviz config*] { 306 delete ${file} 307 } 308 } 309 310 # keep livecheck in sync between graphviz and graphviz-gui 48 # keep livecheck in sync between graphviz, graphviz-gui and gvedit 311 49 livecheck.type regex 312 50 livecheck.url ${homepage}Download_source.php
Note: See TracChangeset
for help on using the changeset viewer.

