1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/audio/s3mod/files/patch-ab
Chris Piazza aed27b7dd5 patch the s3mod port to support PREFIX. While I'm here honour CC, too.
PR:	12212
Submitted by:	Nick Hibma <nick.hibma@jrc.it>
1999-06-19 10:00:15 +00:00

46 lines
1.1 KiB
Plaintext

--- Makefile.orig Sat Oct 21 12:48:51 1995
+++ Makefile Sat Jun 19 02:56:40 1999
@@ -5,11 +5,10 @@
#
########
-CC = gcc
-RM = rm
-LN = ln -s
+CC ?= gcc
+RM ?= rm
+LN += -s
-CFLAGS = -O2
LFLAGS =
OBJS = mod.o s3m.o main.o play.o mix.o cmdline.o dsp.o gus.o
@@ -24,6 +23,7 @@
@echo " make sun - SunOS/Solaris"
@echo " make sgi - SGI Irix"
@echo " make linux - Voxware DSP/GUS"
+ @echo " make freebsd - Voxware DSP/GUS"
@echo " make dec - Dec OSF/1"
@echo " make clean - remove all .o files"
@echo " make clobber - remove all .o and targets"
@@ -51,6 +51,9 @@
$(LN) DspDrivers/linux_dsp.c dsp.c
make CC=gcc CFLAGS=-O2 DEFINES="-DLINUX -DGUS" s3mod
+freebsd:
+ make CFLAGS="$(CFLAGS)" DEFINES="-DGUS" s3mod
+
s3mod: $(OBJS)
$(CC) $(CFLAGS) -o s3mod $(OBJS) $(LFLAGS) $(LIBS)
@@ -62,6 +65,9 @@
dep:
makedepend $(CFLAGS) $(LFLAGS) $(LIBS) $(CFILES)
+
+install:
+ install -c -m 555 s3mod ${PREFIX}/bin
# DO NOT DELETE THIS LINE -- make depend depends on it.