milis/talimatname/genel/t/tk/talimat

44 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
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
}