freebsd-ports/audio/sdl2_sound/Makefile
2022-09-08 23:30:42 +03:00

45 lines
1 KiB
Makefile

PORTNAME= sdl2_sound
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.1
CATEGORIES= audio
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Abstract SDL soundfile decoder
WWW= https://icculus.org/SDL_sound/ \
https://github.com/icculus/SDL_sound
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>