summaryrefslogtreecommitdiff
path: root/audio/timidity/Makefile
blob: b9bf7a990957f9022ec0dc339eca26e2041d5e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.56 2006/02/05 23:08:14 joerg Exp $

DISTNAME=	TiMidity++-2.13.2
PKGNAME=	${DISTNAME:S/TiMidity++/timidity/}
PKGREVISION=	4
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]*

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:Q}
CONFIGURE_ARGS+=	--enable-audio=${TIMIDITY_NATIVE_AUDIO},vorbis,flac,speex

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"

TIMIDITY_NATIVE_AUDIO=	# empty

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
TIMIDITY_NATIVE_AUDIO=	sun
.elif ${OPSYS} == "Linux"
TIMIDITY_NATIVE_AUDIO=	oss
.elif ${OPSYS} == "Darwin"
TIMIDITY_NATIVE_AUDIO=	darwin
.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"