[90750] trunk/dports/tex/sketch

ryandesign at macports.org ryandesign at macports.org
Tue Mar 13 22:29:35 PDT 2012


Revision: 90750
          http://trac.macports.org/changeset/90750
Author:   ryandesign at macports.org
Date:     2012-03-13 22:29:35 -0700 (Tue, 13 Mar 2012)
Log Message:
-----------
sketch: add -arch flags; add a universal variant; use a patchfile to insert a placeholder instead of reinplacing directly

Modified Paths:
--------------
    trunk/dports/tex/sketch/Portfile

Added Paths:
-----------
    trunk/dports/tex/sketch/files/
    trunk/dports/tex/sketch/files/patch-makefile.diff

Modified: trunk/dports/tex/sketch/Portfile
===================================================================
--- trunk/dports/tex/sketch/Portfile	2012-03-14 04:57:58 UTC (rev 90749)
+++ trunk/dports/tex/sketch/Portfile	2012-03-14 05:29:35 UTC (rev 90750)
@@ -25,8 +25,12 @@
 
 extract.suffix      .tgz
 
-patch {
-    reinplace "s|CC\ \=\ gcc\ -O1\ -g\ -Wall|CC \= ${configure.cc} ${configure.cflags}|g" ${worksrcpath}/makefile
+variant universal {}
+
+patchfiles          patch-makefile.diff
+
+post-patch {
+    reinplace "s|@CC@|${configure.cc} ${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/makefile
 }
 
 use_configure       no

Added: trunk/dports/tex/sketch/files/patch-makefile.diff
===================================================================
--- trunk/dports/tex/sketch/files/patch-makefile.diff	                        (rev 0)
+++ trunk/dports/tex/sketch/files/patch-makefile.diff	2012-03-14 05:29:35 UTC (rev 90750)
@@ -0,0 +1,11 @@
+--- makefile.orig	2012-02-24 20:28:12.000000000 -0600
++++ makefile	2012-03-14 00:19:40.000000000 -0500
+@@ -5,7 +5,7 @@
+ #
+ # makefile v0.03
+ #
+-CC = gcc -O1 -g -Wall
++CC = @CC@
+ #CC = gcc -g -Wall
+ YACC = bison --defines --debug --report=all --yacc
+ LEX = flex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120313/eb8fa0ff/attachment.html>


More information about the macports-changes mailing list