[73041] trunk/dports/textproc/convertlit
ryandesign at macports.org
ryandesign at macports.org
Mon Nov 1 16:34:25 PDT 2010
Revision: 73041
http://trac.macports.org/changeset/73041
Author: ryandesign at macports.org
Date: 2010-11-01 16:34:21 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
convertlit: add universal variant
Modified Paths:
--------------
trunk/dports/textproc/convertlit/Portfile
Added Paths:
-----------
trunk/dports/textproc/convertlit/files/patch-lib-Makefile.diff
Modified: trunk/dports/textproc/convertlit/Portfile
===================================================================
--- trunk/dports/textproc/convertlit/Portfile 2010-11-01 23:21:19 UTC (rev 73040)
+++ trunk/dports/textproc/convertlit/Portfile 2010-11-01 23:34:21 UTC (rev 73041)
@@ -34,20 +34,28 @@
copy ${filespath}/Makefile ${worksrcpath}
# DOS to UNIX line endings so we can patch
- reinplace "s|\r||g" ${worksrcpath}/clit/Makefile
+ reinplace "s|\r||g" ${worksrcpath}/clit/Makefile \
+ ${worksrcpath}/lib/Makefile
}
patchfiles patch-clit-Makefile.diff \
- patch-clit-hexdump.c.diff
+ patch-clit-hexdump.c.diff \
+ patch-lib-Makefile.diff
use_configure no
configure.cppflags-append -I${prefix}/include/libtommath
-build.args CC="${configure.cc} ${configure.cc_archflags}" \
+variant universal {}
+if {[variant_isset universal]} {
+ set archflags ${configure.universal_cflags}
+} else {
+ set archflags ${configure.cc_archflags}
+}
+
+build.args CC="${configure.cc} ${archflags}" \
CPPFLAGS="${configure.cppflags}" \
- LDFLAGS="${configure.ldflags}" \
- PREFIX="${prefix}"
+ LDFLAGS="${configure.ldflags}"
destroot {
xinstall ${worksrcpath}/clit/clit ${destroot}${prefix}/bin
Added: trunk/dports/textproc/convertlit/files/patch-lib-Makefile.diff
===================================================================
--- trunk/dports/textproc/convertlit/files/patch-lib-Makefile.diff (rev 0)
+++ trunk/dports/textproc/convertlit/files/patch-lib-Makefile.diff 2010-11-01 23:34:21 UTC (rev 73041)
@@ -0,0 +1,9 @@
+--- lib/Makefile.orig 2010-11-01 18:32:25.000000000 -0500
++++ lib/Makefile 2010-11-01 18:32:15.000000000 -0500
+@@ -6,5 +6,5 @@
+
+ openclit.a: litatom.o litdrm.o litlib.o litembiggen.o littags.o litmetatags.o litmanifest.o litdirectory.o litsections.o litheaders.o litutil.o sha/mssha1.o des/des.o newlzx/lzxglue.o newlzx/lzxd.o
+ -rm -f openclit.a
+- ar rv openclit.a $^
++ ar rsv openclit.a $^
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101101/a3821cd0/attachment.html>
More information about the macports-changes
mailing list