make use of {MAKE,FAKE}_FLAGS

This commit is contained in:
brad 2000-03-30 22:28:48 +00:00
parent a5d337234e
commit a8a5541813
2 changed files with 8 additions and 43 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2000/03/30 22:12:23 brad Exp $
# $OpenBSD: Makefile,v 1.11 2000/03/30 22:28:48 brad Exp $
DISTNAME= lha-114f
PKGNAME= lha-1.14f
@ -16,6 +16,13 @@ PERMIT_DISTFILES_FTP= Yes
FAKE= Yes
MAKE_FLAGS= CC="${CC}" OPTIMIZE="${CFLAGS}" \
MACHINE="-DSYSTIME_HAS_NO_TM -DSYSV_SYSTEM_DIR -DMKTIME -DUSESTRCASECMP" \
SWITCHES="-DNEED_INCREMENTAL_INDICATOR -DEUC -DSUPPORT_LH6"
FAKE_FLAGS= BINDIR='$${PREFIX}/bin' MANDIR='$${PREFIX}/man/ja_JP.EUC' \
MANSECT="1" INSTALL="" INSTALLBIN="${INSTALL_PROGRAM}" \
INSTALLMAN="${INSTALL_MAN}"
MANLANG= ja_JP.EUC
.include <bsd.port.mk>

View File

@ -1,42 +0,0 @@
--- Makefile.orig Sun Aug 29 01:36:34 1999
+++ Makefile Thu Sep 2 03:33:33 1999
@@ -11,27 +11,26 @@
#-----------------------------------------------------------------------
SHELL=/bin/sh
-MAKE = make
+#MAKE = make
#CC = cc
-CC = gcc
-SWITCHES = -DNEED_INCREMENTAL_INDICATOR \
- -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+#CC = gcc
+SWITCHES = -DNEED_INCREMENTAL_INDICATOR -DEUC -DSUPPORT_LH6
#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 -DSYSV_SYSTEM_DIR -DMKTIME -DUSESTRCASECMP
-#OPTIMIZE = -O2 -fstrength-reduce -fomit-frame-pointer
-OPTIMIZE = -O2 -DSUPPORT_LH6
+OPTIMIZE = ${CFLAGS}
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man
-MANSECT = n
+PREFIX ?= /usr/local
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/ja_JP.EUC
+MANSECT = 1
-INSTALL = install
-INSTALLBIN = -s -m 755
-INSTALLMAN = -m 644
+#INSTALL = install
+INSTALLBIN = -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALLMAN = -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
SUBDIRS = src man