53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
# Template file for 'tk'
|
|
pkgname=tk
|
|
version=8.6.0
|
|
revision=1
|
|
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"
|
|
checksum=5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6
|
|
makedepends="tcl-devel libX11-devel"
|
|
depends="tcl"
|
|
|
|
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 \
|
|
tk_cv_strtod_unbroken=ok $args
|
|
}
|
|
|
|
do_build() {
|
|
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}"
|
|
short_desc="${short_desc} - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/tkConfig.sh
|
|
vmove usr/include
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/man/mann
|
|
}
|
|
}
|
|
|
|
tk_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|