components/zlib/patches/destdir.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 184 037c654f48d9
permissions -rw-r--r--
Close of build 04.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     1
--- zlib-1.2.3/Makefile.in.orig
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     2
+++ zlib-1.2.3/Makefile.in
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     3
@@ -90,23 +90,23 @@
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     4
 	$(CC) $(CFLAGS) -o [email protected] minigzip.o $(LDFLAGS)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     5
 
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     6
 install: $(LIBS)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     7
-	[email protected] [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     8
-	[email protected] [ ! -d $(includedir)  ]; then mkdir -p $(includedir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     9
-	[email protected] [ ! -d $(libdir)      ]; then mkdir -p $(libdir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    10
-	[email protected] [ ! -d $(man3dir)     ]; then mkdir -p $(man3dir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    11
-	cp zlib.h zconf.h $(includedir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    12
-	chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    13
-	cp $(LIBS) $(libdir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    14
-	cd $(libdir); chmod 755 $(LIBS)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    15
-	[email protected](cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    16
-	cd $(libdir); if test -f $(SHAREDLIBV); then \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    17
+	[email protected] [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    18
+	[email protected] [ ! -d $(DESTDIR)$(includedir)  ]; then mkdir -p $(DESTDIR)$(includedir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    19
+	[email protected] [ ! -d $(DESTDIR)$(libdir)      ]; then mkdir -p $(DESTDIR)$(libdir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    20
+	[email protected] [ ! -d $(DESTDIR)$(man3dir)     ]; then mkdir -p $(DESTDIR)$(man3dir); fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    21
+	cp zlib.h zconf.h $(DESTDIR)$(includedir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    22
+	chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    23
+	cp $(LIBS) $(DESTDIR)$(libdir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    24
+	cd $(DESTDIR)$(libdir); chmod 755 $(LIBS)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    25
+	[email protected](cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    26
+	cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    27
 	  rm -f $(SHAREDLIB) $(SHAREDLIBM); \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    28
 	  ln -s $(SHAREDLIBV) $(SHAREDLIB); \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    29
 	  ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    30
 	  (ldconfig || true)  >/dev/null 2>&1; \
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    31
 	fi
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    32
-	cp zlib.3 $(man3dir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    33
-	chmod 644 $(man3dir)/zlib.3
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    34
+	cp zlib.3 $(DESTDIR)$(man3dir)
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    35
+	chmod 644 $(DESTDIR)$(man3dir)/zlib.3
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    36
 # The ranlib in install is needed on NeXTSTEP which checks file times
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    37
 # ldconfig is for Linux
037c654f48d9 7036217 move zlib to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    38