talimat 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Tanım: TCL için bir GUI araç seti.
  2. # URL: http://www.tcl.tk/
  3. # Paketçi: milisarge
  4. # Gerekler: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver
  5. # Grup: geliştirme
  6. isim=tk
  7. surum=8.6.6
  8. devir=1
  9. kaynak=(http://downloads.sourceforge.net/project/tcl/Tcl/$surum/$isim$surum-src.tar.gz)
  10. derle() {
  11. cd $isim$surum/unix
  12. ./configure \
  13. --prefix=/usr \
  14. --mandir=/usr/share/man \
  15. --enable-gcc \
  16. --enable-shared \
  17. --enable-xft
  18. make
  19. make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install install-private-headers
  20. cp ../generic/*.h $PKG/usr/include/
  21. cp tkUnixPort.h $PKG/usr/include/tkPort.h
  22. cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
  23. cp tkUnixInt.h $PKG/usr/include/tkInt.h
  24. # remove $SRC traces
  25. sed \
  26. -e "s|$SRC/tk$surum/unix|/usr/lib|g" \
  27. -e "s|$SRC/tk$surum|/usr/include|g" \
  28. -i $PKG/usr/lib/tkConfig.sh
  29. rm -r $PKG/usr/lib/tk${surum%.*}/demos
  30. rm $PKG/usr/lib/tk${surum%.*}/images/README
  31. ln -s wish${surum%.*} $PKG/usr/bin/wish
  32. ln -s libtk${surum%.*}.so $PKG/usr/lib/libtk.so
  33. ln -s libtkstub${surum%.*}.a $PKG/usr/lib/libtkstub.a
  34. chmod -R u+w $PKG/usr/share/man
  35. }