[114714] trunk/dports/devel/cryptlib/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Dec 13 22:18:55 PST 2013
Revision: 114714
https://trac.macports.org/changeset/114714
Author: ryandesign at macports.org
Date: 2013-12-13 22:18:54 -0800 (Fri, 13 Dec 2013)
Log Message:
-----------
cryptlib: add universal variant (#41804)
Modified Paths:
--------------
trunk/dports/devel/cryptlib/Portfile
Modified: trunk/dports/devel/cryptlib/Portfile
===================================================================
--- trunk/dports/devel/cryptlib/Portfile 2013-12-14 05:48:15 UTC (rev 114713)
+++ trunk/dports/devel/cryptlib/Portfile 2013-12-14 06:18:54 UTC (rev 114714)
@@ -4,6 +4,14 @@
PortSystem 1.0
PortGroup conflicts_build 1.0
+# Quoth the makefile: "[Multiple-architecture building] is rather trouble-prone
+# because the low-level crypto code has to configure itself for CPU endianness
+# and word size for the algorithms that require low-level bit fiddling, and
+# uses different code strategies depending on the CPU architecture and bit
+# width. This single-pass build for multiple architectures often causes
+# problems, and you're more or less on your own if you decide to try it."
+PortGroup muniversal 1.0
+
name cryptlib
version 3.4.2
set branch [join [lrange [split ${version} .] 0 1] .]
@@ -48,11 +56,18 @@
use_configure no
build.target default shared
-build.env PREFIX="${prefix}" \
- CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
- LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
- CC="${configure.cc}"
+build.env CC="${configure.cc}" \
+ PREFIX="${prefix}"
+foreach arch ${universal_archs} {
+ lappend merger_build_env(${arch}) CFLAGS='${configure.cflags} ${configure.cppflags} -arch ${arch}'
+ lappend merger_build_env(${arch}) LDFLAGS='-arch ${arch}'
+}
+
+if {![variant_isset universal] && [info exists merger_build_env(${build_arch})]} {
+ build.env-append $merger_build_env(${build_arch})
+}
+
destroot.env PREFIX="${prefix}"
post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131213/3665b7f2/attachment.html>
More information about the macports-changes
mailing list