pkgsrc/audio/timidity/Makefile
ben 0dafb51445 Modify directory structure used by guspatches and eawpatches.
1) install patches into separate directories to eliminate pkgsrc conflict
2) leave timidity configuration up to user, with instructions in MESSAGE
3) make timidity read configuration from PKG_SYSCONFDIR
4) bump PKGREVISION on eawpatches, guspatches, and timidity
2004-12-03 14:20:03 +00:00

49 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2004/12/03 14:20:03 ben Exp $
DISTNAME= TiMidity++-2.13.2
PKGNAME= ${DISTNAME:S/TiMidity++/timidity/}
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=timidity/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://timidity.sourceforge.net/
COMMENT= MIDI to WAV renderer and player
CONFLICTS= kdemultimedia-2.[0-9]*
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-vt100
CONFIGURE_ARGS+= --enable-gtk --enable-wrd --enable-xaw --enable-ncurses
CONFIGURE_ARGS+= --with-libFLAC="${BUILDLINK_DIR}/include"
CONFIGURE_ARGS+= --with-ogg="${BUILDLINK_DIR}/include"
CONFIGURE_ARGS+= --with-vorbis="${BUILDLINK_DIR}/include"
CONFIGURE_ARGS+= --with-default-path="${PKG_SYSCONFDIR}"
SUBST_CLASSES+= confdir
SUBST_MESSAGE.confdir= "Configuring to use PKG_SYSCONFDIR."
SUBST_STAGE.confdir= post-patch
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'
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --enable-audio=sun,vorbis,flac,speex
.endif
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --enable-audio=oss,vorbis,flac,speex
.endif
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/speex/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"