aboutsummaryrefslogtreecommitdiff
path: root/audio/opmixer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/opmixer/Makefile')
-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