diff options
author | heinz <heinz> | 2007-05-29 18:35:58 +0000 |
---|---|---|
committer | heinz <heinz> | 2007-05-29 18:35:58 +0000 |
commit | f1ce2d7e0a4fb743276b03499f2bf3dddb7c195e (patch) | |
tree | 9a20245023eaf9dabcaf47a5c6eddeb640b0d424 /lang/tcl | |
parent | 54032e0b7b2b330f8edf4919d217b3d39fc17767 (diff) | |
download | pkgsrc-f1ce2d7e0a4fb743276b03499f2bf3dddb7c195e.tar.gz |
Added support for installation to DESTDIR. Approved by Jim Wise.
Diffstat (limited to 'lang/tcl')
-rw-r--r-- | lang/tcl/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile index b98438a7285..7fb274d0a36 100644 --- a/lang/tcl/Makefile +++ b/lang/tcl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.60 2006/11/02 17:41:23 adam Exp $ +# $NetBSD: Makefile,v 1.61 2007/05/29 18:35:58 heinz Exp $ DISTNAME= tcl${TCL_VERSION}-src PKGNAME= tcl-${TCL_VERSION} @@ -13,6 +13,7 @@ COMMENT= Ousterhout's Tool Command Language, a scripting language CONFLICTS+= tclman80-[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir PKG_INSTALLATION_TYPES= overwrite pkgviews WRKSRC= ${WRKDIR}/tcl${TCL_VERSION} @@ -58,18 +59,20 @@ SUBST_FILES.tcl-config= unix/tclConfig.sh SUBST_SED.tcl-config+= -e "s|${WRKSRC}/unix|${PREFIX}/lib|" SUBST_SED.tcl-config+= -e "s|${WRKSRC}|${PREFIX}/include/tcl|" -INSTALLATION_DIRS+= ${PREFIX}/include/tcl -INSTALLATION_DIRS+= ${PREFIX}/include/tcl/unix -INSTALLATION_DIRS+= ${PREFIX}/include/tcl/generic -INSTALLATION_DIRS+= ${PREFIX}/lib/tcl +INSTALLATION_DIRS+= include/tcl +INSTALLATION_DIRS+= include/tcl/unix +INSTALLATION_DIRS+= include/tcl/generic +INSTALLATION_DIRS+= lib/tcl post-install: - cd ${PREFIX}/bin && ln -s tclsh8.4 tclsh - ${INSTALL_DATA} ${WRKSRC}/unix/tclUnixPort.h ${PREFIX}/include/tcl/unix + cd ${DESTDIR:Q}${PREFIX:Q}/bin && ln -s tclsh8.4 tclsh + ${INSTALL_DATA} ${WRKSRC}/unix/tclUnixPort.h \ + ${DESTDIR:Q}${PREFIX:Q}/include/tcl/unix .for f in regex.h tcl.h tclCompile.h tclDecls.h tclIO.h \ tclInitScript.h tclInt.h tclIntDecls.h tclIntPlatDecls.h\ tclMath.h tclPlatDecls.h tclPort.h tclRegexp.h - ${INSTALL_DATA} ${WRKSRC}/generic/${f} ${PREFIX}/include/tcl/generic + ${INSTALL_DATA} ${WRKSRC}/generic/${f} \ + ${DESTDIR:Q}${PREFIX:Q}/include/tcl/generic .endfor .include "../../mk/bsd.pkg.mk" |