let ipkg fail when a package file to be installed is not found
[openwrt/svn-archive/archive.git] / openwrt / package / expat / patches / 001-destdir.patch
1 diff -ruN expat-1.95.8-orig/Makefile.in expat-1.95.8-1/Makefile.in
2 --- expat-1.95.8-orig/Makefile.in 2004-05-07 22:00:48.000000000 +0200
3 +++ expat-1.95.8-1/Makefile.in 2005-04-04 22:53:09.000000000 +0200
4 @@ -34,6 +34,8 @@
5
6 top_builddir = .
7
8 +DESTDIR =
9 +
10
11 INSTALL = @INSTALL@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 @@ -73,22 +75,22 @@
14 tests/runtests
15
16 install: xmlwf/xmlwf installlib
17 - $(mkinstalldirs) $(bindir) $(man1dir)
18 - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
19 - $(INSTALL_DATA) $(MANFILE) $(man1dir)
20 + $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
21 + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(DESTDIR)$(bindir)/xmlwf
22 + $(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
23
24 installlib: $(LIBRARY) $(APIHEADER)
25 - $(mkinstalldirs) $(libdir) $(includedir)
26 - $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
27 - $(INSTALL_DATA) $(APIHEADER) $(includedir)
28 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
29 + $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
30 + $(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
31
32 uninstall: uninstalllib
33 - $(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
34 + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
35 rm -f $(man1dir)/xmlwf.1
36
37 uninstalllib:
38 - $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
39 - rm -f $(includedir)/$(APIHEADER)
40 + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
41 + rm -f $(DESTDIR)$(includedir)/$(APIHEADER)
42
43 # for VPATH builds (invoked by configure)
44 mkdir-init: