aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2000-10-15 22:18:00 +0800
committertrevor <trevor@FreeBSD.org>2000-10-15 22:18:00 +0800
commit79d2b84986b45b4f7273d80dc051fd5dec3e9558 (patch)
tree3a533e8575ab11a0776fc1138209af1f4484b3b6 /audio
parent119e97ffbefe0b8622313debd6c15407f88eaa42 (diff)
downloadfreebsd-ports-gnome-79d2b84986b45b4f7273d80dc051fd5dec3e9558.tar.gz
freebsd-ports-gnome-79d2b84986b45b4f7273d80dc051fd5dec3e9558.tar.zst
freebsd-ports-gnome-79d2b84986b45b4f7273d80dc051fd5dec3e9558.zip
Use <machine/soundcard.h> if we have no <sys/soundcard.h> (found by bento).
Diffstat (limited to 'audio')
-rw-r--r--audio/autozen/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/autozen/Makefile b/audio/autozen/Makefile
index b4bdd13fb6b7..1d6485306949 100644
--- a/audio/autozen/Makefile
+++ b/audio/autozen/Makefile
@@ -22,6 +22,13 @@ DOC_FILES= CHANGES COPYING
DATA_FILES= deep-relax.seq relax.seq test.seq test2.seq test3.seq
post-patch:
+ @if [ -f /usr/include/sys/soundcard.h ]; then \
+ ${PERL} -pi -e "s=linux/soundcard.h=sys/soundcard.h=g" \
+ ${WRKSRC}/autozen.c; \
+ else \
+ ${PERL} -pi -e "s=linux/soundcard.h=machine/soundcard.h=g" \
+ ${WRKSRC}/autozen.c; \
+ fi
@${PERL} -pi -e "s=X11BASE=${X11BASE}=g" ${WRKSRC}/autozen.c
do-install: