[39643] trunk/dports/graphics/dcraw

ryandesign at macports.org ryandesign at macports.org
Wed Aug 27 13:25:23 PDT 2008


Revision: 39643
          http://trac.macosforge.org/projects/macports/changeset/39643
Author:   ryandesign at macports.org
Date:     2008-08-27 13:25:22 -0700 (Wed, 27 Aug 2008)
Log Message:
-----------
dcraw: revert changes inadvertently committed in r39642

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

Removed Paths:
-------------
    trunk/dports/graphics/dcraw/files/

Modified: trunk/dports/graphics/dcraw/Portfile
===================================================================
--- trunk/dports/graphics/dcraw/Portfile	2008-08-27 20:22:32 UTC (rev 39642)
+++ trunk/dports/graphics/dcraw/Portfile	2008-08-27 20:25:22 UTC (rev 39643)
@@ -12,6 +12,7 @@
 master_sites            ${homepage}archive/
 worksrcdir              $name
 dist_subdir             ${name}/${version}-${distfile_date}
+use_configure           no
 use_parallel_build      yes
 
 description \
@@ -31,12 +32,14 @@
     port:jpeg \
     port:lcms
 
-configure {
-    xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
-    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
-    reinplace "s|@CFLAGS@|${configure.cflags}|g" ${worksrcpath}/Makefile
-    reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile
-    reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/Makefile
+variant universal {}
+
+build {
+    if {[variant_isset universal]} {
+        system "cd ${worksrcpath} && cc -o dcraw ${configure.cflags} ${configure.universal_cflags} dcraw.c -ljpeg -llcms -lintl -liconv ${configure.cppflags} ${configure.ldflags} -DLOCALEDIR=\\\"${prefix}/share/locale/\\\""
+    } else {
+        system "cd ${worksrcpath} && cc -o dcraw ${configure.cflags} dcraw.c -ljpeg -llcms -lintl -liconv ${configure.cppflags} ${configure.ldflags} -DLOCALEDIR=\\\"${prefix}/share/locale/\\\""
+    }
 }
 
 destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080827/8a7e551a/attachment.html 


More information about the macports-changes mailing list