diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-11-01 00:28:25 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-11-01 00:28:25 +0000 |
commit | ec00035afb7f32be58d1b330e0e280f69cb267bf (patch) | |
tree | 29ff8f592db5fc5360338dcfe829d3519c9ec198 /audio/sdl_sound | |
parent | 389101e02889c46936075a5c2568b2e7348ca3c6 (diff) | |
download | ports-ec00035afb7f32be58d1b330e0e280f69cb267bf.tar.gz ports-ec00035afb7f32be58d1b330e0e280f69cb267bf.zip |
- Produce meaningful error when timidity is built without required option
- Add USES=sdl
PR: 238080
Reported by: list1@gjunka.com
MFH: 2019Q4 (with hat)
Notes
Notes:
svn path=/head/; revision=516205
Diffstat (limited to 'audio/sdl_sound')
-rw-r--r-- | audio/sdl_sound/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/audio/sdl_sound/Makefile b/audio/sdl_sound/Makefile index e9fb7826b84c..090e9447b67d 100644 --- a/audio/sdl_sound/Makefile +++ b/audio/sdl_sound/Makefile @@ -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 |