2009-12-09 08:52:52 +00:00
|
|
|
# Template file for 'tcl'
|
|
|
|
pkgname=tcl
|
2012-11-13 10:06:30 +00:00
|
|
|
version=8.5.13
|
2013-04-11 09:03:43 +00:00
|
|
|
revision=3
|
2012-02-09 16:12:05 +00:00
|
|
|
wrksrc="tcl${version}"
|
|
|
|
build_wrksrc=unix
|
2009-12-09 08:52:52 +00:00
|
|
|
short_desc="The TCL scripting language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-11-13 10:06:30 +00:00
|
|
|
homepage="http://www.tcl.tk"
|
2011-07-11 14:08:16 +00:00
|
|
|
license="tcl/tk"
|
2012-11-13 10:06:30 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}${version}-src.tar.gz"
|
|
|
|
checksum=9b868dd563e65671a26fcf518b6b86c1bb1b6756f48fdc90f04301d4f3a6596a
|
2011-07-11 14:08:16 +00:00
|
|
|
|
2011-11-15 12:05:24 +00:00
|
|
|
do_configure() {
|
2011-11-08 10:56:17 +00:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2011-07-11 14:08:16 +00:00
|
|
|
local args="${configure_args} --enable-64bits"
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
|
2013-02-07 00:41:05 +00:00
|
|
|
--without-tzdata --enable-man-symlinks \
|
|
|
|
--disable-static --disable-rpath \
|
|
|
|
tcl_cv_strtod_unbroken=ok $args
|
2011-11-15 12:05:24 +00:00
|
|
|
}
|
2011-07-11 14:08:16 +00:00
|
|
|
|
2011-11-15 12:05:24 +00:00
|
|
|
do_build() {
|
2011-07-11 14:08:16 +00:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
2011-11-15 12:05:24 +00:00
|
|
|
do_install() {
|
2011-07-11 14:08:16 +00:00
|
|
|
make INSTALL_ROOT=${DESTDIR} install install-private-headers
|
2012-09-23 00:18:40 +00:00
|
|
|
ln -sfr ${DESTDIR}/usr/bin/tclsh8.5 ${DESTDIR}/usr/bin/tclsh
|
2011-07-11 14:08:16 +00:00
|
|
|
vinstall ../license.terms 644 usr/share/licenses/tcl LICENSE
|
2013-03-25 23:37:13 +00:00
|
|
|
# Set proper perms to shlibs.
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so*
|
2009-12-09 08:52:52 +00:00
|
|
|
}
|
2013-04-11 09:03:43 +00:00
|
|
|
|
|
|
|
tcl-devel_package() {
|
|
|
|
depends="tcl>=${version}"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/tclConfig.sh
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/man/mann
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tcl_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|