Revision: 39652 http://trac.macosforge.org/projects/macports/changeset/39652 Author: ryandesign@macports.org Date: 2008-08-27 16:13:05 -0700 (Wed, 27 Aug 2008) Log Message: ----------- dcraw: build the message catalogs in the Makefile too instead of in the Portfile 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 22:29:44 UTC (rev 39651) +++ trunk/dports/graphics/dcraw/Portfile 2008-08-27 23:13:05 UTC (rev 39652) @@ -49,14 +49,6 @@ set my_locales {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv} -post-build { - foreach locale ${my_locales} { - if {[file exist ${worksrcpath}/dcraw_${locale}.po]} { - system "msgfmt -o ${worksrcpath}/build/dcraw_${locale}.mo ${worksrcpath}/dcraw_${locale}.po" - } - } -} - post-destroot { xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1 foreach locale ${my_locales} { Modified: trunk/dports/graphics/dcraw/files/Makefile.in =================================================================== --- trunk/dports/graphics/dcraw/files/Makefile.in 2008-08-27 22:29:44 UTC (rev 39651) +++ trunk/dports/graphics/dcraw/files/Makefile.in 2008-08-27 23:13:05 UTC (rev 39652) @@ -6,11 +6,17 @@ BUILD_DIR = build -all: $(BUILD_DIR)/dcraw +PO_FILES = $(wildcard *.po) +MO_FILES = $(patsubst %.po,$(BUILD_DIR)/%.mo,$(PO_FILES)) +all: $(BUILD_DIR)/dcraw $(MO_FILES) + $(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)/%.mo: %.po $(BUILD_DIR) + msgfmt -o $@ $< + $(BUILD_DIR): mkdir -p $(BUILD_DIR)
participants (1)
-
ryandesign@macports.org