[43607] trunk/dports/x11/evilwm/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Dec 12 01:47:03 PST 2008


Revision: 43607
          http://trac.macports.org/changeset/43607
Author:   jeremyhu at macports.org
Date:     2008-12-12 01:47:02 -0800 (Fri, 12 Dec 2008)
Log Message:
-----------
evilwm: parallel build, universal, updated X11 dependencies

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

Modified: trunk/dports/x11/evilwm/Portfile
===================================================================
--- trunk/dports/x11/evilwm/Portfile	2008-12-12 09:45:47 UTC (rev 43606)
+++ trunk/dports/x11/evilwm/Portfile	2008-12-12 09:47:02 UTC (rev 43607)
@@ -2,6 +2,7 @@
 PortSystem 1.0
 name		evilwm
 version		0.99.21
+revision	1
 description	A minimalist window manager for the X Window System.
 long_description	${description}
 maintainers	nomaintainer
@@ -10,8 +11,22 @@
 homepage	http://www.6809.org.uk/evilwm/
 master_sites    ${homepage}
 checksums	md5 092dff2f7c1151af6823029db8fa4d62
-depends_lib	lib:libX11.6:XFree86 
+use_parallel_build yes
+depends_lib \
+	lib:libXext.6:xorg-libXext
 
 configure {
-	reinplace "s|prefix = \$(DESTDIR)/usr|prefix = ${destroot}${prefix}|g" ${worksrcpath}/Makefile
+	if {[file exists ${prefix}/lib/pkgconfig/xext]} {
+		reinplace "s|XROOT=.*|XROOT=${prefix}|" ${worksrcpath}/Makefile
+	} else {
+		reinplace "s|XROOT=.*|XROOT=${x11prefix}|" ${worksrcpath}/Makefile
+	}
+	reinplace "s|\$(LDFLAGS)|\$(LDFLAGS) \$(OTHERLDFLAGS)|g" ${worksrcpath}/Makefile
 }
+
+build.target-append CFLAGS="${configure.cflags}" OTHERLDFLAGS="${configure.ldflags}" prefix="${destroot}${prefix}"
+variant universal {
+	build.target-append CFLAGS="${configure.cflags} ${configure.universal_cflags}" OTHERLDFLAGS="${configure.ldflags} ${configure.universal_ldflags}"
+}
+
+destroot.target-append prefix="${destroot}${prefix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081212/deb68d3f/attachment-0001.html>


More information about the macports-changes mailing list