Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 39652 for trunk

Show
Ignore:
Timestamp:
08/27/08 16:13:05 (3 months ago)
Author:
ryandesign@…
Message:

dcraw: build the message catalogs in the Makefile too instead of in the Portfile

Location:
trunk/dports/graphics/dcraw
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/dcraw/Portfile

    r39651 r39652  
    5050set my_locales          {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv} 
    5151 
    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  
    6052post-destroot { 
    6153    xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1 
  • trunk/dports/graphics/dcraw/files/Makefile.in

    r39651 r39652  
    77BUILD_DIR = build 
    88 
    9 all: $(BUILD_DIR)/dcraw 
     9PO_FILES = $(wildcard *.po) 
     10MO_FILES = $(patsubst %.po,$(BUILD_DIR)/%.mo,$(PO_FILES)) 
     11 
     12all: $(BUILD_DIR)/dcraw $(MO_FILES) 
    1013 
    1114$(BUILD_DIR)/dcraw: $(BUILD_DIR) 
    1215        $(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 $@ $< 
    1319 
    1420$(BUILD_DIR):