IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=8.1.4 PROGNAME="Tix $VERSION" DESC="\ tix (an extension to the Tk toolkit) \n\ \n\ Tix, which stands for Tk Interface Extension, is an extension library \n\ for Tcl/Tk. Tix adds many new widgets, image types and other commands \n\ that allows you to create compelling Tcl/Tk-based GUI applications. \n\ With these new widgets, your applications will look great and interact \n\ with your users in intuitive ways." BUILD=1 MAINTAINER="Mark Post " SOURCE= PKGNAME=tix-$VERSION-s390-$BUILD TAG=OPT compile() { # tix uses header files from these source packages tar -zxvf $CWD/../tcl/tcl8.4.4-src.tar.gz ( cd tcl8.4.4/unix ; ./configure --prefix=/usr ) tar -zxvf $CWD/../tk/tk8.4.4-src.tar.gz ( cd tk8.4.4/unix ; ./configure --prefix=/usr ) tar -zxvf $CWD/tix-$VERSION.tar.gz cd tix-$VERSION cd unix/ ./configure --prefix=/usr --enable-shared cd tk8.4 ./configure --prefix=/usr --enable-shared make } install() { # Another package that is too stupid to make its own directories mkdir -p /package-tix/usr/bin \ /package-tix/usr/include \ /package-tix/usr/lib \ /package-tix/usr/man/man1 \ /package-tix/usr/man/mann cd $TMP/tix-$VERSION mkdir -p /package-tix/usr/doc/tix-$VERSION cp -a ABOUT.* README.* Roadmap.html TODO.html Version license.terms \ docs/BinInst.* docs/FAQ.* docs/Files.* docs/Install.* \ docs/Release* docs/Uni* docs/html \ /package-tix/usr/doc/tix-$VERSION cd unix/tk8.4 make install prefix=/package-tix/usr cd .. make install prefix=/package-tix/usr # This winds up in the wrong place for some reason mv /package-tix/usr/man/mann/tixwish.1 /package-tix/usr/man/man1/ ( cd /package-tix/usr/man for dir in 1 n; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) ( cd /package-tix/usr/bin rm -rf tixwish ; ln -sf tixwish8.1.8.4 tixwish ) ( cd /package-tix/usr/lib rm -rf libtix.so ; ln -sf libtix8.1.8.4.so libtix.so rm -rf libtixsam.so ; ln -sf libtixsam8.1.8.4.so libtixsam.so ) rmdir /package-tix/usr/man/man3 } attributes() { chown -R root.bin $PKG/package-tix/usr/bin chmod 755 $PKG/package-tix/usr/lib/*.so* } special() { cd $PKG mv package-tix/* ./ rmdir package-tix cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-tix/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }