[97141] trunk/dports/games/frotz/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Aug 27 17:54:35 PDT 2012


Revision: 97141
          https://trac.macports.org/changeset/97141
Author:   ryandesign at macports.org
Date:     2012-08-27 17:54:35 -0700 (Mon, 27 Aug 2012)
Log Message:
-----------
frotz: ensure that we're UsingTheRightCompiler and -arch flags; add universal variant; pass correct cppflags and ldflags (#35448; maintainer timeout)

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

Modified: trunk/dports/games/frotz/Portfile
===================================================================
--- trunk/dports/games/frotz/Portfile	2012-08-28 00:53:11 UTC (rev 97140)
+++ trunk/dports/games/frotz/Portfile	2012-08-28 00:54:35 UTC (rev 97141)
@@ -18,11 +18,21 @@
 patchfiles	  patch-Makefile patch-src-common-main.c \
                     patch-src-common-process.c \
                     patch-getline.diff
-configure	 {
+post-patch {
 	reinplace "s|@PREFIX@|${prefix}|" \
 		"${worksrcpath}/Makefile"
 }
 
+use_configure       no
+
+variant universal {}
+
+build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
+                    INCL=${configure.cppflags} \
+                    LIB=${configure.ldflags}
+
 use_parallel_build  yes
 
+eval destroot.args  ${build.args}
+
 destroot.destdir  PREFIX=${destroot}${prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120827/2b7253f3/attachment-0001.html>


More information about the macports-changes mailing list