[103850] trunk/dports/textproc/tnef2txt/Portfile
jmr at macports.org
jmr at macports.org
Fri Mar 8 14:16:11 PST 2013
Revision: 103850
https://trac.macports.org/changeset/103850
Author: jmr at macports.org
Date: 2013-03-08 14:16:11 -0800 (Fri, 08 Mar 2013)
Log Message:
-----------
tnef2txt: pass CFLAGS and platform defines correctly
Modified Paths:
--------------
trunk/dports/textproc/tnef2txt/Portfile
Modified: trunk/dports/textproc/tnef2txt/Portfile
===================================================================
--- trunk/dports/textproc/tnef2txt/Portfile 2013-03-08 22:15:04 UTC (rev 103849)
+++ trunk/dports/textproc/tnef2txt/Portfile 2013-03-08 22:16:11 UTC (rev 103850)
@@ -27,14 +27,18 @@
use_configure no
variant universal {}
-if {[variant_isset universal]} {
- set archflags ${configure.universal_cflags}
-} else {
- set archflags ${configure.cc_archflags}
+
+set endian_define ""
+if {${os.endian} == "big"} {
+ set endian_define " -D __BYTE_ORDER=4321"
}
build.target tnef2txt
-build.args CC="${configure.cc} ${archflags}"
+build.args CC="${configure.cc}" \
+ CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+ PLATFORM="-D LINUX${endian_define}"
+# -D LINUX used because it happens to set the other defines correctly
+# not defining a platform is bad because it assumes big-endian
destroot {
xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130308/493eb95d/attachment.html>
More information about the macports-changes
mailing list