mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Use MAKE_ARGS
This commit is contained in:
parent
616025bd41
commit
f0ba9c83e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134295
@ -19,6 +19,15 @@ ALL_TARGET=
|
||||
WRKSRC= ${WRKDIR}/miscom
|
||||
MAN6= miscom.6
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
CFLAGS+= -DSOUNDSDIR='\"$(DATADIR)\"' -DSOUND_SUPPORT -DMORE_SOUNDBUF
|
||||
.endif
|
||||
|
||||
MAKE_ARGS= CC="${CC}" DATADIR="${DATADIR}" \
|
||||
CFLAGS="${CFLAGS}"
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_PROGRAM} ${WRKSRC}/miscom ${PREFIX}/bin
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${PREFIX}/man/man6
|
||||
@ -33,4 +42,4 @@ post-install:
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,35 +0,0 @@
|
||||
--- Makefile.orig Sat Mar 15 15:37:42 1997
|
||||
+++ Makefile Sat Jun 19 16:10:46 1999
|
||||
@@ -1,7 +1,7 @@
|
||||
# makefile for miscom
|
||||
|
||||
# needs an ANSI C compiler - gcc is fine
|
||||
-CC=gcc
|
||||
+#CC=gcc
|
||||
|
||||
# change these if you want anything anywhere else
|
||||
#
|
||||
@@ -12,7 +12,7 @@
|
||||
MANDIR=/usr/man/man6
|
||||
|
||||
# sounds/* go here:
|
||||
-DATADIR=/usr/games/lib/miscom
|
||||
+DATADIR=${PREFIX}/share/miscom
|
||||
|
||||
# about `-DMORE_SOUNDBUF':
|
||||
# With the new version of the sound driver in 1.3.x/2.0.x kernels,
|
||||
@@ -24,11 +24,13 @@
|
||||
#
|
||||
# comment the line out if you don't want sound support, or if
|
||||
# you're compiling on a non-Linux box.
|
||||
+.if ${MACHINE_ARCH} == "i386"
|
||||
SOUNDOPT=-DSOUNDSDIR=\"$(DATADIR)\" -DSOUND_SUPPORT -DMORE_SOUNDBUF
|
||||
+.endif
|
||||
|
||||
# compiler opts - shouldn't need changing. the `-I' is there just
|
||||
# in case you're using an older ncurses.
|
||||
-CFLAGS=-O -I/usr/include/ncurses $(SOUNDOPT)
|
||||
+CFLAGS+= $(SOUNDOPT)
|
||||
|
||||
# how to link your curses lib. `-lncurses' on Linux (and newer BSD?),
|
||||
# `-lcurses -ltermcap' on trad. BSD, `-lcurses -ltermlib' on SysV,
|
Loading…
Reference in New Issue
Block a user