[31911] trunk/dports/sysutils/pstree
mww at macports.org
mww at macports.org
Tue Dec 11 13:07:06 PST 2007
Revision: 31911
http://trac.macosforge.org/projects/macports/changeset/31911
Author: mww at macports.org
Date: 2007-12-11 13:07:04 -0800 (Tue, 11 Dec 2007)
Log Message:
-----------
use a hand-crafted ./configure script to generate a simple Makefile: Makes using different compilers possible and universal builds easy
Modified Paths:
--------------
trunk/dports/sysutils/pstree/Portfile
Added Paths:
-----------
trunk/dports/sysutils/pstree/files/
trunk/dports/sysutils/pstree/files/configure
Modified: trunk/dports/sysutils/pstree/Portfile
===================================================================
--- trunk/dports/sysutils/pstree/Portfile 2007-12-11 20:43:29 UTC (rev 31910)
+++ trunk/dports/sysutils/pstree/Portfile 2007-12-11 21:07:04 UTC (rev 31911)
@@ -17,15 +17,10 @@
pre-extract {
file mkdir ${worksrcpath}
+ xinstall -m 755 ${filespath}/configure ${worksrcpath}
}
extract.dir ${worksrcpath}
-use_configure no
-
-build.cmd cc
-build.args pstree.c ${configure.cflags}
-build.target -o pstree
-
destroot {
xinstall -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
set docdir ${prefix}/share/doc/${name}-${version}
@@ -34,13 +29,6 @@
${destroot}${docdir}
}
-variant universal {
- build.args-append ${configure.universal_cflags}
-}
-
-platform darwin 8 { build.cmd /usr/bin/gcc-4.0 }
-platform darwin 9 { build.cmd /usr/bin/gcc-4.0 }
-
livecheck.check regex
livecheck.url ftp://ftp.thp.uni-duisburg.de/pub/source/
livecheck.regex pstree.tar.gz -> pstree-(\[0-9\]+\\.\[0-9\]+)
Added: trunk/dports/sysutils/pstree/files/configure
===================================================================
--- trunk/dports/sysutils/pstree/files/configure (rev 0)
+++ trunk/dports/sysutils/pstree/files/configure 2007-12-11 21:07:04 UTC (rev 31911)
@@ -0,0 +1,9 @@
+#!/bin/sh
+echo "CC=${CC:-cc}" > Makefile
+echo "CFLAGS=${CFLAGS}" >> Makefile
+echo "CPPFLAGS=${CPPFLAGS}" >> Makefile
+echo "LDFLAGS=${LDFLAGS}" >> Makefile
+echo "INSTALL=${INSTALL:-install}" >> Makefile
+echo "all:" >> Makefile
+echo " \$(CC) \$(CFLAGS) \$(CPPFLAGS) \$(LDFLAGS) pstree.c -o pstree" >> Makefile
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071211/416b6c26/attachment.html
More information about the macports-changes
mailing list