summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-25 00:01:17 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-25 00:01:17 +0000
commit428532260f79e59d6273ef4adc9a87a763fea153 (patch)
tree995fae7ab16eeaeffa947c8b6fe527f319042b9e /audio
parentReset maintainer to ports@. (diff)
Fix MIDI playback.
PR: ports/80304 Submitted by: Emanuel Haupt <ehaupt@critical.ch> (maintainer) Approved by: adamw (mentor)
Notes
Notes: svn path=/head/; revision=134088
Diffstat (limited to 'audio')
-rw-r--r--audio/ocp/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index e26bf8df93f2..469eead53148 100644
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ocp
PORTVERSION= 0.1.5
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://labs.nixia.no/
@@ -34,6 +35,22 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} ${CPPFLAGS}" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
+TIMIDITY_CFG= ${LOCALBASE}/share/timidity/timidity.cfg
+
+.include <bsd.port.pre.mk>
+
+.if exists(${TIMIDITY_CFG}) || !defined(WITHOUT_MIDI)
+RUN_DEPENDS= ${TIMIDITY_CFG}:${PORTSDIR}/audio/eawpats
+.endif
+
+.if !exists(${TIMIDITY_CFG}) && !defined(WITHOUT_MIDI)
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "In order to be able to play MIDI files, audio/eawpats will be installed."
+ @${ECHO_MSG} "Define WITHOUT_MIDI if you do not want to install it."
+ @${ECHO_MSG} ""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|@LIBDIR@|${PREFIX}/lib/ocp|' \
${WRKSRC}/Rules.make.in
@@ -44,6 +61,8 @@ post-patch:
${WRKSRC}/playmp2/Makefile \
${WRKSRC}/playogg/Makefile \
${WRKSRC}/playsid/Makefile
+ @${REINPLACE_CMD} -e 's|/etc/.*\.cfg|${TIMIDITY_CFG}|' \
+ ${WRKSRC}/playgmi/gmitimidity.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocp ${PREFIX}/bin
@@ -67,4 +86,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>