Modified: trunk/dports/graphics/dcraw/Portfile (39651 => 39652)
--- 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 (39651 => 39652)
--- 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)