- Add the latest version of sdl_sound with support for USE_SDL=sound2. - Note that this is sdl2-only library, so audio/sdl_sound, which is sdl1-only library, remains in the tree and is not affected. I've had to rename playsound binary this port also installs to avoid the conflict. - The library now contains all the decoder code, so no external depends and options are needed any longer. I've added MIDI option though, since upstream has it disabled by default due to different license.
43 lines
952 B
Makefile
43 lines
952 B
Makefile
PORTNAME= sdl2_sound
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.0.1
|
|
CATEGORIES= audio
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Abstract SDL soundfile decoder
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE_ZLIB=${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake sdl
|
|
USE_SDL= sdl2
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= icculus
|
|
GH_PROJECT= SDL_sound
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= MIDI DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=MIDI
|
|
|
|
MIDI_DESC= MIDI support
|
|
MIDI_CMAKE_BOOL=SDLSOUND_DECODER_MIDI
|
|
MIDI_VARS= LICENSE+=ART10 \
|
|
LICENSE_COMB=multi \
|
|
LICENSE_FILE_ART10=${WRKSRC}/src/timidity/COPYING
|
|
|
|
post-install:
|
|
@cd ${STAGEDIR}${PREFIX}/bin && ${MV} playsound playsound2
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} CHANGELOG.txt \
|
|
CREDITS.txt README.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|