aboutsummaryrefslogtreecommitdiff
path: root/audio/opmixer
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2000-12-31 15:43:46 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2000-12-31 15:43:46 +0000
commit2b601c467afc89fec247841de176254b98548248 (patch)
treea03781b23d2f659fe02113a1116d2f97711a01c5 /audio/opmixer
parentd4e42d1f4f2d3d5ee76a9a604aa1aae10cc2d61b (diff)
downloadports-2b601c467afc89fec247841de176254b98548248.tar.gz
ports-2b601c467afc89fec247841de176254b98548248.zip
Patch ossmixer.hh to #include <machine/soundcard.h> on old systems.
Notes
Notes: svn path=/head/; revision=36539
Diffstat (limited to 'audio/opmixer')
-rw-r--r--audio/opmixer/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/opmixer/Makefile b/audio/opmixer/Makefile
index 9bd213adb619..0c26a207317e 100644
--- a/audio/opmixer/Makefile
+++ b/audio/opmixer/Makefile
@@ -29,6 +29,11 @@ pre-install:
${ECHO} @dirrm ${DOCDIR} >> ${PLIST}
.endif
+do-patch:
+.if exists(/usr/include/machine/soundcard.h)
+ ${PERL} -pi -e "s=sys/soundca=machine/soundca=g" ${WRKSRC}/ossmixer.hh
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/opmixer ${WRKSRC}/opmixer-load \
${PREFIX}/bin