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