openbsd-ports/devel/vtcl/Makefile
jose 1276189f11 visual tcl development environment. advice, ok sturm@
Visual Tcl is a freely-available, high-quality application development
environment for UNIX, Windows, Macintosh and AS400 platforms. Visual
Tcl is written entirely in Tcl/Tk and generates pure Tcl/Tk code.
This makes porting your Visual Tcl applications either unnecessary
or trivial.
2004-01-29 03:27:57 +00:00

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2004/01/29 03:27:57 jose Exp $
COMMENT= "Visual Tcl development environment"
DISTNAME= vtcl-1.6.0
CATEGORIES= devel
HOMEPAGE= http://vtcl.sourceforge.net/
MAINTAINER= Jose Nazario <jose@crimelabs.net>
# GPL2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vtcl/}
RUN_DEPENDS= ::x11/tk/8.4
# override configure/build stage to separate vtcl from its lib
do-build:
echo "#!/bin/sh" > ${WRKSRC}/vtcl
echo "VTCL_HOME=${LOCALBASE}/lib/vtcl" >> ${WRKSRC}/vtcl
echo "PATH_TO_WISH=${LOCALBASE}/bin/wish8.4" >> ${WRKSRC}/vtcl
echo "export PATH_TO_WISH VTCL_HOME" >> ${WRKSRC}/vtcl
echo "exec \$${PATH_TO_WISH} \$${VTCL_HOME}/vtcl.tcl \$$*" >> ${WRKSRC}/vtcl
chmod +x ${WRKSRC}/vtcl
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/vtcl
${INSTALL_DATA_DIR} ${PREFIX}/share/exmples/vtcl
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vtcl
cp -R ${WRKSRC}/vtcl.tcl ${WRKSRC}/images ${WRKSRC}/lib \
${WRKSRC}/demo ${PREFIX}/lib/vtcl
cp -R ${WRKSRC}/sample ${PREFIX}/share/exmples/vtcl
cp -R ${WRKSRC}/doc ${PREFIX}/share/doc/vtcl
${INSTALL_SCRIPT} ${WRKSRC}/vtcl ${PREFIX}/bin
NO_REGRESS= Yes
.include <bsd.port.mk>