milis/talimatname/genel/t/tk/talimat

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: TCL için bir GUI araç seti.
2017-03-07 23:30:36 +01:00
# URL: http://www.tcl.tk/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=tk
surum=8.6.6
devir=1
kaynak=(http://downloads.sourceforge.net/project/tcl/Tcl/$surum/$isim$surum-src.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim$surum/unix
2017-03-07 23:30:36 +01:00
./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 \
2017-10-28 14:10:23 +02:00
-e "s|$SRC/tk$surum/unix|/usr/lib|g" \
-e "s|$SRC/tk$surum|/usr/include|g" \
2017-03-07 23:30:36 +01:00
-i $PKG/usr/lib/tkConfig.sh
2017-10-28 14:10:23 +02:00
rm -r $PKG/usr/lib/tk${surum%.*}/demos
rm $PKG/usr/lib/tk${surum%.*}/images/README
2017-03-07 23:30:36 +01:00
2017-10-28 14:10:23 +02:00
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
2017-03-07 23:30:36 +01:00
chmod -R u+w $PKG/usr/share/man
2016-02-24 01:27:23 +01:00
}