[39653] trunk/dports/graphics/dcraw/files/Makefile.in
Revision: 39653 http://trac.macosforge.org/projects/macports/changeset/39653 Author: ryandesign@macports.org Date: 2008-08-27 16:24:01 -0700 (Wed, 27 Aug 2008) Log Message: ----------- dcraw: define and use some variables for programs in the Makefile Modified Paths: -------------- trunk/dports/graphics/dcraw/files/Makefile.in Modified: trunk/dports/graphics/dcraw/files/Makefile.in =================================================================== --- trunk/dports/graphics/dcraw/files/Makefile.in 2008-08-27 23:13:05 UTC (rev 39652) +++ trunk/dports/graphics/dcraw/files/Makefile.in 2008-08-27 23:24:01 UTC (rev 39653) @@ -6,6 +6,11 @@ BUILD_DIR = build +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +MSGFMT = msgfmt + PO_FILES = $(wildcard *.po) MO_FILES = $(patsubst %.po,$(BUILD_DIR)/%.mo,$(PO_FILES)) @@ -15,11 +20,11 @@ $(CC) -o $(BUILD_DIR)/dcraw $(CFLAGS) dcraw.c -ljpeg -llcms -lintl -liconv $(CPPFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(PREFIX)/share/locale/\" $(BUILD_DIR)/%.mo: %.po $(BUILD_DIR) - msgfmt -o $@ $< + $(MSGFMT) -o $@ $< $(BUILD_DIR): mkdir -p $(BUILD_DIR) .PHONY: install install: - install -s -m 755 $(BUILD_DIR)/dcraw $(DESTDIR)$(PREFIX)/bin + $(INSTALL_PROGRAM) -s -m 755 $(BUILD_DIR)/dcraw $(DESTDIR)$(PREFIX)/bin
participants (1)
-
ryandesign@macports.org