summaryrefslogtreecommitdiff
path: root/audio/fcplay
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2003-05-18 11:51:17 +0000
committerAnders Nordby <anders@FreeBSD.org>2003-05-18 11:51:17 +0000
commit0674ff90d4f213b70a4a9e3c76fd2bd716f55d6b (patch)
treecab36e6bd6e180a9a1eac1c1bf15335b8bb40a2c /audio/fcplay
parentBROKEN on 5.1: fails to link (diff)
Look for sys/soundcard.h instead of machine/soundcard.h, making the port
come a little longer in its build on -current. Now someone needs to fix the C++. The author does not maintain this code anymore.
Notes
Notes: svn path=/head/; revision=81221
Diffstat (limited to 'audio/fcplay')
-rw-r--r--audio/fcplay/Makefile8
-rw-r--r--audio/fcplay/files/patch-ab16
2 files changed, 21 insertions, 3 deletions
diff --git a/audio/fcplay/Makefile b/audio/fcplay/Makefile
index 92f89b43dbce..5cd127714117 100644
--- a/audio/fcplay/Makefile
+++ b/audio/fcplay/Makefile
@@ -26,10 +26,18 @@ BROKEN= "Does not compile (bad C++ code)"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CXXFLAGS+= -I${LOCALBASE}/include
+post-patch:
+.for f in configure Config.h.in
+ @${REINPLACE_CMD} -e "s@machine/soundcard\.h@sys/soundcard\.h@g; \
+ s@HAVE_MACHINE_SOUNDCARD_H@HAVE_SYS_SOUNDCARD_H@g" \
+ ${WRKSRC}/${f}
+.endfor
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fcplay ${PREFIX}/bin
.if !defined(NOPORTDOCS)
diff --git a/audio/fcplay/files/patch-ab b/audio/fcplay/files/patch-ab
index e79c210bbaa2..9c9bc3f692d5 100644
--- a/audio/fcplay/files/patch-ab
+++ b/audio/fcplay/files/patch-ab
@@ -1,6 +1,6 @@
---- AudioDriver.h.orig Tue Mar 4 06:47:00 1997
-+++ AudioDriver.h Tue Dec 12 02:46:01 2000
-@@ -7,6 +7,7 @@
+--- AudioDriver.h.orig Mon Mar 3 21:47:00 1997
++++ AudioDriver.h Sun May 18 11:12:48 2003
+@@ -7,14 +7,15 @@
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
@@ -8,3 +8,13 @@
// These next includes were not required if libsidplay would not
// provide related HAVE_* definitions.
+ #include <sidplay/compconf.h>
+ #if defined(HAVE_LINUX) && defined(HAVE_LINUX_SOUNDCARD_H)
+ #include <linux/soundcard.h>
+-#elif defined(HAVE_FREEBSD) && defined(HAVE_MACHINE_SOUNDCARD_H)
+- #include <machine/soundcard.h>
++#elif defined(HAVE_FREEBSD) && defined(HAVE_SYS_SOUNDCARD_H)
++ #include <sys/soundcard.h>
+ #elif defined(HAVE_NETBSD) && defined(HAVE_SOUNDCARD_H)
+ #include <soundcard.h>
+ #else