diff options
author | trevor <trevor@FreeBSD.org> | 2000-10-15 14:18:00 +0000 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2000-10-15 14:18:00 +0000 |
commit | 79d2b84986b45b4f7273d80dc051fd5dec3e9558 (patch) | |
tree | 3a533e8575ab11a0776fc1138209af1f4484b3b6 /audio | |
parent | 119e97ffbefe0b8622313debd6c15407f88eaa42 (diff) | |
download | FreeBSD-ports-79d2b84986b45b4f7273d80dc051fd5dec3e9558.zip FreeBSD-ports-79d2b84986b45b4f7273d80dc051fd5dec3e9558.tar.gz |
Use <machine/soundcard.h> if we have no <sys/soundcard.h> (found by bento).
Diffstat (limited to 'audio')
-rw-r--r-- | audio/autozen/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/autozen/Makefile b/audio/autozen/Makefile index b4bdd13..1d64853 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: |