summaryrefslogtreecommitdiffstats
path: root/archivers/lha/files/patch-aa
blob: 8c417a47d2098a486dfc23aa3bdabdc7bf20ea3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- Makefile.orig	Fri Dec 15 14:13:16 2000
+++ Makefile	Sun Jul 21 17:24:46 2002
@@ -10,28 +10,36 @@
 #	SWITCHES macro definitions ... see config.eng or config.jpn.
 #-----------------------------------------------------------------------
 
-SHELL=/bin/sh
-MAKE = make
+#SHELL=/bin/sh
+#MAKE = make
 
 #CC			= cc
-CC			= gcc
-SWITCHES	= -DNEED_INCREMENTAL_INDICATOR \
- -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+#CC                      = gcc
+#SWITCHES        = -DNEED_INCREMENTAL_INDICATOR \
+# -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+SWITCHES        = -DNEED_INCREMENTAL_INDICATOR
 
 #MACHINE     = -DSYSTIME_HAS_NO_TM -DFTIME -DEUC
 #MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DHAVE_TM_ZONE -DSYSV_SYSTEM_DIR
-MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DMKTIME
+#MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DMKTIME
+MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DTIMELOCAL -DUSESTRCASECMP
 
 #OPTIMIZE	= -O2 -fstrength-reduce -fomit-frame-pointer
-OPTIMIZE	= -O2 -DSUPPORT_LH7 -DMKSTEMP
+#OPTIMIZE        = -O2 -DSUPPORT_LH7 -DMKSTEMP
+# mkstemp() usage is wrong
+OPTIMIZE        = ${CFLAGS} -DSUPPORT_LH7
 
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man
-MANSECT = n
+#BINDIR = /usr/local/bin
+#MANDIR = /usr/local/man
+#MANSECT = n
+PREFIX ?= /usr/local
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/ja
+MANSECT = 1
 
-INSTALL = install
-INSTALLBIN = -s -m 755
-INSTALLMAN = -m 644
+INSTALL =
+INSTALLBIN = ${BSD_INSTALL_PROGRAM}
+INSTALLMAN = ${BSD_INSTALL_MAN}
 
 SUBDIRS = src man
 
OpenPOWER on IntegriCloud