void-packages/srcpkgs/tcl/template
2013-03-26 00:37:13 +01:00

36 lines
997 B
Text

# Template file for 'tcl'
pkgname=tcl
version=8.5.13
revision=2
wrksrc="tcl${version}"
build_wrksrc=unix
subpackages="tcl-devel"
short_desc="The TCL scripting language"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.tcl.tk"
license="tcl/tk"
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}${version}-src.tar.gz"
checksum=9b868dd563e65671a26fcf518b6b86c1bb1b6756f48fdc90f04301d4f3a6596a
do_configure() {
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
local args="${configure_args} --enable-64bits"
fi
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
--without-tzdata --enable-man-symlinks \
--disable-static --disable-rpath \
tcl_cv_strtod_unbroken=ok $args
}
do_build() {
make ${makejobs}
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -sfr ${DESTDIR}/usr/bin/tclsh8.5 ${DESTDIR}/usr/bin/tclsh
vinstall ../license.terms 644 usr/share/licenses/tcl LICENSE
# Set proper perms to shlibs.
chmod 755 ${DESTDIR}/usr/lib/*.so*
}