aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
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: