[52888] trunk/dports/archivers/hffzip
ryandesign at macports.org
ryandesign at macports.org
Wed Jun 24 23:43:15 PDT 2009
Revision: 52888
http://trac.macports.org/changeset/52888
Author: ryandesign at macports.org
Date: 2009-06-24 23:43:14 -0700 (Wed, 24 Jun 2009)
Log Message:
-----------
hffzip: use ${configure.cc}
Modified Paths:
--------------
trunk/dports/archivers/hffzip/Portfile
Added Paths:
-----------
trunk/dports/archivers/hffzip/files/
trunk/dports/archivers/hffzip/files/patch-Makefile.diff
Modified: trunk/dports/archivers/hffzip/Portfile
===================================================================
--- trunk/dports/archivers/hffzip/Portfile 2009-06-25 06:33:14 UTC (rev 52887)
+++ trunk/dports/archivers/hffzip/Portfile 2009-06-25 06:43:14 UTC (rev 52888)
@@ -26,9 +26,10 @@
worksrcdir ${name}
+patchfiles patch-Makefile.diff
post-patch {
- reinplace -E "/^opzioni/s|\$| ${CFLAGS}|" ${worksrcpath}/Makefile
- reinplace -E "/gcc.*${name}/s|\$| ${LDFLAGS}|" ${worksrcpath}/Makefile
+ reinplace "s|@CFLAGS@|${CFLAGS}|g" ${worksrcpath}/Makefile
+ reinplace "s|@LDFLAGS@|${LDFLAGS}|g" ${worksrcpath}/Makefile
}
use_configure no
@@ -37,6 +38,7 @@
set LDFLAGS ${configure.ldflags}
build.target ${name}
+build.env CC=${configure.cc}
destroot {
xinstall ${worksrcpath}/hffzip ${destroot}${prefix}/bin
Added: trunk/dports/archivers/hffzip/files/patch-Makefile.diff
===================================================================
--- trunk/dports/archivers/hffzip/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/archivers/hffzip/files/patch-Makefile.diff 2009-06-25 06:43:14 UTC (rev 52888)
@@ -0,0 +1,24 @@
+--- Makefile 2003-06-05 09:38:33.000000000 -0500
++++ Makefile 2009-06-25 01:33:59.000000000 -0500
+@@ -1,16 +1,16 @@
+-opzioni=-O3
++opzioni=@CFLAGS@
+
+ hffzip: main.o albero.o bitIO.o
+- gcc $(opzioni) -o hffzip main.o albero.o bitIO.o
++ $(CC) $(opzioni) -o hffzip main.o albero.o bitIO.o @LDFLAGS@
+
+ bitIO.o: bitIO.c
+- gcc $(opzioni) -c bitIO.c
++ $(CC) $(opzioni) -c bitIO.c
+
+ albero.o: albero.c bitIO.h albero.h
+- gcc $(opzioni) -c albero.c
++ $(CC) $(opzioni) -c albero.c
+
+ main.o: main.c albero.h bitIO.h
+- gcc $(opzioni) -c main.c
++ $(CC) $(opzioni) -c main.c
+
+ clean:
+ rm -f *.o hffzip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090624/12516326/attachment.html>
More information about the macports-changes
mailing list