mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
a9ee4450bc
Patch removed was incorporated upstream. Changes: https://github.com/Mindwerks/wildmidi/releases/tag/wildmidi-0.4.2 PR: 223925 Submitted by: SimaMoto,RyoTa <liangtai.s16@gmail.com> (maintainer)
70 lines
1.9 KiB
Makefile
70 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= wildmidi
|
|
PORTVERSION= 0.4.2
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
|
CATEGORIES= audio
|
|
|
|
MAINTAINER= liangtai.s16@gmail.com
|
|
COMMENT= Simple software midi player and core softsynth library
|
|
|
|
# player: GPLv3, library: LGPL3
|
|
LICENSE= LGPL3
|
|
|
|
USES= cmake:outsource
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Mindwerks
|
|
|
|
OPTIONS_SUB= yes
|
|
OPTIONS_RADIO= BACKEND
|
|
OPTIONS_RADIO_BACKEND= ALSA OPENAL OSS
|
|
OPTIONS_DEFINE= PLAYER PLAYERSTATIC STATIC
|
|
OPTIONS_DEFAULT= ALSA PLAYER
|
|
|
|
STATIC_CMAKE_BOOL= WANT_STATIC
|
|
|
|
PLAYER_DESC= Simple player
|
|
PLAYERSTATIC_DESC= Simple player using STATIC libWildMidi
|
|
BACKEND_DESC= Sound system PLAYER and PLAYERSTATIC use
|
|
PLAYER_CMAKE_BOOL= WANT_PLAYER
|
|
PLAYERSTATIC_CMAKE_BOOL= WANT_PLAYERSTATIC
|
|
PLAYERSTATIC_IMPLIES= STATIC
|
|
ALSA_CMAKE_BOOL= WANT_ALSA
|
|
OPENAL_CMAKE_BOOL= WANT_OPENAL
|
|
OSS_CMAKE_BOOL= WANT_OSS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MPLAYER} || ${PORT_OPTIONS:MPLAYERSTATIC}
|
|
LICENSE+= GPLv3
|
|
LICENSE_COMB= multi
|
|
. if ${PORT_OPTIONS:MOPENAL}
|
|
USES+= openal:al
|
|
. elif ${PORT_OPTIONS:MALSA}
|
|
LIB_DEPENDS+= libasound.so:audio/alsa-lib
|
|
. endif
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "/^dir \/usr\/share\//{" \
|
|
-e "s|/usr/share/midi/freepats|${LOCALBASE}/share/freepats|;" \
|
|
-e "h; x; s|^|# |; s|freepats|guspat|; H; s|guspat|eawpats|; H;" \
|
|
-e "s|eawpats|eawplus|; H; x;}" ${WRKSRC}/cfg/wildmidi.cfg
|
|
${REINPLACE_CMD} -e 's@/etc/wildmidi/@${DATADIR}/@' \
|
|
-e 's@/etc/@${DATADIR}/@' ${WRKSRC}/docs/man/man1/wildmidi.1 \
|
|
${WRKSRC}/docs/man/man5/wildmidi.cfg.5 \
|
|
${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} -e '/INSTALL/s@share/man@man@' \
|
|
-e '/pkgconfig/s/$${WILDMIDILIB_INSTALLDIR}/libdata/' \
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
|
|
pre-install:
|
|
@${RM} ${WRKSRC}/docs/man/man1/wildmidi.1${REINPLACE_ARGS:S/-i//} \
|
|
${WRKSRC}/docs/man/man5/wildmidi.cfg.5${REINPLACE_ARGS:S/-i//}
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ; \
|
|
${CP} ${WRKSRC}/cfg/wildmidi.cfg ${STAGEDIR}${DATADIR}/wildmidi.cfg.sample
|
|
|
|
.include <bsd.port.mk>
|