2017-03-07 23:30:36 +01:00
|
|
|
# Description: A GUI toolkit for TCL.
|
|
|
|
# URL: http://www.tcl.tk/
|
|
|
|
# Packager: milisarge
|
2016-02-24 01:27:23 +01:00
|
|
|
# Depends on: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver
|
|
|
|
|
|
|
|
name=tk
|
2017-03-07 23:30:36 +01:00
|
|
|
version=8.6.6
|
2016-02-24 01:27:23 +01:00
|
|
|
release=1
|
2017-03-07 23:30:36 +01:00
|
|
|
source=(http://downloads.sourceforge.net/project/tcl/Tcl/$version/$name$version-src.tar.gz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
2017-03-07 23:30:36 +01:00
|
|
|
build() {
|
|
|
|
cd $name$version/unix
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-gcc \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-xft
|
|
|
|
|
|
|
|
make
|
|
|
|
make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install install-private-headers
|
|
|
|
|
|
|
|
cp ../generic/*.h $PKG/usr/include/
|
|
|
|
cp tkUnixPort.h $PKG/usr/include/tkPort.h
|
|
|
|
cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
|
|
|
|
cp tkUnixInt.h $PKG/usr/include/tkInt.h
|
|
|
|
|
|
|
|
# remove $SRC traces
|
|
|
|
sed \
|
|
|
|
-e "s|$SRC/tk$version/unix|/usr/lib|g" \
|
|
|
|
-e "s|$SRC/tk$version|/usr/include|g" \
|
|
|
|
-i $PKG/usr/lib/tkConfig.sh
|
|
|
|
|
|
|
|
rm -r $PKG/usr/lib/tk${version%.*}/demos
|
|
|
|
rm $PKG/usr/lib/tk${version%.*}/images/README
|
|
|
|
|
|
|
|
ln -s wish${version%.*} $PKG/usr/bin/wish
|
|
|
|
ln -s libtk${version%.*}.so $PKG/usr/lib/libtk.so
|
|
|
|
ln -s libtkstub${version%.*}.a $PKG/usr/lib/libtkstub.a
|
|
|
|
|
|
|
|
chmod -R u+w $PKG/usr/share/man
|
2016-02-24 01:27:23 +01:00
|
|
|
}
|