[39650] trunk/dports/graphics/dcraw

ryandesign at macports.org ryandesign at macports.org
Wed Aug 27 15:14:12 PDT 2008


Revision: 39650
          http://trac.macosforge.org/projects/macports/changeset/39650
Author:   ryandesign at macports.org
Date:     2008-08-27 15:14:11 -0700 (Wed, 27 Aug 2008)
Log Message:
-----------
dcraw: build the dcraw binary in the build directory too

Modified Paths:
--------------
    trunk/dports/graphics/dcraw/Portfile
    trunk/dports/graphics/dcraw/files/Makefile.in

Modified: trunk/dports/graphics/dcraw/Portfile
===================================================================
--- trunk/dports/graphics/dcraw/Portfile	2008-08-27 21:46:39 UTC (rev 39649)
+++ trunk/dports/graphics/dcraw/Portfile	2008-08-27 22:14:11 UTC (rev 39650)
@@ -34,7 +34,6 @@
 
 post-extract {
     xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
-    xinstall -d ${worksrcpath}/build
     # Move "install" script; it conflicts with the destroot phase ("make install")
     move ${worksrcpath}/install ${worksrcpath}/install.sh
 }

Modified: trunk/dports/graphics/dcraw/files/Makefile.in
===================================================================
--- trunk/dports/graphics/dcraw/files/Makefile.in	2008-08-27 21:46:39 UTC (rev 39649)
+++ trunk/dports/graphics/dcraw/files/Makefile.in	2008-08-27 22:14:11 UTC (rev 39650)
@@ -4,10 +4,15 @@
 LDFLAGS = @LDFLAGS@
 PREFIX = @PREFIX@
 
-all: dcraw
+BUILD_DIR = build
 
-dcraw:
-	$(CC) -o dcraw $(CFLAGS) dcraw.c -ljpeg -llcms -lintl -liconv $(CPPFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(PREFIX)/share/locale/\"
+all: $(BUILD_DIR)/dcraw
 
+$(BUILD_DIR)/dcraw: $(BUILD_DIR)
+	$(CC) -o $(BUILD_DIR)/dcraw $(CFLAGS) dcraw.c -ljpeg -llcms -lintl -liconv $(CPPFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(PREFIX)/share/locale/\"
+
+$(BUILD_DIR):
+	mkdir -p $(BUILD_DIR)
+
 install:
-	install -s -m 755 dcraw $(DESTDIR)$(PREFIX)/bin
+	install -s -m 755 $(BUILD_DIR)/dcraw $(DESTDIR)$(PREFIX)/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080827/2b51f527/attachment.html 


More information about the macports-changes mailing list