summaryrefslogtreecommitdiff
path: root/lang/otcl/Makefile
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 18:17:39 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 18:17:39 +0000
commit29870c686d9341c77e1566c3d555a36f42f3c414 (patch)
tree3d90adccda6e1f821d9a977aac601b6af3b314ff /lang/otcl/Makefile
parentLet the user know about itcl installations, too. (diff)
PKGDEINSTALL=${PORTSDIR}/lang/tcl82/pkg/DEINSTALL.tclsh, or from
${PKGDIR} if DEINSTALL.tclsh exists there. Also, add INSTALL.tclsh to ja-tcl*, otcl, and itcl. The latter two technically don't need it since they depend on another library which will pull the (DE)?INSTALL.tclsh stuff in, but I'm changing them anyways as a defensive measure.
Diffstat (limited to 'lang/otcl/Makefile')
-rw-r--r--lang/otcl/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/otcl/Makefile b/lang/otcl/Makefile
index c82aedd43a5c..19e61b6b596d 100644
--- a/lang/otcl/Makefile
+++ b/lang/otcl/Makefile
@@ -17,11 +17,16 @@ LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl-ver=8.2 --with-tk-ver=8.2
USE_AUTOCONF= yes
+PKGINSTALL= ${PORTSDIR}/lang/tcl82/pkg/INSTALL.tclsh
+PKGDEINSTALL= ${PORTSDIR}/lang/tcl82/pkg/DEINSTALL.tclsh
post-install:
${LN} -sf libotcl.so ${PREFIX}/lib/libotcl.so.1
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
strip ${PREFIX}/bin/otclsh
strip ${PREFIX}/bin/owish
+.if exists(${PKGINSTALL})
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
+.endif
.include <bsd.port.mk>