1 # $NetBSD: Makefile,v 1.23 2012/09/28 10:02:21 sbd Exp $
3 DISTNAME
= otcl-src-1.14
4 PKGNAME
= tcl-
${DISTNAME
:S
/-src
//}
6 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=otcl-tclcl
/}
8 MAINTAINER
= minskim@NetBSD.org
9 HOMEPAGE
= http
://otcl-tclcl.sourceforge.net
/otcl
/
10 COMMENT
= MIT Object Tcl
12 PKG_INSTALLATION_TYPES
= overwrite pkgviews
16 WRKSRC
= ${WRKDIR}/${DISTNAME
:S
/-src
//}
18 .
include "../../lang/tcl/Makefile.version"
19 .
include "../../x11/tk/Makefile.version"
21 CONFIGURE_ARGS
+= V_LIBS
="`${CONFIG_SHELL} -c '. ${TCLCONFIG_SH}; ${ECHO} $$TCL_LIBS'`"
22 CONFIGURE_ARGS
+= --with-tcl
=${BUILDLINK_PREFIX.tcl
}
23 CONFIGURE_ARGS
+= --with-tk
=${BUILDLINK_PREFIX.tk
}
24 CONFIGURE_ARGS
+= --with-tcl-ver
=${TCL_VERSION}
25 CONFIGURE_ARGS
+= --with-tk-ver
=${TK_VERSION}
27 CPPFLAGS
+= -I
${BUILDLINK_PREFIX.tcl
}/include/tcl
/generic
29 DOCS
= autoload.html capi.html class.html object.html \
30 tutorial.html otcl-paper.ps.gz
31 DOCDIR
= ${PREFIX}/share
/doc
/tcl
/otcl
33 INSTALLATION_DIRS
= bin
include lib
${DOCDIR}
35 BUILDLINK_DEPMETHOD.libXt?
= build
37 .
include "../../lang/tcl/buildlink3.mk"
38 .
include "../../x11/tk/buildlink3.mk"
39 .
include "../../x11/libXt/buildlink3.mk"
42 ${INSTALL_DATA} ${WRKSRC}/CHANGES.html
${DESTDIR}${DOCDIR}
43 .for _file_ in
${DOCS}
44 ${INSTALL_DATA} ${WRKSRC}/doc
/${_file_} ${DESTDIR}${DOCDIR}
47 .
include "../../mk/bsd.pkg.mk"