summaryrefslogtreecommitdiff
path: root/tk/Pkgfile
blob: 8279a4acfb66ae1517486f296c09672e05cb82e3 (plain)
    1 # Description: a GUI toolkit for TCL
    2 # URL: http://tcl.sourceforge.net
    3 # Maintainer: sten, nick dot steeves at shaw dot ca
    4 # Packager: Sven Dahl, dahl at c64 dot org
    5 # Depends on: x11, tcl
    6 
    7 name=tk
    8 version=8.4.9
    9 release=1
   10 source=(http://dl.sourceforge.net/sourceforge/tcl/tk${version}-src.tar.gz)
   11 
   12 build() {
   13     cd $SRC/tk${version}/unix/
   14     ./configure --prefix=/usr --enable-gcc --enable-shared
   15     make
   16     make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install
   17 
   18     cp ../generic/*.h $PKG/usr/include/
   19     cp tkUnixPort.h $PKG/usr/include/tkPort.h
   20     cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
   21     cp tkUnixInt.h $PKG/usr/include/tkInt.h
   22 
   23     sed -i "s|-L$SRC/tk${version}/unix|-L/usr/lib|" $PKG/usr/lib/tkConfig.sh
   24 
   25     rm -rf $PKG/usr/lib/tk8.4/demos
   26     ln -s wish8.4 $PKG/usr/bin/wish
   27     chmod -R u+w,go-w $PKG
   28     find $PKG/usr/man -type f -exec chmod a-x {} \;
   29 }

Generated by cgit