summaryrefslogtreecommitdiff
path: root/lang/tcl-otcl/Makefile
blob: 65447c3bae159f04dd061f12213d3c7546e51dbc (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
# $NetBSD: Makefile,v 1.3 2003/06/02 01:18:53 jschauma Exp $

DISTNAME=	otcl-1.0a8
PKGNAME=	tcl-${DISTNAME:S/a/rc/}
PKGREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=otcl-tclcl/}

MAINTAINER=	tech-pkg@netbsd.org
HOMEPAGE=	http://otcl-tclcl.sourceforge.net/otcl/
COMMENT=	MIT Object Tcl

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_BUILDLINK2=	yes
USE_X11=	yes

CONFIGURE_ARGS+=	--with-tcl=${BUILDLINK_PREFIX.tcl}
CONFIGURE_ARGS+=	--with-tk=${BUILDLINK_PREFIX.tk}

CPPFLAGS+=	-I${BUILDLINK_PREFIX.tcl}/include/tcl/generic

HTMLDOCS=	CHANGES.html autoload.html capi.html class.html object.html \
		tutorial.html
DOCS=		otcl-paper.ps.gz
HTMLDOCDIR=	${PREFIX}/share/doc/html/tcl/otcl
DOCDIR=		${PREFIX}/share/doc/tcl/otcl

post-install:
	${INSTALL_DATA_DIR} ${HTMLDOCDIR}
	${INSTALL_DATA_DIR} ${DOCDIR}
.for _file_ in ${HTMLDOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${HTMLDOCDIR}
.endfor
.for _file_ in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${DOCDIR}
.endfor

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