summaryrefslogtreecommitdiff
path: root/devel/vtcl/Makefile
blob: e17f24c135d09f0109ce7411cf9559779e5a450f (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
# $NetBSD: Makefile,v 1.10 2013/06/03 10:04:50 wiz Exp $

DISTNAME=		vtcl-1.6.0
PKGREVISION=		5
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=vtcl/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://vtcl.sourceforge.net/
COMMENT=		Visual Tcl/Tk application development environment

USE_TOOLS+=	pax wish:run
HAS_CONFIGURE=		yes
NO_BUILD=		yes

VTCLDIR=		${PREFIX}/lib/vtcl
VTCLDOCDIR=		${PREFIX}/share/doc/vtcl
VTCLEGDIR=		${PREFIX}/share/examples/vtcl

CONFIGURE_ARGS+=	--libdir ${VTCLDIR}
CONFIGURE_ENV+=		WISH=${TOOLS_PATH.wish}

do-install:
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${VTCLDIR}
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${VTCLDOCDIR}
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${VTCLEGDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/vtcl ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/vtcl.tcl ${DESTDIR}${VTCLDIR}
	cd ${WRKSRC} && pax -rwpam lib ${DESTDIR}${VTCLDIR}
	cd ${WRKSRC} && pax -rwpam images ${DESTDIR}${VTCLDIR}
	cd ${WRKSRC} && pax -rwpam doc ${DESTDIR}${VTCLDOCDIR}
	cd ${WRKSRC} && pax -rwpam demo ${DESTDIR}${VTCLEGDIR}
	cd ${WRKSRC} && pax -rwpam sample ${DESTDIR}${VTCLEGDIR}

.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"