aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-04-25 08:01:17 +0800
committerjylefort <jylefort@FreeBSD.org>2005-04-25 08:01:17 +0800
commit1d83e90cded40a894ff38054e59ff8775232a073 (patch)
tree35e14e32afc726ed03395962f435610550442a92
parent9d94fa2a17b4d0ecadfe3e4e150c7df880017a42 (diff)
downloadfreebsd-ports-graphics-1d83e90cded40a894ff38054e59ff8775232a073.tar.gz
freebsd-ports-graphics-1d83e90cded40a894ff38054e59ff8775232a073.tar.zst
freebsd-ports-graphics-1d83e90cded40a894ff38054e59ff8775232a073.zip
Fix MIDI playback.
PR: ports/80304 Submitted by: Emanuel Haupt <ehaupt@critical.ch> (maintainer) Approved by: adamw (mentor)
-rw-r--r--audio/ocp/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index e26bf8df93f..469eead5314 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>