milis/talimatname/genel/t/tk/talimat

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: TCL için bir GUI araç seti.
# URL: http://www.tcl.tk/
# Paketçi: milisarge
# Gerekler: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver
2018-07-26 12:36:18 +02:00
# Grup: geliştirme
2018-06-09 00:06:58 +02:00
isim=tk
surum=8.6.6
devir=1
kaynak=(http://downloads.sourceforge.net/project/tcl/Tcl/$surum/$isim$surum-src.tar.gz)
derle() {
cd $isim$surum/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$surum/unix|/usr/lib|g" \
-e "s|$SRC/tk$surum|/usr/include|g" \
-i $PKG/usr/lib/tkConfig.sh
rm -r $PKG/usr/lib/tk${surum%.*}/demos
rm $PKG/usr/lib/tk${surum%.*}/images/README
ln -s wish${surum%.*} $PKG/usr/bin/wish
ln -s libtk${surum%.*}.so $PKG/usr/lib/libtk.so
ln -s libtkstub${surum%.*}.a $PKG/usr/lib/libtkstub.a
chmod -R u+w $PKG/usr/share/man
}