[46757] trunk/dports/www/elinks-devel/Portfile

perry at macports.org perry at macports.org
Thu Feb 12 02:55:57 PST 2009


Revision: 46757
          http://trac.macports.org/changeset/46757
Author:   perry at macports.org
Date:     2009-02-12 02:55:56 -0800 (Thu, 12 Feb 2009)
Log Message:
-----------
www/elinks-devel - Added support for X11.

Modified Paths:
--------------
    trunk/dports/www/elinks-devel/Portfile

Modified: trunk/dports/www/elinks-devel/Portfile
===================================================================
--- trunk/dports/www/elinks-devel/Portfile	2009-02-12 09:56:06 UTC (rev 46756)
+++ trunk/dports/www/elinks-devel/Portfile	2009-02-12 10:55:56 UTC (rev 46757)
@@ -114,3 +114,16 @@
     configure.ldflags-append "-L${prefix}/lib/samba3"
     depends_lib-append port:samba3
 }
+
+variant x11 description {Enable support for X11} {
+    pre-configure {
+        reinplace "s|x_includes=NONE|x_includes=${prefix}/include/X11|g" \
+                  ${worksrcpath}/configure
+        reinplace "s|x_libraries=NONE|x_libraries=${prefix}/lib|g" \
+                  ${worksrcpath}/configure
+    }
+
+    configure.args-append --with-x
+    configure.args-delete --without-x
+    depends_lib-append port:xorg-libX11
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090212/6257e7f0/attachment.html>


More information about the macports-changes mailing list