summaryrefslogtreecommitdiff
path: root/audio/timidity/Makefile
blob: 90a51fe6c6c8cf9325b58d8cfb7aae17d9bd6665 (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
# $NetBSD: Makefile,v 1.25 2000/08/18 22:46:30 hubertf Exp $
#

DISTNAME=       timidity-0.2i
CATEGORIES=     audio
MASTER_SITES=	${MASTER_SITE_LOCAL}
TIINS=          dgguspat.zip
DISTFILES=      ${TIINS} ${DISTNAME}.tar.gz

MAINTAINER=     mycroft@NetBSD.ORG
HOMEPAGE=	http://www.cgs.fi/~tt/timidity/

BUILD_DEPENDS=  unzip:../../archivers/unzip
DEPENDS+=	tk-8.0.5:../../x11/tk80

USE_CURSES=	# defined

RESTRICTED=		"Uses copyrighted patches"
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

EXTRACT_ONLY=   ${DISTNAME}.tar.gz
INSTALL_TARGET= install.all

do-configure:
	@cd ${WRKSRC} && \
	${SED} "s=%PREFIX%=${PREFIX}=" < gravis.cfg > gravis.cfg.new && \
	${MV} gravis.cfg.new gravis.cfg

post-install:
	cd ${PREFIX}/lib/timidity/patch && \
	unzip -o -q -L ${DISTDIR}/${TIINS}

.include "../../mk/bsd.pkg.mk"

.if defined(NEED_NCURSES) && ${NEED_NCURSES} == "YES"
EXTRAINCS+=	-DHAVE_NCURSES_H=1 -I${LOCALBASE}/include
EXTRALIBS+=	-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -lncurses
MAKE_ENV+=	EXTRAINCS="${EXTRAINCS}"
.else
EXTRALIBS+=	-lcurses -ltermcap
.endif

MAKE_ENV+=	EXTRALIBS="${EXTRALIBS}"