[packages] add aalib, an Ascii-Art rendering library
[openwrt/svn-archive/archive.git] / libs / aalib / patches / 001-destdir.patch
1 --- a/Makefile.in
2 +++ b/Makefile.in
3 @@ -37,6 +37,8 @@ AUTOCONF = @AUTOCONF@
4 AUTOMAKE = @AUTOMAKE@
5 AUTOHEADER = @AUTOHEADER@
6
7 +DESTDIR =
8 +
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = @INSTALL_PROGRAM@
11 INSTALL_DATA = @INSTALL_DATA@
12 @@ -235,11 +237,11 @@ maintainer-clean-libLTLIBRARIES:
13
14 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
15 @$(NORMAL_INSTALL)
16 - $(mkinstalldirs) $(libdir)
17 + $(mkinstalldirs) $(DESTDIR)$(libdir)
18 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
19 if test -f $$p; then \
20 - echo "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(libdir)/$$p"; \
21 - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(libdir)/$$p; \
22 + echo "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
23 + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
24 else :; fi; \
25 done
26
27 @@ -289,11 +291,11 @@ maintainer-clean-binPROGRAMS:
28
29 install-binPROGRAMS: $(bin_PROGRAMS)
30 @$(NORMAL_INSTALL)
31 - $(mkinstalldirs) $(bindir)
32 + $(mkinstalldirs) $(DESTDIR)$(bindir)
33 @list='$(bin_PROGRAMS)'; for p in $$list; do \
34 if test -f $$p; then \
35 - echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
36 - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
37 + echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
38 + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
39 else :; fi; \
40 done
41
42 @@ -357,21 +359,21 @@ DVIPS = dvips
43
44 install-info-am: $(INFO_DEPS)
45 @$(NORMAL_INSTALL)
46 - $(mkinstalldirs) $(infodir)
47 + $(mkinstalldirs) $(DESTDIR)$(infodir)
48 @for file in $(INFO_DEPS); do \
49 d=$(srcdir); \
50 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
51 if test -f $$d/$$ifile; then \
52 - echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
53 - $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
54 + echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
55 + $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
56 else : ; fi; \
57 done; \
58 done
59 @$(POST_INSTALL)
60 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
61 for file in $(INFO_DEPS); do \
62 - echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
63 - install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
64 + echo " install-info --info-dir=$(infodir) $(DESTDIR)$(infodir)/$$file";\
65 + install-info --info-dir=$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
66 done; \
67 else : ; fi
68
69 @@ -412,10 +414,10 @@ maintainer-clean-aminfo:
70
71 install-includeHEADERS: $(include_HEADERS)
72 @$(NORMAL_INSTALL)
73 - $(mkinstalldirs) $(includedir)
74 + $(mkinstalldirs) $(DESTDIR)$(includedir)
75 @list='$(include_HEADERS)'; for p in $$list; do \
76 - echo " $(INSTALL_DATA) $(srcdir)/$$p $(includedir)/$$p"; \
77 - $(INSTALL_DATA) $(srcdir)/$$p $(includedir)/$$p; \
78 + echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$p"; \
79 + $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$p; \
80 done
81
82 uninstall-includeHEADERS:
83 @@ -508,7 +510,7 @@ all: Makefile $(INFO_DEPS) $(LTLIBRARIES
84 install-strip:
85 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
86 installdirs:
87 - $(mkinstalldirs) $(libdir) $(bindir) $(infodir) $(includedir)
88 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) $(DESTDIR)$(includedir)
89
90
91 mostlyclean-generic: