From 16cf947a5971c65c133ade870cd4eb851a5bd9bd Mon Sep 17 00:00:00 2001 From: hoek Date: Wed, 31 May 2000 18:17:39 +0000 Subject: 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. --- lang/itcl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lang/itcl') diff --git a/lang/itcl/Makefile b/lang/itcl/Makefile index 0544684..61578ba 100644 --- a/lang/itcl/Makefile +++ b/lang/itcl/Makefile @@ -19,6 +19,8 @@ WRKSRC= ${WRKDIR}/itcl3.0.1/itcl/unix GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.2 CONFIGURE_ENV= PORTSDIR=${PORTSDIR} ITCL_LIB_FILE=${ITCL_LIB_FILE} +PKGINSTALL= ${PORTSDIR}/lang/tcl82/pkg/INSTALL.tclsh +PKGDEINSTALL= ${PORTSDIR}/lang/tcl82/pkg/DEINSTALL.tclsh SHLIB_MAJOR= 1 SHLIB_MINOR= 1 @@ -47,5 +49,8 @@ post-install: ${LN} -sf ${PREFIX}/bin/itclsh3.0 ${PREFIX}/bin/itclsh ${LN} -sf ${ITCL_LIB_FILE} ${PREFIX}/lib/${ITCL_LIB} ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib +.if exists(${PKGINSTALL}) + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} +.endif .include -- cgit v1.1