summaryrefslogtreecommitdiff
path: root/lang/tcl-itcl/Makefile
blob: acb5328a03bdd4e0e31a84d6db2857e4a9252c26 (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
# $NetBSD: Makefile,v 1.8 2003/07/17 21:45:30 grant Exp $

DISTNAME=	itcl3.2
PKGNAME=	tcl-itcl-3.2
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.scriptics.com/pub/tcl/itcl/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://tcltk.com/itcl/
COMMENT=	[incr Tcl] object-oriented extension to Tcl/Tk

USE_BUILDLINK2=	yes
GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
CONFIGURE_ARGS= --enable-shared

CONFIGURE_ENV+=	TCL_SRC_DIR="${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.3.4"
CONFIGURE_ENV+=	TK_SRC_DIR="${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.3.4"

post-extract:
	@${MV} -f ${WRKSRC}/iwidgets3.0.0/doc/dialog.n 			\
		${WRKSRC}/iwidgets3.0.0/doc/itcldialog.n
	@${MV} -f ${WRKSRC}/iwidgets3.0.0/doc/menubar.n 		\
		${WRKSRC}/iwidgets3.0.0/doc/itclmenubar.n
	@${MV} -f ${WRKSRC}/iwidgets2.2.0/doc/dialog.n 			\
		${WRKSRC}/iwidgets2.2.0/doc/itcldialog.n
	@${MV} -f ${WRKSRC}/iwidgets2.2.0/doc/menubar.n 		\
		${WRKSRC}/iwidgets2.2.0/doc/itclmenubar.n
	@if [ ! -e ${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.3.4 ]; then	\
		cd ../../lang/tcl && ${MAKE} extract;			\
	fi
	@if [ ! -e ${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.3.4 ]; then	\
		cd ../../x11/tk && ${MAKE} extract;			\
	fi

pre-clean:
	@cd ../../lang/tcl && ${MAKE} clean
	@cd ../../x11/tk && ${MAKE} clean

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