freebsd-ports/audio/dcd/files/patch-Makefile
Pietro Cerutti d3d1b3c31b - Remove dependency on audio/libmusicbrainz
PR:		170303
Submitted by:	Jason E. Hale <bsdkaffee@gmail.com>
2012-08-06 11:53:17 +00:00

47 lines
1.3 KiB
Text

--- ./Makefile.orig 2003-08-27 21:44:07.000000000 -0400
+++ ./Makefile 2012-07-31 18:29:42.000000000 -0400
@@ -1,11 +1,11 @@
## This is the makefile for dcd, dave's cd player.
# Select your compiler; gcc is probably just fine.
-CC = gcc
+#CC = gcc
# Prefix for installing dcd. `make install' will put files in PREFIX/bin
# and PREFIX/man/man1 .
-PREFIX = /usr
+#PREFIX = /usr
# Where should dcd store its process ID? (relative to ~)
# This is the default, which you probably don't need to change.
@@ -21,7 +21,7 @@
# with that, you don't even need to uncomment the next line.
# CDROM = /dev/cdrom
# Or, if you use devfs, uncomment this line:
-CDROM = /dev/cdroms/cdrom0
+CDROM = /dev/cdrom
@@ -45,7 +45,7 @@
## If you want to disable the network code, try this. It probably doesn't
## work, but you're welcome to try ... Just comment out the next line.
-NETWORK = 1
+# NETWORK = 1
## Here be dragons... (Non-configurable parts past here.)
@@ -94,10 +94,10 @@
all: ${PROGS}
.c.o: ${SRCS}
- $(CC) -c $(CFLAGS) ${EXTRA_CFLAGS} -I/usr/local/include $< -o $@
+ $(CC) -c $(CFLAGS) ${EXTRA_CFLAGS} -I${LOCALBASE}/include $< -o $@
${PROGS}: ${OBJECTS}
- ${CC} ${CFLAGS} ${EXTRA_CFLAGS} *.o ${EXTRA_LFLAGS} -o dcd
+ ${CC} ${CFLAGS} ${EXTRA_CFLAGS} *.o ${EXTRA_LFLAGS} -L${LOCALBASE}/lib -lcdaudio -o dcd
clean:;
-${RM} *.o ${PROGS}