mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$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
|
|
|
|
|