[47268] trunk/dports/emulators/free42/Portfile
krischik at macports.org
krischik at macports.org
Tue Feb 24 01:32:32 PST 2009
Revision: 47268
http://trac.macports.org/changeset/47268
Author: krischik at macports.org
Date: 2009-02-24 01:32:31 -0800 (Tue, 24 Feb 2009)
Log Message:
-----------
Apply patches from Ryan Schmidt for more standard Portfile behavoir.
Modified Paths:
--------------
trunk/dports/emulators/free42/Portfile
Modified: trunk/dports/emulators/free42/Portfile
===================================================================
--- trunk/dports/emulators/free42/Portfile 2009-02-24 09:31:28 UTC (rev 47267)
+++ trunk/dports/emulators/free42/Portfile 2009-02-24 09:32:31 UTC (rev 47268)
@@ -33,28 +33,32 @@
depends_lib port:gtk2
-build.env-append LIBS="-lm -lXm -lXpm -lXp -lXmu -lXt -lX11"
-
worksrcdir ${name}
-use_parallel_build yes
-build.args --jobs=${build.jobs}
use_configure no
+use_parallel_build no
+build.dir ${worksrcpath}/gtk
+build.target free42bin
+build.env-delete BCD_MATH
-
post-extract {
system "unzip -q ${distpath}/${skin} -d ${workpath}/skin"
}
-build {
- reinplace "s|CXXFLAGS := |CXXFLAGS := -DNO_SINCOS |g" ${workpath}/free42/gtk/Makefile
- system "
- cd ${workpath}/free42/gtk;
- unset BCD_MATH
- make
- make clean
- make -e BCD_MATH=1"
+platform darwin {
+ build.env-append LIBS="-lm -lXm -lXpm -lXp -lXmu -lXt -lX11"
+ post-patch {
+ reinplace "s|CXXFLAGS := |CXXFLAGS := -DNO_SINCOS |g" ${build.dir}/Makefile
+ }
}
+post-build {
+ # The build phase builds the binary version.
+ # Now build again to get the decimal version.
+ build.target clean free42dec
+ build.env-append BCD_MATH=1
+ command_exec build
+}
+
destroot {
xinstall -m 775 -d ${destroot}${prefix}/share/free42
xinstall -m 775 -d ${destroot}${applications_dir}
@@ -66,7 +70,7 @@
${destroot}${prefix}/share/free42
xinstall -m 775 \
- -W ${workpath}/free42/gtk \
+ -W ${build.dir} \
free42bin \
free42dec \
${destroot}${prefix}/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090224/b11001cd/attachment.html>
More information about the macports-changes
mailing list