openbsd-ports/devel/vtcl/Makefile
sthen bb76377f69 avoid a two-step SUBST_CMD/INSTALL_SCRIPT process by using new(ish)
SUBST_CMD -m to set the mode while copying.
2013-05-04 10:00:52 +00:00

39 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2013/05/04 10:00:52 sthen Exp $
COMMENT= Visual Tcl development environment
DISTNAME= vtcl-1.6.1a1
REVISION= 1
CATEGORIES= devel
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
HOMEPAGE= http://vtcl.sourceforge.net/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vtcl/}
MODULES= x11/tk
NO_BUILD= Yes
RUN_DEPENDS= ${MODTK_RUN_DEPENDS}
pre-patch:
@cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
do-install:
rm ${WRKSRC}/lib/propmgr.tcl.orig ${WRKSRC}/lib/tkcon.tcl.orig
${INSTALL_DATA_DIR} ${PREFIX}/lib/vtcl
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/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/examples/vtcl
cp -R ${WRKSRC}/doc ${PREFIX}/share/doc/vtcl
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/vtcl ${PREFIX}/bin/vtcl
NO_TEST= Yes
.include <bsd.port.mk>