7dff0e523e
Version 2.15.0 * Add support for segment play option (-G, --segment) with a great contribution by Yotam Medini <yotam.medini@gmail.com>. * Add metronome indicator in dumb interface trace mode. * Let libao backend set ao options via TIMIDITY_AO_OPTIONS environment variable. * Fix for CVE-2009-0179, CVE-2009-3996, CVE-2010-2546 and CVE-2010-2971. * Fix for CVE-2017-11546. * Support for Tcl/Tk 8.6. * Improve Windows MIDI driver. * ...and many other bug fixes.
73 lines
2.2 KiB
Makefile
73 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.118 2021/01/03 18:54:05 adam Exp $
|
|
|
|
DISTNAME= TiMidity++-2.15.0
|
|
PKGNAME= ${DISTNAME:S/TiMidity++/timidity/}
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=timidity/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://timidity.sourceforge.net/
|
|
COMMENT= MIDI to WAV renderer and player
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
CONFLICTS= kdemultimedia-2.*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-vt100
|
|
CONFIGURE_ARGS+= --enable-ncurses
|
|
CONFIGURE_ARGS+= --enable-server
|
|
CONFIGURE_ARGS+= --with-ogg="${BUILDLINK_DIR}/include"
|
|
CONFIGURE_ARGS+= --with-vorbis="${BUILDLINK_DIR}/include"
|
|
CONFIGURE_ARGS+= --with-libFLAC="${BUILDLINK_DIR}/include"
|
|
CONFIGURE_ARGS+= --with-default-path=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --enable-audio=${TIMIDITY_NATIVE_AUDIO},ao,vorbis,flac,speex
|
|
CONFIGURE_ARGS+= --enable-network
|
|
|
|
FAKE_NCURSES= yes
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ARGS.Linux+= --enable-alsaseq
|
|
|
|
SUBST_CLASSES+= confdir
|
|
SUBST_MESSAGE.confdir= Configuring to use PKG_SYSCONFDIR.
|
|
SUBST_STAGE.confdir= pre-configure
|
|
SUBST_FILES.confdir= doc/C/timidity.cfg.5 doc/ja_JP.eucJP/timidity.cfg.5
|
|
SUBST_SED.confdir= -e 's,/usr/local/share/timidity,${PKG_SYSCONFDIR},g'
|
|
|
|
TIMIDITY_NATIVE_AUDIO= # empty
|
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" || ${OPSYS} == "OpenBSD"
|
|
TIMIDITY_NATIVE_AUDIO= sun
|
|
.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
|
|
TIMIDITY_NATIVE_AUDIO= oss
|
|
.elif ${OPSYS} == "Linux"
|
|
TIMIDITY_NATIVE_AUDIO= alsa,oss
|
|
.elif ${OPSYS} == "Darwin"
|
|
TIMIDITY_NATIVE_AUDIO= darwin
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/timidity
|
|
CONF_FILES= ${EGDIR}/timidity.cfg ${PKG_SYSCONFDIR}/timidity.cfg
|
|
|
|
pre-configure:
|
|
${SED} "s|@PREFIX@|${PREFIX}|" < ${FILESDIR}/timidity.cfg > \
|
|
${WRKDIR}/timidity.cfg
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/timidity.cfg ${DESTDIR}${EGDIR}
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
.include "../../audio/libao/buildlink3.mk"
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.include "../../audio/speex/buildlink3.mk"
|
|
.if ${OPSYS} == "Linux"
|
|
. include "../../audio/alsa-lib/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|