6343e04fd8
I'm inclined to bet we have the only proper BSD port.
76 lines
2.7 KiB
Plaintext
76 lines
2.7 KiB
Plaintext
--- po/Makefile.in.in.orig Tue Oct 30 01:45:02 2001
|
|
+++ po/Makefile.in.in Tue Oct 30 01:50:55 2001
|
|
@@ -6,6 +6,8 @@
|
|
# but which still want to provide support for the GNU gettext functionality.
|
|
# Please note that the actual code is *not* freely available.
|
|
|
|
+DESTDIR =
|
|
+
|
|
PACKAGE = @PACKAGE@
|
|
VERSION = @VERSION@
|
|
|
|
@@ -19,7 +21,7 @@ VPATH = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
datadir = $(prefix)/@DATADIRNAME@
|
|
-localedir = $(datadir)/locale
|
|
+localedir = $(prefix)/share/locale
|
|
gnulocaledir = $(prefix)/share/locale
|
|
gettextsrcdir = $(prefix)/share/gettext/po
|
|
subdir = po
|
|
@@ -115,16 +117,16 @@ install-data: install-data-@USE_NLS@
|
|
install-data-no: all
|
|
install-data-yes: all
|
|
if test -r "$(MKINSTALLDIRS)"; then \
|
|
- $(MKINSTALLDIRS) $(datadir); \
|
|
+ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
|
|
else \
|
|
- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
|
|
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
|
|
fi
|
|
@catalogs='$(CATALOGS)'; \
|
|
for cat in $$catalogs; do \
|
|
cat=`basename $$cat`; \
|
|
case "$$cat" in \
|
|
- *.gmo) destdir=$(gnulocaledir);; \
|
|
- *) destdir=$(localedir);; \
|
|
+ *.gmo) destdir=$(DESTDIR)$(gnulocaledir);; \
|
|
+ *) destdir=$(DESTDIR)$(localedir);; \
|
|
esac; \
|
|
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
|
dir=$$destdir/$$lang/LC_MESSAGES; \
|
|
@@ -157,12 +159,12 @@ install-data-yes: all
|
|
done
|
|
if test "$(PACKAGE)" = "gettext"; then \
|
|
if test -r "$(MKINSTALLDIRS)"; then \
|
|
- $(MKINSTALLDIRS) $(gettextsrcdir); \
|
|
+ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
|
|
else \
|
|
- $(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
|
|
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
|
|
fi; \
|
|
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
|
|
- $(gettextsrcdir)/Makefile.in.in; \
|
|
+ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
|
else \
|
|
: ; \
|
|
fi
|
|
@@ -175,12 +177,12 @@ uninstall:
|
|
for cat in $$catalogs; do \
|
|
cat=`basename $$cat`; \
|
|
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
|
- rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
- rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
- rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
- rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
done
|
|
- rm -f $(gettextsrcdir)/po-Makefile.in.in
|
|
+ rm -f $(DESTDIR)$(gettextsrcdir)/po-Makefile.in.in
|
|
|
|
check: all
|
|
|