[81043] trunk/dports/graphics/dcraw/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jul 23 22:26:11 PDT 2011


Revision: 81043
          http://trac.macports.org/changeset/81043
Author:   ryandesign at macports.org
Date:     2011-07-23 22:26:09 -0700 (Sat, 23 Jul 2011)
Log Message:
-----------
dcraw: update to 9.10-20110723183600, which adds jasper support; support changing build_arch

Modified Paths:
--------------
    trunk/dports/graphics/dcraw/Portfile

Modified: trunk/dports/graphics/dcraw/Portfile
===================================================================
--- trunk/dports/graphics/dcraw/Portfile	2011-07-24 05:19:39 UTC (rev 81042)
+++ trunk/dports/graphics/dcraw/Portfile	2011-07-24 05:26:09 UTC (rev 81043)
@@ -5,7 +5,7 @@
 PortGroup               archcheck 1.0
 
 name                    dcraw
-version                 9.08-20110511010600
+version                 9.10-20110723183600
 set version_number      [lindex [split ${version} -] 0]
 categories              graphics
 maintainers             ryandesign
@@ -26,36 +26,39 @@
                         digital cameras with better quality output than the \
                         tools provided by camera vendors.
 
-checksums               sha1    1282402201ca48f922d9167ad078aa58cb18593e \
-                        rmd160  65ee93db270e578c921571f38f525acc23d46e2c
+checksums               sha1    c43f8f760845a70f2ddb85979574c0705dbcb319 \
+                        rmd160  8784cfb0046d8509adddf9dbd35c88bcd3254f21
 
 depends_lib             port:gettext \
                         port:libiconv \
                         port:jpeg \
+                        port:jasper \
                         port:lcms
 
 archcheck.files         lib/libintl.dylib \
                         lib/libiconv.dylib \
                         lib/libjpeg.dylib \
+                        lib/libjasper.dylib \
                         lib/liblcms.dylib
 
 post-extract {
     xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
 }
 
-variant universal {
-    configure.cflags-append ${configure.universal_cflags}
-    configure.cppflags-append ${configure.universal_cppflags}
-    configure.ldflags-append ${configure.universal_ldflags}
+configure.ldflags-append -ljasper
+
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
 }
 
-pre-build {
-    build.args          CC=${configure.cc} \
-                        CFLAGS="[join ${configure.cflags}]" \
-                        CPPFLAGS="[join ${configure.cppflags}]" \
-                        LDFLAGS="[join ${configure.ldflags}]" \
+build.args              CC="${configure.cc} ${archflags}" \
+                        CFLAGS="${configure.cflags}" \
+                        CPPFLAGS="${configure.cppflags}" \
+                        LDFLAGS="${configure.ldflags}" \
                         PREFIX=${prefix}
-}
 
 destroot.args           PREFIX=${prefix}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110723/d674c8ab/attachment.html>


More information about the macports-changes mailing list