source: scripts/patches/zlib-1.2.2-add_DESTDIR-1.patch@ 5bd60e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5bd60e2 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[617118d]1--- zlib-1.2.2/Makefile.in-ORIG 2005-04-09 16:58:51.000000000 +1000
2+++ zlib-1.2.2/Makefile.in 2005-04-09 17:04:08.000000000 +1000
3@@ -23,7 +23,7 @@
4 #CFLAGS=-g -DDEBUG
5 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
6 # -Wstrict-prototypes -Wmissing-prototypes
7-
8+DESTDIR=
9 LDFLAGS=libz.a
10 LDSHARED=$(CC)
11 CPP=$(CC) -E
12@@ -90,33 +90,33 @@
13 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
14
15 install: $(LIBS)
16- -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
17- -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi
18- -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi
19- -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi
20- cp zlib.h zconf.h $(includedir)
21- chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
22- cp $(LIBS) $(libdir)
23- cd $(libdir); chmod 755 $(LIBS)
24- -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
25- cd $(libdir); if test -f $(SHAREDLIBV); then \
26+ -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
27+ -@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi
28+ -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
29+ -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
30+ cp zlib.h zconf.h $(DESTDIR)$(includedir)
31+ chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h
32+ cp $(LIBS) $(DESTDIR)$(libdir)
33+ cd $(DESTDIR)$(libdir); chmod 755 $(LIBS)
34+ -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
35+ cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \
36 rm -f $(SHAREDLIB) $(SHAREDLIBM); \
37 ln -s $(SHAREDLIBV) $(SHAREDLIB); \
38 ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
39 (ldconfig || true) >/dev/null 2>&1; \
40 fi
41- cp zlib.3 $(man3dir)
42- chmod 644 $(man3dir)/zlib.3
43+ cp zlib.3 $(DESTDIR)$(man3dir)
44+ chmod 644 $(DESTDIR)$(man3dir)/zlib.3
45 # The ranlib in install is needed on NeXTSTEP which checks file times
46 # ldconfig is for Linux
47
48 uninstall:
49- cd $(includedir); \
50- cd $(libdir); rm -f libz.a; \
51+ cd $(DESTDIR)$(includedir); \
52+ cd $(DESTDIR)$(libdir); rm -f libz.a; \
53 if test -f $(SHAREDLIBV); then \
54 rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \
55 fi
56- cd $(man3dir); rm -f zlib.3
57+ cd $(DESTDIR)$(man3dir); rm -f zlib.3
58
59 mostlyclean: clean
60 clean:
Note: See TracBrowser for help on using the repository browser.