[142933] trunk/dports/print/epstool/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sat Dec 12 07:51:06 PST 2015


Revision: 142933
          https://trac.macports.org/changeset/142933
Author:   mcalhoun at macports.org
Date:     2015-11-28 10:02:38 -0800 (Sat, 28 Nov 2015)
Log Message:
-----------
epstool: allow 32-bit and universal builds

Modified Paths:
--------------
    trunk/dports/print/epstool/Portfile

Modified: trunk/dports/print/epstool/Portfile
===================================================================
--- trunk/dports/print/epstool/Portfile	2015-11-28 17:54:54 UTC (rev 142932)
+++ trunk/dports/print/epstool/Portfile	2015-11-28 18:02:38 UTC (rev 142933)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name		epstool
 version		3.08
-revision        7
+revision        8
 categories	print
 maintainers	iaas.msu.ru:master
 description	create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps
@@ -25,7 +25,19 @@
 use_configure	no
 use_parallel_build  no
 
-build.env	CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
+variant universal {}
+
+set cflags	"${configure.cflags} ${configure.cppflags}"
+set ldflags	${configure.ldflags}
+if {[variant_isset universal]} {
+    lappend cflags ${configure.universal_cflags} ${configure.universal_cppflags}
+    lappend ldflags ${configure.universal_ldflags}
+} else {
+    lappend cflags ${configure.cc_archflags}
+    lappend ldflags ${configure.ld_archflags}
+}
+build.env	CFLAGS="[join ${cflags} " "]" \
+		LDFLAGS="[join ${ldflags} " "]"
 build.args-append       CC=${configure.cc} \
                         CXX=${configure.cxx} \
                         CPP=${configure.cpp}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/e886b9f8/attachment.html>


More information about the macports-changes mailing list