pkgsrc/converters/libiconv/patches/patch-ae
joerg d19f5ff58f DESTDIR support. Use modular Xorg for wv.
XXX Remove pre-install in libiconv?
2006-11-14 13:55:34 +00:00

45 lines
1.9 KiB
Text

$NetBSD: patch-ae,v 1.5 2006/11/14 13:55:34 joerg Exp $
--- libcharset/lib/Makefile.in.orig 2005-03-22 17:30:59.000000000 +0100
+++ libcharset/lib/Makefile.in
@@ -9,7 +9,7 @@ srcdir = @srcdir@
prefix = @prefix@
local_prefix = /usr/local
exec_prefix = @exec_prefix@
-libdir = @libdir@
+libdir ?= @libdir@
# Programs used by "make":
CC = @CC@
@@ -77,13 +77,13 @@ ref-del.sed : $(srcdir)/ref-del.sin
# Installs the library and include files only. Typically called with only
# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
install-lib : all force
- $(mkinstalldirs) $(libdir)
- $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(libdir)/libcharset.la
- test -f $(libdir)/charset.alias && orig=$(libdir)/charset.alias \
- || orig=charset.alias; \
- sed -f ref-add.sed $$orig > $(libdir)/t-charset.alias; \
- $(INSTALL_DATA) $(libdir)/t-charset.alias $(libdir)/charset.alias; \
- rm -f $(libdir)/t-charset.alias
+
+install-charset-alias : all force
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+# $(LIBTOOL_INSTALL) $(INSTALL) libcharset.la $(libdir)/libcharset.la
+ orig=charset.alias; \
+ sed -f ref-add.sed $$orig > t-charset.alias; \
+ $(INSTALL_DATA) t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
# The following is needed in order to install a simple file in $(libdir)
# which is shared with other installed packages. We use a list of referencing
@@ -94,7 +94,9 @@ install-lib : all force
install : all force
$(mkinstalldirs) $(DESTDIR)$(libdir)
- $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(DESTDIR)$(libdir)/libcharset.la
+ $(LIBTOOL_INSTALL) $(INSTALL) libcharset.la $(DESTDIR)$(libdir)/libcharset.la
+
+install-charset-alias-unused:
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
sed -f ref-add.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
$(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \