1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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.
This commit is contained in:
Anders Nordby 2003-05-18 11:51:17 +00:00
parent e5a65eeff9
commit 0674ff90d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81221
2 changed files with 21 additions and 3 deletions

View File

@ -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)

View File

@ -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