mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- Add mikmod support for audio/sdl_mixer and audio/sdl2_mixer
- While here, simplify the OPTIONS usage PR: ports/181695 Submitted by: Jan Beich <jbeich@tormail.org>
This commit is contained in:
parent
758f1f016f
commit
5555c00c1e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327809
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= sdl2_mixer
|
||||
PORTVERSION= 2.0.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
|
||||
DISTNAME= SDL2_mixer-${PORTVERSION}
|
||||
@ -19,42 +20,31 @@ LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
OPTIONS_DEFINE= FLUIDSYNTH MODPLUG FLAC VORBIS
|
||||
OPTIONS_DEFINE= FLUIDSYNTH FLAC VORBIS
|
||||
OPTIONS_DEFAULT= FLUIDSYNTH MODPLUG FLAC VORBIS
|
||||
OPTIONS_RADIO= MOD
|
||||
OPTIONS_RADIO_MOD= MIKMOD MODPLUG
|
||||
|
||||
FLUIDSYNTH_DESC= Enable SoundFont2 Midi support via fluidsynth
|
||||
MIKMOD_DESC= Enable MOD music via libMikMod
|
||||
MODPLUG_DESC= Enable MOD music via libModPlug
|
||||
FLAC_DESC= Enable FLAC encoding support via flac
|
||||
VORBIS_DESC= Enable Ogg Vorbis music
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
MIKMOD_LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod
|
||||
MIKMOD_CONFIGURE_ENABLE= music-mod-mikmod
|
||||
|
||||
.if ${PORT_OPTIONS:MMODPLUG}
|
||||
LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug
|
||||
CONFIGURE_ARGS+= --enable-music-mod --enable-music-mod-modplug
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-mod --disable-music-mod-modplug
|
||||
.endif
|
||||
MODPLUG_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug
|
||||
MODPLUG_CONFIGURE_ENABLE= music-mod-modplug
|
||||
|
||||
.if ${PORT_OPTIONS:MFLAC}
|
||||
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
|
||||
CONFIGURE_ARGS+= --enable-music-flac
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-flac
|
||||
.endif
|
||||
FLAC_LIB_DEPENDS= FLAC:${PORTSDIR}/audio/flac
|
||||
FLAC_CONFIGURE_ENABLE= music-flac
|
||||
|
||||
.if ${PORT_OPTIONS:MFLUIDSYNTH}
|
||||
LIB_DEPENDS+= fluidsynth:${PORTSDIR}/audio/fluidsynth
|
||||
CONFIGURE_ARGS+= --enable-music-midi --enable-music-midi-fluidsynth
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-midi --disable-music-midi-fluidsynth
|
||||
.endif
|
||||
FLUIDSYNTH_LIB_DEPENDS= fluidsynth:${PORTSDIR}/audio/fluidsynth
|
||||
FLUIDSYNTH_CONFIGURE_ON= --enable-music-midi --enable-music-midi-fluidsynth
|
||||
FLUIDSYNTH_CONFIGURE_OFF= --disable-music-midi --disable-music-midi-fluidsynth
|
||||
|
||||
.if ${PORT_OPTIONS:MVORBIS}
|
||||
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
|
||||
CONFIGURE_ARGS+= --enable-music-ogg
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-ogg
|
||||
.endif
|
||||
VORBIS_LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis
|
||||
VORBIS_CONFIGURE_ENABLE= music-ogg
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= sdl_mixer
|
||||
PORTVERSION= 1.2.12
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
|
||||
DISTNAME= SDL_mixer-${PORTVERSION}
|
||||
@ -22,45 +22,35 @@ LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
OPTIONS_DEFINE= MIKMOD SMPEG FLAC VORBIS TIMIDITYPLUS
|
||||
OPTIONS_DEFAULT= MIKMOD SMPEG FLAC VORBIS
|
||||
OPTIONS_DEFINE= SMPEG FLAC VORBIS TIMIDITYPLUS
|
||||
OPTIONS_DEFAULT= SMPEG FLAC VORBIS
|
||||
OPTIONS_RADIO= MOD
|
||||
OPTIONS_RADIO_MOD= MIKMOD MODPLUG
|
||||
|
||||
MIKMOD_DESC= Enable MOD music via libMikMod
|
||||
MODPLUG_DESC= Enable MOD music via libModPlug
|
||||
SMPEG_DESC= Enable MP3 music via SMPEG
|
||||
FLAC_DESC= Enable FLAC encoding support via flac
|
||||
VORBIS_DESC= Enable Ogg Vorbis music
|
||||
TIMIDITYPLUS_DESC= Use Timidity++ instead of Timidity (soundfont)
|
||||
|
||||
MIKMOD_LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod
|
||||
MIKMOD_CONFIGURE_ENABLE= music-mod
|
||||
|
||||
MODPLUG_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug
|
||||
MODPLUG_CONFIGURE_ENABLE= music-mod-modplug
|
||||
|
||||
FLAC_LIB_DEPENDS= FLAC:${PORTSDIR}/audio/flac
|
||||
FLAC_CONFIGURE_ENABLE= music-flac
|
||||
|
||||
SMPEG_LIB_DEPENDS= smpeg:${PORTSDIR}/multimedia/smpeg
|
||||
SMPEG_CONFIGURE_ENABLE= music-mp3
|
||||
|
||||
VORBIS_LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis
|
||||
VORBIS_CONFIGURE_ENABLE= music-ogg
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MMIKMOD}
|
||||
LIB_DEPENDS+= mikmod:${PORTSDIR}/audio/libmikmod
|
||||
CONFIGURE_ARGS+= --enable-music-mod
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-mod
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFLAC}
|
||||
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
|
||||
CONFIGURE_ARGS+= --enable-music-flac
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-flac
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSMPEG}
|
||||
LIB_DEPENDS+= smpeg:${PORTSDIR}/multimedia/smpeg
|
||||
CONFIGURE_ARGS+= --enable-music-mp3
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-mp3
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MVORBIS}
|
||||
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
|
||||
CONFIGURE_ARGS+= --enable-music-ogg
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-music-ogg
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTIMIDITYPLUS}
|
||||
RUN_DEPENDS+= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats:${PORTSDIR}/audio/eawpats
|
||||
CONFIG_FILE= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats
|
||||
|
Loading…
Reference in New Issue
Block a user