aboutsummaryrefslogtreecommitdiff
path: root/audio/mpg123
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-07-01 13:03:07 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-07-01 13:03:07 +0000
commit6e94c5f7030b58103294bc1047c5268fc67ad3d0 (patch)
tree242d245aa912c3eafd8bce27520c1648aea0c1e8 /audio/mpg123
parentae2e57a565a18096bdd5fa0d1fb84aa26ce7c093 (diff)
downloadports-6e94c5f7030b58103294bc1047c5268fc67ad3d0.tar.gz
ports-6e94c5f7030b58103294bc1047c5268fc67ad3d0.zip
Use a patch rather than sed magic for the <sys/soundcard.h> issue.
Notes
Notes: svn path=/head/; revision=62266
Diffstat (limited to 'audio/mpg123')
-rw-r--r--audio/mpg123/Makefile5
-rw-r--r--audio/mpg123/files/patch-af11
2 files changed, 11 insertions, 5 deletions
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile
index 8242f712bcf4..c9254390d5e0 100644
--- a/audio/mpg123/Makefile
+++ b/audio/mpg123/Makefile
@@ -99,9 +99,4 @@ OPT_ARCH?= i586
MAKE_ARGS+= OPT_ARCH=${OPT_ARCH}
.endif
-post-patch:
- @${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
- ${WRKSRC}/audio_oss.c > ${WRKSRC}/audio_oss.c.new
- @${MV} ${WRKSRC}/audio_oss.c.new ${WRKSRC}/audio_oss.c
-
.include <bsd.port.post.mk>
diff --git a/audio/mpg123/files/patch-af b/audio/mpg123/files/patch-af
new file mode 100644
index 000000000000..36f059cfb493
--- /dev/null
+++ b/audio/mpg123/files/patch-af
@@ -0,0 +1,11 @@
+--- audio_oss.c.orig Sat Jan 31 23:14:08 1998
++++ audio_oss.c Sun May 12 15:35:49 2002
+@@ -31,7 +31,7 @@
+ #elif defined(__bsdi__)
+ #include <sys/soundcard.h>
+ #else
+-#include <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #endif
+
+ int audio_open(struct audio_info_struct *ai)