summaryrefslogtreecommitdiff
path: root/net/xspeakfree/Makefile
blob: 6dd09fbaef018f0a934ddf711e2e6f6cf3e6fe6e (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
# $NetBSD: Makefile,v 1.8 2004/03/26 02:27:50 wiz Exp $

DISTNAME=	xspeakfree-0.8.1
PKGREVISION=	1
CATEGORIES=	net audio x11
MASTER_SITES=	http://www.spearce.org/projects/xspeakfree/

MAINTAINER=	jlam@NetBSD.org
HOMEPAGE=	http://www.spearce.org/projects/xspeakfree/
COMMENT=	Tcl/Tk (wish) frontend to Speak Freely

DEPENDS+=	speakfreely>=7.1:../../net/speakfreely
DEPENDS+=	tk>=8.3.2:../../x11/tk83

NO_BUILD=	yes

WISH=		${LOCALBASE}/bin/wish

post-extract:
	${MV} ${WRKSRC}/bin/xspeakfree ${WRKSRC}/bin/xspeakfree.in

do-configure:
	${SED}	-e "s,@PREFIX@,${PREFIX},g" \
		-e "s,@WISH@,${WISH},g" \
		${WRKSRC}/bin/xspeakfree.in > ${WRKSRC}/bin/xspeakfree

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/xspeakfree ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/xspeakfree
	cd ${WRKSRC}/lib/xspeakfree; \
	for file in *.au *.tcl; do \
		${INSTALL_DATA} $${file} ${PREFIX}/share/xspeakfree; \
	done;
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.xspeakfree

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