provide a proper wrapper script
This commit is contained in:
parent
c4cd4de0c1
commit
f7f6664652
@ -1,8 +1,9 @@
|
|||||||
# $OpenBSD: Makefile,v 1.5 2009/04/16 22:15:46 sthen Exp $
|
# $OpenBSD: Makefile,v 1.6 2010/11/04 17:51:46 jasper Exp $
|
||||||
|
|
||||||
COMMENT= Visual Tcl development environment
|
COMMENT= Visual Tcl development environment
|
||||||
|
|
||||||
DISTNAME= vtcl-1.6.1a1
|
DISTNAME= vtcl-1.6.1a1
|
||||||
|
REVISION= 0
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
|
|
||||||
HOMEPAGE= http://vtcl.sourceforge.net/
|
HOMEPAGE= http://vtcl.sourceforge.net/
|
||||||
@ -18,20 +19,12 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vtcl/}
|
|||||||
MODTCL_VERSION= 8.4
|
MODTCL_VERSION= 8.4
|
||||||
MODTK_VERSION= 8.4
|
MODTK_VERSION= 8.4
|
||||||
MODULES= x11/tk
|
MODULES= x11/tk
|
||||||
|
NO_BUILD= Yes
|
||||||
RUN_DEPENDS= ${MODTK_RUN_DEPENDS}
|
RUN_DEPENDS= ${MODTK_RUN_DEPENDS}
|
||||||
|
|
||||||
pre-patch:
|
pre-patch:
|
||||||
@cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
|
@cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
|
||||||
|
|
||||||
# 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=${MODTK_BIN}" >> ${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:
|
do-install:
|
||||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/vtcl
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/vtcl
|
||||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vtcl
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vtcl
|
||||||
@ -40,7 +33,8 @@ do-install:
|
|||||||
${WRKSRC}/demo ${PREFIX}/lib/vtcl
|
${WRKSRC}/demo ${PREFIX}/lib/vtcl
|
||||||
cp -R ${WRKSRC}/sample ${PREFIX}/share/examples/vtcl
|
cp -R ${WRKSRC}/sample ${PREFIX}/share/examples/vtcl
|
||||||
cp -R ${WRKSRC}/doc ${PREFIX}/share/doc/vtcl
|
cp -R ${WRKSRC}/doc ${PREFIX}/share/doc/vtcl
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/vtcl ${PREFIX}/bin
|
${SUBST_CMD} -c ${FILESDIR}/vtcl ${WRKDIST}/vtcl
|
||||||
|
${INSTALL_SCRIPT} ${WRKDIST}/vtcl ${PREFIX}/bin
|
||||||
|
|
||||||
NO_REGRESS= Yes
|
NO_REGRESS= Yes
|
||||||
|
|
||||||
|
10
devel/vtcl/files/vtcl
Normal file
10
devel/vtcl/files/vtcl
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $OpenBSD: vtcl,v 1.1 2010/11/04 17:51:46 jasper Exp $
|
||||||
|
|
||||||
|
VTCL_HOME=${LOCALBASE}/lib/vtcl
|
||||||
|
PATH_TO_WISH=${MODTK_BIN}
|
||||||
|
|
||||||
|
export PATH_TO_WISH VTCL_HOME
|
||||||
|
|
||||||
|
exec ${PATH_TO_WISH} ${VTCL_HOME}/vtcl.tcl $*
|
Loading…
Reference in New Issue
Block a user