diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-04-25 00:01:17 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-04-25 00:01:17 +0000 |
commit | 428532260f79e59d6273ef4adc9a87a763fea153 (patch) | |
tree | 995fae7ab16eeaeffa947c8b6fe527f319042b9e /audio/ocp | |
parent | ba358c4800e7aad977ed8304021bfb7292dcffb8 (diff) | |
download | ports-428532260f79e59d6273ef4adc9a87a763fea153.tar.gz ports-428532260f79e59d6273ef4adc9a87a763fea153.zip |
Notes
Diffstat (limited to 'audio/ocp')
-rw-r--r-- | audio/ocp/Makefile | 21 |
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> |