[49332] trunk/dports/games/moria/Portfile
aschenke at macports.org
aschenke at macports.org
Tue Apr 7 12:46:04 PDT 2009
Revision: 49332
http://trac.macports.org/changeset/49332
Author: aschenke at macports.org
Date: 2009-04-07 12:46:03 -0700 (Tue, 07 Apr 2009)
Log Message:
-----------
changes to modernize build process (ticket #19216)
Modified Paths:
--------------
trunk/dports/games/moria/Portfile
Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile 2009-04-07 18:52:47 UTC (rev 49331)
+++ trunk/dports/games/moria/Portfile 2009-04-07 19:46:03 UTC (rev 49332)
@@ -16,20 +16,22 @@
patchfiles patch-source_config.h
+build.dir ${worksrcpath}/source
+build.target
+
+use_parallel_build yes
+
configure {
addgroup games
- file copy ${worksrcpath}/unix/Makefile ${worksrcpath}/source
- file copy ${worksrcpath}/unix/unix.c ${worksrcpath}/source
+ xinstall -m 644 -W ${worksrcpath}/unix Makefile unix.c ${build.dir}
+ reinplace "s|^CC = cc|CC = ${configure.cc}|" ${build.dir}/Makefile
+
reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \
${worksrcpath}/source/config.h
}
-
-build {
- system "cd ${worksrcpath}/source && make"
- }
-
+
destroot {
xinstall -d ${destroot}${prefix}/var/games/moria
xinstall -c -m 2755 -g games ${worksrcpath}/source/moria ${destroot}${prefix}/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090407/898c3b53/attachment.html>
More information about the macports-changes
mailing list