diff options
author | ade <ade@FreeBSD.org> | 2000-09-16 18:10:23 +0000 |
---|---|---|
committer | ade <ade@FreeBSD.org> | 2000-09-16 18:10:23 +0000 |
commit | 34be68508885bc5a1c462853f17165ae807435f0 (patch) | |
tree | 8188e6583e1364f8f32d271a125d02c78d78ac50 /emulators | |
parent | fc1da69f5e31c186b829b4c1ac0e277d0844d679 (diff) | |
download | FreeBSD-ports-34be68508885bc5a1c462853f17165ae807435f0.zip FreeBSD-ports-34be68508885bc5a1c462853f17165ae807435f0.tar.gz |
Support CC/CFLAGS properly
PR: 21137
Submitted by: Ports Fury
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/fmsx/files/patch-aa | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/emulators/fmsx/files/patch-aa b/emulators/fmsx/files/patch-aa index 90b0bf2..b149fa5 100644 --- a/emulators/fmsx/files/patch-aa +++ b/emulators/fmsx/files/patch-aa @@ -1,15 +1,26 @@ ---- Makefile.orig Thu Aug 3 20:23:33 2000 -+++ Makefile Wed Aug 16 17:24:53 2000 -@@ -44,10 +44,10 @@ +--- Makefile.orig Fri Aug 4 02:23:33 2000 ++++ Makefile Thu Aug 17 04:50:41 2000 +@@ -43,11 +43,10 @@ + # If you are getting linker errors about not found X11 functions, # change the -L/usr/X11R6/lib to the directory where X11 # libraries libX11.* and libXext.* are located on your system. - CC = gcc +-CC = gcc -DEFINES = -DFMSX -DUNIX -DLSB_FIRST -DDEBUG -DMITSHM \ ++CC ?= gcc +DEFINES = -DFMSX -DUNIX -DLSB_FIRST -DMITSHM \ -DDISK -DNARROW -DSOUND -DBPP16 - CFLAGS = -O3 -fomit-frame-pointer \ +-CFLAGS = -O3 -fomit-frame-pointer \ - -I/usr/X11/include -L/usr/X11/lib ${DEFINES} -+ -I${X11BASE}/include -L${X11BASE}/lib ${DEFINES} ++CFLAGS += -I${X11BASE}/include ${DEFINES} OBJECTS = fMSX.o MSX.o Z80.o AY8910.o SCC.o V9938.o Patch.o Debug.o \ Disk.o Unix.o LibUnix.o SndUnix.o MIDI.o +@@ -63,7 +62,7 @@ + # fMSX Unix/X requires X11 libraries. See note above if you are + # experiencing any problems. + fmsx: ${OBJECTS} +- ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -lXext -lX11 ++ ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -lXext -lX11 -L${X11BASE}/lib + + # Clean up. + clean: |