mc: multple fixes (#2367)
[termux-packages] / packages / unzip / makefile.patch
CommitLineData
59f0d218 1diff -u -r ../unzip60/unix/Makefile ./unix/Makefile
d7558b14
FF
2--- ../unzip60/unix/Makefile 2009-01-18 17:41:18.000000000 -0500
3+++ ./unix/Makefile 2015-07-08 21:06:39.896318954 -0400
59f0d218
FF
4@@ -42,12 +42,8 @@
5 # such as -DDOSWILD).
6
7 # UnZip flags
8-CC = cc# try using "gcc" target rather than changing this (CC and LD
9-LD = $(CC)# must match, else "unresolved symbol: ___main" is possible)
10-AS = as
11 LOC = $(D_USE_BZ2) $(LOCAL_UNZIP)
12 AF = $(LOC)
13-CFLAGS = -O
14 CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(LOC)
15 CF = $(CFLAGS) $(CF_NOOPT)
16 LFLAGS1 =
17@@ -121,9 +117,8 @@
18 INSTALL_D = mkdir -p
19 # on some systems, manext=l and MANDIR=/usr/man/man$(manext) may be appropriate
20 manext = 1
21-prefix = /usr/local
22 BINDIR = $(prefix)/bin# where to install executables
23-MANDIR = $(prefix)/man/man$(manext)# where to install man pages
24+MANDIR = $(prefix)/share/man/man$(manext)# where to install man pages
25 INSTALLEDBIN = $(BINDIR)/funzip$E $(BINDIR)/unzip$E $(BINDIR)/unzipsfx$E \
26 $(BINDIR)/zipgrep$E $(BINDIR)/zipinfo$E
27 INSTALLEDMAN = $(MANDIR)/funzip.$(manext) $(MANDIR)/unzip.$(manext) \
d7558b14
FF
28@@ -452,7 +447,7 @@
29 $(INSTALL_PROGRAM) $(UNZIPS) $(BINDIR)
30 $(INSTALL) unix/zipgrep $(BINDIR)
31 $(RM) $(BINDIR)/zipinfo$E
32- $(LN) $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E
33+ $(LN) -s $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E
34 -$(INSTALL_D) $(MANDIR)
35 $(INSTALL) man/funzip.1 $(MANDIR)/funzip.$(manext)
36 $(INSTALL) man/unzip.1 $(MANDIR)/unzip.$(manext)