# Build/install Tk the way Slackware's binary package is made: CWD=`pwd` cd /tmp tar xzvf $CWD/tk8.3.3.tar.gz cd tk8.3.3 mkdir -p /usr/doc/tk8.3.3 cp -a README changes license.terms /usr/doc/tk8.3.3 chown root.root /usr/doc/tk8.3.3/* cd unix ./configure --prefix=/usr --disable-shared make install make clean ./configure --prefix=/usr --enable-shared make install ( cd /usr/bin rm -f wish ln -sf wish8.3 wish ) ( cd /usr/lib rm -f libtk.a libtk.so libtkstub.a ln -sf libtk8.3.a libtk.a ln -sf libtk8.3.so libtk.so ln -sf libtkstub8.3.a libtkstub.a ) # Make a script to produce symlinks to gzipped man pages (used when packing later): cat mkLinks | perl -pi -e 's|\.3|foo3foo3|' | perl -pi -e 's|\.3|foo3foo3|' | \ perl -pi -e 's|foo3foo3|.3.gz|' | perl -pi -e 's|foo3foo3|.3.gz|' | \ perl -pi -e 's|\.n|foonfoon|' | perl -pi -e 's|\.n|foonfoon|' | \ perl -pi -e 's|foonfoon|.n.gz|' | perl -pi -e 's|foonfoon|.n.gz|' | \ perl -pi -e 's|ln |ln -sf |' > $CWD/mkgzLinks.sh # Briefly, to use the above generated script, you go into say /usr/man/man3/ # of the extracted package and do this: # mkdir tmp # cp *.* tmp # mv tmp/* . # rm -r tmp # gzip -9 * # sh /path/to/mkgzLinks.sh .