1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/games/miscom/files/patch-aa

36 lines
1015 B
Plaintext

--- 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,