Revision
39650
Author
ryandesign@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

Diff

Modified: trunk/dports/graphics/dcraw/Portfile (39649 => 39650)


--- 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 (39649 => 39650)


--- 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