2009-02-17 20:49:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.21 2009/02/17 19:49:57 joerg Exp $
|
2002-08-28 11:57:34 +02:00
|
|
|
|
2007-04-26 17:28:42 +02:00
|
|
|
DISTNAME= otcl-src-1.13
|
2006-09-29 18:28:55 +02:00
|
|
|
PKGNAME= tcl-${DISTNAME:S/-src//}
|
2002-08-28 11:57:34 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=otcl-tclcl/}
|
|
|
|
|
2004-03-09 00:47:44 +01:00
|
|
|
MAINTAINER= minskim@NetBSD.org
|
2002-08-28 11:57:34 +02:00
|
|
|
HOMEPAGE= http://otcl-tclcl.sourceforge.net/otcl/
|
|
|
|
COMMENT= MIT Object Tcl
|
|
|
|
|
2004-03-09 00:47:44 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2009-02-17 20:49:57 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-03-09 00:47:44 +01:00
|
|
|
|
2002-08-28 11:57:34 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2006-09-29 18:28:55 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2002-08-28 11:57:34 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ARGS+= V_LIBS="`${CONFIG_SHELL} -c '. ${TCLCONFIG_SH}; ${ECHO} $$TCL_LIBS'`"
|
2002-08-28 11:57:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}
|
|
|
|
CONFIGURE_ARGS+= --with-tk=${BUILDLINK_PREFIX.tk}
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.tcl}/include/tcl/generic
|
|
|
|
|
2006-01-27 02:18:19 +01:00
|
|
|
DOCS= autoload.html capi.html class.html object.html \
|
|
|
|
tutorial.html otcl-paper.ps.gz
|
2002-08-28 11:57:34 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/tcl/otcl
|
|
|
|
|
2009-02-17 20:49:57 +01:00
|
|
|
INSTALLATION_DIRS= bin include lib ${DOCDIR}
|
2004-03-09 00:47:44 +01:00
|
|
|
|
2007-01-08 18:51:55 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
2004-03-09 00:47:44 +01:00
|
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
|
|
.include "../../x11/tk/buildlink3.mk"
|
2007-01-08 18:51:55 +01:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2004-03-09 00:47:44 +01:00
|
|
|
|
2002-08-28 11:57:34 +02:00
|
|
|
post-install:
|
2009-02-17 20:49:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGES.html ${DESTDIR}${DOCDIR}
|
2002-08-28 11:57:34 +02:00
|
|
|
.for _file_ in ${DOCS}
|
2009-02-17 20:49:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${DESTDIR}${DOCDIR}
|
2002-08-28 11:57:34 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|