openbsd-ports/archivers/unzip/patches/patch-unix_Makefile
brad 049b65128b upgrade to unzip 5.50
--
From: Aaron Yourk <ayourk@srt.com>
2002-07-05 01:07:26 +00:00

53 lines
1.8 KiB
Plaintext

$OpenBSD: patch-unix_Makefile,v 1.2 2002/07/05 01:07:26 brad Exp $
--- unix/Makefile.orig Sat Feb 16 12:00:38 2002
+++ unix/Makefile Thu Jul 4 21:00:37 2002
@@ -61,8 +61,8 @@ FL2 = $(LF2)
# general-purpose stuff
#CP = cp
-CP = ln
-LN = ln
+CP = ln -s
+LN = ln -fs
RM = rm -f
CHMOD = chmod
BINPERMS = 755
@@ -450,18 +450,16 @@ svr4package: unzips
install: $(MANS)
-$(INSTALL_D) $(BINDIR)
- $(INSTALL_PROGRAM) $(UNZIPS) $(BINDIR)
- $(INSTALL) unix/zipgrep $(BINDIR)
+ $(BSD_INSTALL_PROGRAM) $(UNZIPS) $(BINDIR)
+ $(BSD_INSTALL_SCRIPT) unix/zipgrep $(BINDIR)
$(RM) $(BINDIR)/zipinfo$E
- $(LN) $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E
+ cd $(BINDIR); $(LN) unzip$E zipinfo$E
-$(INSTALL_D) $(MANDIR)
- $(INSTALL) man/funzip.1 $(MANDIR)/funzip.$(manext)
- $(INSTALL) man/unzip.1 $(MANDIR)/unzip.$(manext)
- $(INSTALL) man/unzipsfx.1 $(MANDIR)/unzipsfx.$(manext)
- $(INSTALL) man/zipgrep.1 $(MANDIR)/zipgrep.$(manext)
- $(INSTALL) man/zipinfo.1 $(MANDIR)/zipinfo.$(manext)
- $(CHMOD) $(BINPERMS) $(INSTALLEDBIN)
- $(CHMOD) $(MANPERMS) $(INSTALLEDMAN)
+ $(BSD_INSTALL_MAN) man/funzip.1 $(MANDIR)/funzip.$(manext)
+ $(BSD_INSTALL_MAN) man/unzip.1 $(MANDIR)/unzip.$(manext)
+ $(BSD_INSTALL_MAN) man/unzipsfx.1 $(MANDIR)/unzipsfx.$(manext)
+ $(BSD_INSTALL_MAN) man/zipgrep.1 $(MANDIR)/zipgrep.$(manext)
+ $(BSD_INSTALL_MAN) man/zipinfo.1 $(MANDIR)/zipinfo.$(manext)
uninstall:
$(RM) $(INSTALLEDBIN) $(INSTALLEDMAN)
@@ -569,8 +567,8 @@ generic_shlib: unix_make
$(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL $(LOC)"
gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.4 $(OBJSDLL)
$(RM) libunzip.so.0 libunzip.so
- $(LN) -s libunzip.so.0.4 libunzip.so.0
- $(LN) -s libunzip.so.0 libunzip.so
+ $(LN) libunzip.so.0.4 libunzip.so.0
+ $(LN) libunzip.so.0 libunzip.so
gcc -c -O unzipstb.c
gcc -o unzip_shlib unzipstb.o -L. -lunzip