[45084] trunk/dports/graphics/graphviz/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Thu Jan 8 02:40:15 PST 2009
Revision: 45084
http://trac.macports.org/changeset/45084
Author: mcalhoun at macports.org
Date: 2009-01-08 02:40:13 -0800 (Thu, 08 Jan 2009)
Log Message:
-----------
graphviz: Add new bindings and plugins (quartz, python25, python26, java, r, rsvg, gdk_pixbuf, glitz, and ming).
Fix guile and ocaml variants.
Use php5 for the php variant.
Add gts dependency.
Change default perl port to perl5 (see #16830).
Fixes #17392 (maintainer timeout).
Modified Paths:
--------------
trunk/dports/graphics/graphviz/Portfile
Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile 2009-01-08 10:24:08 UTC (rev 45083)
+++ trunk/dports/graphics/graphviz/Portfile 2009-01-08 10:40:13 UTC (rev 45084)
@@ -89,6 +89,7 @@
--without-ipsepcola \
--without-rsvg \
--with-pangocairo \
+ --without-glitz \
--with-freetype2 \
--with-fontconfig \
--without-gdk-pixbuf \
@@ -117,6 +118,13 @@
--disable-ruby \
--disable-tcl
+platform macosx {
+ if {${os.major} > 8} {
+ configure.args-delete --without-quartz
+ configure.args-append --with-quartz
+ }
+}
+
variant guile description {Include Guile language bindings} {
depends_lib-append \
port:guile
@@ -139,6 +147,9 @@
--disable-lua
configure.args-append \
--enable-lua
+ post-patch {
+ reinplace "s|/usr/lib\$LIBPOSTFIX/lua|${prefix}/lib\$LIBPOSTFIX/lua|g" ${worksrcpath}/configure
+ }
}
variant ocaml description {Include Objective Caml language bindings} {
@@ -151,11 +162,13 @@
--disable-ocaml
configure.args-append \
--enable-ocaml
+ configure.cppflags-append \
+ -I${prefix}/lib/ocaml
}
variant perl description {Include PERL 5 language bindings} {
depends_lib-append \
- path:bin/perl:perl5.8
+ path:bin/perl:perl5
depends_build-append \
port:swig
configure.args-delete \
@@ -163,11 +176,12 @@
--disable-perl
configure.args-append \
--enable-perl
+ configure.perl ${prefix}/bin/perl
}
-variant php description {Include PHP 4 language bindings} {
+variant php description {Include PHP language bindings} {
depends_lib-append \
- port:php4
+ port:php5
depends_build-append \
port:swig
configure.args-delete \
@@ -175,9 +189,14 @@
--disable-php
configure.args-append \
--enable-php
+ post-patch {
+ reinplace "s|/usr/include/php|${prefix}/include/php|g" ${worksrcpath}/configure
+ reinplace "s|/usr/lib\${LIBPOSTFIX}/php|${prefix}/lib\${LIBPOSTFIX}/php|g" ${worksrcpath}/configure
+ reinplace "s|/usr/share/php|${prefix}/share/php|g" ${worksrcpath}/configure
+ }
}
-variant python description {Include Python 2.4 language bindings} {
+variant python24 description {Include Python 2.4 language bindings} conflicts python25 python26 {
depends_lib-append \
port:python24
depends_build-append \
@@ -187,8 +206,45 @@
--disable-python
configure.args-append \
--enable-python
+ configure.python ${prefix}/bin/python2.4
+ # The configure script asks python where to install
+ # This doesn't work for 2.4 and 2.5 (see #16334)
+ post-patch {
+ reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.4|" ${worksrcpath}/configure
+ }
}
+variant python25 description {Include Python 2.5 language bindings} conflicts python24 python26 {
+ depends_lib-append \
+ port:python25
+ depends_build-append \
+ port:swig
+ configure.args-delete \
+ --disable-swig \
+ --disable-python
+ configure.args-append \
+ --enable-python
+ configure.python ${prefix}/bin/python2.5
+ # The configure script asks python where to install
+ # This doesn't work for 2.4 and 2.5 (see #16334)
+ post-patch {
+ reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.5|" ${worksrcpath}/configure
+ }
+}
+
+variant python26 description {Include Python 2.6 language bindings} conflicts python24 python25 {
+ depends_lib-append \
+ port:python26
+ depends_build-append \
+ port:swig
+ configure.args-delete \
+ --disable-swig \
+ --disable-python
+ configure.args-append \
+ --enable-python
+ configure.python ${prefix}/bin/python2.6
+}
+
variant ruby description {Include Ruby language bindings} {
depends_lib-append \
port:ruby
@@ -213,6 +269,16 @@
--enable-tcl
}
+variant java description {Include Java language bindings} {
+ depends_build-append \
+ port:swig
+ configure.args-delete \
+ --disable-swig \
+ --disable-java
+ configure.args-append \
+ --enable-java
+}
+
variant smyrna description {Include the Smyrna large graph viewer} {
configure.args-delete \
--without-smyrna \
@@ -227,9 +293,56 @@
depends_lib-append \
port:gtk2 \
port:gtkglext \
- port:libglade2
+ port:libglade2 \
+ port:gts
}
+variant r description {Include R language bindings} {
+ depends_build-append \
+ port:swig
+ configure.args-delete \
+ --disable-swig \
+ --disable-r
+ configure.args-append \
+ --enable-r
+}
+
+variant rsvg description {enable the rsvg plugin} {
+ depends_lib-append \
+ port:librsvg
+ configure.args-delete \
+ --without-rsvg
+ configure.args-append \
+ --with-rsvg
+}
+
+variant gdk_pixbuf description {enable the gdk_pixbuf plugin} {
+ depends_lib-append \
+ port:gtk2
+ configure.args-delete \
+ --without-gdk-pixbuf
+ configure.args-append \
+ --with-gdk-pixbuf
+}
+
+variant glitz description {enable the incomplete glitz plugin} {
+ depends_lib-append \
+ port:glitz
+ configure.args-delete \
+ --without-glitz
+ configure.args-append \
+ --with-glitz
+}
+
+variant ming description {enable the incomplete ming plugin} {
+ depends_lib-append \
+ port:ming
+ configure.args-delete \
+ --without-ming
+ configure.args-append \
+ --with-ming
+}
+
variant no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} {
depends_lib-delete \
port:cairo \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090108/ae98e450/attachment-0001.html>
More information about the macports-changes
mailing list