aboutsummaryrefslogtreecommitdiff
path: root/audio/cd-console/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-25 15:32:36 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-25 15:32:36 +0000
commit600ae94e73770f95327dd2c31b944f581b69b038 (patch)
tree6c71453c0e39e64aef0e87c0c99389d3eac9db9e /audio/cd-console/files
parent119254c786536254cdfa63296d9878da67e2e6b4 (diff)
Notes
Diffstat (limited to 'audio/cd-console/files')
-rw-r--r--audio/cd-console/files/patch-aa41
-rw-r--r--audio/cd-console/files/patch-ab12
2 files changed, 53 insertions, 0 deletions
diff --git a/audio/cd-console/files/patch-aa b/audio/cd-console/files/patch-aa
new file mode 100644
index 000000000000..837447cfc001
--- /dev/null
+++ b/audio/cd-console/files/patch-aa
@@ -0,0 +1,41 @@
+--- Makefile.orig Sun Nov 28 20:08:56 1999
++++ Makefile Sun Nov 28 20:14:20 1999
+@@ -5,17 +5,17 @@
+ # very welcome).
+
+ # for linux
+-DEFS = -DOS_LINUX
+-EXTRA_OBJS = cd_ll_linux.o
++#DEFS = -DOS_LINUX
++#EXTRA_OBJS = cd_ll_linux.o
+
+ # for bsd. only tested on freebsd
+-#DEFS = -DOS_BSD
+-#EXTRA_OBJS = cd_ll_bsd.o
+-
++DEFS = -DOS_BSD
++EXTRA_OBJS = cd_ll_bsd.o
++CDDEVICE=\"/dev/acd0c\"
+
+ # you shouldn't have to change anything below this line
+
+-
++BINPATH=${PREFIX}/bin/
+ OBJS=cd-console.o cd.o $(EXTRA_OBJS)
+ LIBS = -lncurses
+
+@@ -38,10 +38,13 @@
+ $(CC) -c cd_ll_linux.cpp $(CFLAGS)
+
+ cd_ll_bsd.o: cd_ll.h cd_ll_bsd.h cd_ll_bsd.cpp
+- $(CC) -c cd_ll_bsd.cpp $(CFLAGS)
++ $(CC) -c -DDEVICE=$(CDDEVICE) cd_ll_bsd.cpp $(CFLAGS)
+
+ cd.o: cd.h cd.cpp
+ $(CC) -c cd.cpp $(CFLAGS)
+
+ clean:
+ rm -f $(OBJS) cd-console
++
++install:
++ @$(BSD_INSTALL_PROGRAM) cd-console $(BINPATH)
diff --git a/audio/cd-console/files/patch-ab b/audio/cd-console/files/patch-ab
new file mode 100644
index 000000000000..87ba8607e5c5
--- /dev/null
+++ b/audio/cd-console/files/patch-ab
@@ -0,0 +1,12 @@
+--- cd_ll_bsd.cpp.orig Sun Nov 28 20:14:31 1999
++++ cd_ll_bsd.cpp Sun Nov 28 20:15:29 1999
+@@ -10,7 +10,9 @@
+ #include "cd_ll_bsd.h"
+
+ // the cd-rom device file
++#ifndef DEVICE
+ #define DEVICE "/dev/acd0c"
++#endif
+
+ cd_ll_bsd::cd_ll_bsd()
+ : m_fd(-1)