- Timestamp:
- 08/27/08 16:13:05 (3 months ago)
- Location:
- trunk/dports/graphics/dcraw
- Files:
-
- 2 modified
-
Portfile (modified) (1 diff)
-
files/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/dcraw/Portfile
r39651 r39652 50 50 set my_locales {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv} 51 51 52 post-build {53 foreach locale ${my_locales} {54 if {[file exist ${worksrcpath}/dcraw_${locale}.po]} {55 system "msgfmt -o ${worksrcpath}/build/dcraw_${locale}.mo ${worksrcpath}/dcraw_${locale}.po"56 }57 }58 }59 60 52 post-destroot { 61 53 xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1 -
trunk/dports/graphics/dcraw/files/Makefile.in
r39651 r39652 7 7 BUILD_DIR = build 8 8 9 all: $(BUILD_DIR)/dcraw 9 PO_FILES = $(wildcard *.po) 10 MO_FILES = $(patsubst %.po,$(BUILD_DIR)/%.mo,$(PO_FILES)) 11 12 all: $(BUILD_DIR)/dcraw $(MO_FILES) 10 13 11 14 $(BUILD_DIR)/dcraw: $(BUILD_DIR) 12 15 $(CC) -o $(BUILD_DIR)/dcraw $(CFLAGS) dcraw.c -ljpeg -llcms -lintl -liconv $(CPPFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(PREFIX)/share/locale/\" 16 17 $(BUILD_DIR)/%.mo: %.po $(BUILD_DIR) 18 msgfmt -o $@ $< 13 19 14 20 $(BUILD_DIR):

