$NetBSD: patch-aa,v 1.6 2014/08/24 15:30:43 wiz Exp $ "install -D" is not portable; create directories manually. --- Makefile.orig 2011-02-22 18:57:26.000000000 +0000 +++ Makefile @@ -338,9 +330,13 @@ obj/resource.o: visualc/resource.rc visu POFILES:=$(wildcard src/po/*.po) MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES)) INSTALLED_MOFILES:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo,$(MOFILES)) +INSTALLED_MODIRS:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES,$(MOFILES)) +$(INSTALLED_MODIRS): $(LOCALE_PREFIX)/%/LC_MESSAGES: trans/%.mo + install -d -m 755 $@ $(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo: trans/%.mo - install -D -m 644 $< $@ + install -m 644 $< $@ + .PHONY: uninstall-i18n uninstall-i18n: @@ -364,7 +360,8 @@ install-gettext: @echo "You will not be able to run Tux Paint in non-U.S. English modes." @echo "--------------------------------------------------------------" else -install-gettext: $(INSTALLED_MOFILES) +install-gettextdirs: $(INSTALLED_MODIRS) +install-gettext: install-gettextdirs $(INSTALLED_MOFILES) endif