[83857] trunk/dports/games/fortune/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Sep 11 21:00:00 PDT 2011


Revision: 83857
          http://trac.macports.org/changeset/83857
Author:   ryandesign at macports.org
Date:     2011-09-11 20:59:57 -0700 (Sun, 11 Sep 2011)
Log Message:
-----------
fortune: ensure we're UsingTheRightCompiler and build_arch

Modified Paths:
--------------
    trunk/dports/games/fortune/Portfile

Modified: trunk/dports/games/fortune/Portfile
===================================================================
--- trunk/dports/games/fortune/Portfile	2011-09-12 03:55:54 UTC (rev 83856)
+++ trunk/dports/games/fortune/Portfile	2011-09-12 03:59:57 UTC (rev 83857)
@@ -25,15 +25,22 @@
 		patch-unstr-Makefile patch-datfiles-Makefile \
 		patch-strfile.h
 
-configure {
+post-patch {
 	reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
 	reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
 	reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
 	reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
 }
 
+use_configure	no
+
+variant universal {}
+
 build.type		bsd
 
+build.env-append	CFLAGS="[get_canonical_archflags]" \
+					CC=${configure.cc}
+
 set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat \
 		fortunes2-o fortunes2-o.dat limerick \
 		limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
@@ -60,7 +67,3 @@
 platform darwin {
         patchfiles-append patch-fortune.c patch-strfile.c patch-unstr.c
 }
-
-variant universal {
-	build.env-append	CFLAGS="${configure.universal_cppflags} ${configure.universal_cflags} ${configure.universal_ldflags}"
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110911/05a134a8/attachment.html>


More information about the macports-changes mailing list