2013-05-22 11:28:42 +02:00
|
|
|
# Template file for 'tk'
|
|
|
|
pkgname=tk
|
2013-09-25 10:31:50 +02:00
|
|
|
version=8.6.1
|
|
|
|
revision=1
|
2013-05-22 11:28:42 +02:00
|
|
|
wrksrc="tk${version}"
|
|
|
|
build_wrksrc=unix
|
|
|
|
short_desc="The TK graphical user interface toolkit for TCL"
|
|
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
|
|
homepage="http://www.tcl.tk"
|
|
|
|
license="tcl/tk"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/tcl/${pkgname}${version}-src.tar.gz"
|
2013-09-25 10:31:50 +02:00
|
|
|
checksum=b691a2e84907392918665fe03a0deb913663a026bed2162185b4a9a14898162c
|
2013-05-22 11:41:49 +02:00
|
|
|
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="tcl-devel libXext-devel libX11-devel libXScrnSaver-devel libXft-devel"
|
2013-05-22 11:28:42 +02:00
|
|
|
|
|
|
|
do_configure() {
|
2013-05-26 10:41:55 +02:00
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
|
|
|
|
configure_args+=" --enable-64bits "
|
2013-05-22 11:41:49 +02:00
|
|
|
fi
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-05-26 10:41:55 +02:00
|
|
|
configure_args+=" --with-tcl=$XBPS_CROSS_BASE/usr/lib "
|
2013-05-22 11:28:42 +02:00
|
|
|
fi
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --enable-threads \
|
2013-05-22 11:28:42 +02:00
|
|
|
--without-tzdata --enable-man-symlinks \
|
|
|
|
--disable-static --disable-rpath \
|
2013-05-26 10:41:55 +02:00
|
|
|
tk_cv_strtod_unbroken=ok
|
2013-05-22 11:28:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-05-22 11:41:49 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX
|
|
|
|
sed -e "s,-L/usr/lib,-L$XBPS_CROSS_BASE/usr/lib,g" -i Makefile
|
|
|
|
fi
|
2013-05-22 11:28:42 +02:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make INSTALL_ROOT=${DESTDIR} install install-private-headers
|
|
|
|
vinstall ../license.terms 644 usr/share/licenses/tk LICENSE
|
|
|
|
# Set proper perms to shlibs.
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so*
|
|
|
|
}
|
|
|
|
|
|
|
|
tk-devel_package() {
|
|
|
|
depends="tk>=${version}"
|
2013-09-25 10:31:50 +02:00
|
|
|
short_desc+=" - development files"
|
2013-05-22 11:28:42 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/tkConfig.sh
|
|
|
|
vmove usr/include
|
2013-05-22 11:41:49 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
2013-05-22 11:28:42 +02:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/man/mann
|
|
|
|
}
|
|
|
|
}
|