diff options
author | anders <anders@FreeBSD.org> | 2003-05-18 19:51:17 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2003-05-18 19:51:17 +0800 |
commit | 6830b36efa73917e5519a4f545c4e098b93dd7bf (patch) | |
tree | 512c216397bd57a4991cfbcdff70130418dcab7c /audio | |
parent | 2a6818be34c7d9e6b95cbbb80121538e9d13f91f (diff) | |
download | freebsd-ports-gnome-6830b36efa73917e5519a4f545c4e098b93dd7bf.tar.gz freebsd-ports-gnome-6830b36efa73917e5519a4f545c4e098b93dd7bf.tar.zst freebsd-ports-gnome-6830b36efa73917e5519a4f545c4e098b93dd7bf.zip |
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.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/fcplay/Makefile | 8 | ||||
-rw-r--r-- | audio/fcplay/files/patch-ab | 16 |
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 |