[43243] trunk/dports/x11/awesome/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Dec 7 03:15:50 PST 2008


Revision: 43243
          http://trac.macports.org/changeset/43243
Author:   jeremyhu at macports.org
Date:     2008-12-07 03:15:49 -0800 (Sun, 07 Dec 2008)
Log Message:
-----------
awesome: Added support for universal variant.  Moved pkgconfig to depends_build.  Updated X11 dependencies.

Modified Paths:
--------------
    trunk/dports/x11/awesome/Portfile

Modified: trunk/dports/x11/awesome/Portfile
===================================================================
--- trunk/dports/x11/awesome/Portfile	2008-12-07 11:10:36 UTC (rev 43242)
+++ trunk/dports/x11/awesome/Portfile	2008-12-07 11:15:49 UTC (rev 43243)
@@ -4,6 +4,7 @@
 
 name              awesome
 version           2.0
+revision          1
 categories        x11 x11-wm
 maintainers       milosh openmaintainer
 platforms         darwin
@@ -26,14 +27,22 @@
                   sha1 7a3257e7a76f9d77bd59558aa8393f2bed50057f \
                   rmd160  3a3a7014a11915f316bfce9ce5a2a606a057363a
 
-depends_lib       lib:libX11.6:XFree86 \
-                  port:Xft2 \
-                  port:pkgconfig \
-                  port:cairo \
-                  port:libconfuse
+depends_build \
+	port:pkgconfig
+
+depends_lib \
+        lib:libXext.6:xorg-libXext \
+        lib:libXft.2:Xft2 \
+        lib:libXinerama.1:xorg-libXinerama \
+        lib:libXrandr.2:xorg-libXrandr \
+        port:cairo \
+        port:libconfuse
+
 patchfiles        patch-config.mk patch-Makefile
 post-patch      {
         reinplace "s|/opt/local|${prefix}|" ${worksrcpath}/config.mk
+	reinplace "s|CFLAGS =|CFLAGS = \$(UNIV_FLAGS)|" ${worksrcpath}/config.mk
+	reinplace "s|LDFLAGS =|LDFLAGS = \$(UNIV_FLAGS)|" ${worksrcpath}/config.mk
 }
 
 use_configure     no
@@ -43,3 +52,7 @@
     destroot.target   install install-man
     build.target      all man
 }
+
+variant universal {
+	build.target-append UNIV_FLAGS="${configure.universal_cflags}"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081207/081bea07/attachment-0001.html>


More information about the macports-changes mailing list