MFH: r516205

- Produce meaningful error when timidity is built without required option
- Add USES=sdl

PR:		238080
Reported by:	list1@gjunka.com
Approved by:	ports-secteam (with hat)
This commit is contained in:
Dmitry Marakasov 2019-11-01 00:29:53 +00:00
parent 976f4ae470
commit 93f5de35de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q4/; revision=516206

View File

@ -14,7 +14,7 @@ COMMENT= SDL audio library and player for some popular sound file formats
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool localbase
USES= libtool localbase sdl
GNU_CONFIGURE= yes
USE_SDL= sdl
INSTALL_TARGET= install-strip
@ -49,14 +49,21 @@ SPEEX_LIB_DEPENDS= libspeex.so:audio/speex \
SPEEX_CONFIGURE_ENABLE= speex
MIDI_DESC= Software MIDI music
MIDI_RUN_DEPENDS= ${LOCALBASE}/lib/timidity/goemon.cfg:audio/timidity
MIDI_BUILD_DEPENDS= ${LOCALBASE}/lib/timidity/goemon.cfg:audio/timidity
MIDI_RUN_DEPENDS= timidity>=0:audio/timidity
MIDI_BUILD_DEPENDS= timidity>=0:audio/timidity
MIDI_CONFIGURE_ENABLE= midi
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg
VORBIS_CONFIGURE_ENABLE=ogg
pre-configure-MIDI-on:
@if ! [ -e "${LOCALBASE}/lib/timidity/goemon.cfg" ]; then \
${ECHO_CMD} 'MIDI support requires audio/timidity port to be built with GOEMON option enabled, which is not the case'; \
${ECHO_CMD} 'Please, run `make -C ${PORTSDIR}/audio/timidity config` and enable GOEMON option to continue'; \
${FALSE}; \
fi
post-patch:
@${REINPLACE_CMD} 's|timidity.cfg|${PREFIX}/share/timidity/&|' \
${WRKSRC}/decoders/timidity/options.h