- remove NO_WRKSUBDIR and replace with the use of WRKDIST

- revert part of the patch and use MAKE_FLAGS to override a few variables
in the Makefile
- use BSD_INSTALL_ macros inside arc's Makefile
This commit is contained in:
brad 2000-02-09 03:40:54 +00:00
parent 75bda0cac4
commit a7305c009c
2 changed files with 12 additions and 20 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 1999/09/24 13:04:45 brad Exp $
# $OpenBSD: Makefile,v 1.8 2000/02/09 03:40:54 brad Exp $
DISTNAME= arc521e.pl8
PKGNAME= arc-5.21e
@ -11,6 +11,8 @@ NO_CDROM= "NOFEE: can not sell"
MAINTAINER= ports@openbsd.org
NO_WRKSUBDIR= yes
MAKE_FLAGS= CC="${CC}" OPT="${CFLAGS}"
WRKDIST= ${WRKDIR}
.include <bsd.port.mk>

View File

@ -1,17 +1,7 @@
--- Makefile.orig Tue Apr 14 18:57:58 1992
+++ Makefile Mon Aug 9 19:32:28 1999
@@ -32,14 +32,15 @@
OPT = -O
# For MWC 3.0 on the Atari ST, use:
#CFLAGS = -VCOMPAC -VPEEP
-CFLAGS = $(OPT) $(SYSTEM)
+#CFLAGS = $(OPT) $(SYSTEM)
+CFLAGS += $(SYSTEM)
# GNU's gcc is very nice, if you've got it. Otherwise just cc.
#CC = cgcc -mshort
-CC = cc
+#CC = cc
+++ Makefile Tue Feb 8 22:23:59 2000
@@ -39,7 +39,7 @@
CC = cc
# tmclock is only needed on Unix systems...
-TMCLOCK = tmclock.o
@ -19,16 +9,16 @@
# Files needed for System V
#SYSVOBJ = getwd.o rename.o scandir.o utimes.o
@@ -61,6 +62,12 @@
@@ -61,6 +61,12 @@
clean:
-rm *.o arc$(PROG) marc$(PROG)
+
+install:
+ install -cs -o root -g wheel arc marc ${PREFIX}/bin
+ install -c -o root -g wheel arc.1 ${PREFIX}/man/man1
+ install -d -o root -g wheel ${PREFIX}/share/doc/arc
+ install -c -o root -g wheel Arc521.doc Arcinfo ${PREFIX}/share/doc/arc
+ $(BSD_INSTALL_DATA_DIR) ${PREFIX}/share/doc/arc
+ $(BSD_INSTALL_PROGRAM) arc marc ${PREFIX}/bin
+ $(BSD_INSTALL_MAN) arc.1 ${PREFIX}/man/man1
+ $(BSD_INSTALL_DATA) Arc521.doc Arcinfo ${PREFIX}/share/doc/arc
arc.o: $(SRCDIR)arc.c $(HEADER)
$(CC) $(CFLAGS) -c $(SRCDIR)arc.c