IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.5 PROGNAME="Three-D Athena Widgets (Xaw3d)" DESC="\ xaw3d (3D version of libXaw) \n\ \n\ Xaw3d is a set of 3D widgets by Kaleb S. Keithley based on the Athena\n\ Widget set. The Three-D Athena may be used as a replacement for the \n\ Athena (Xaw) Widget set -- you may relink almost any Athena Widget \n\ based application and obtain a three dimensional appearance on some of\n\ the widgets. You can also replace your shared libXaw with libXaw3d \n\ and obtain the three dimensional appearance without even relinking." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/ PKGNAME=xaw3d-$VERSION-s390-$BUILD TAG=ADD compile() { tar -xvzf $CWD/Xaw3d-1.5.tar.gz ( cd xc zcat $CWD/Xaw3d-1.5.diff.gz | patch -p1 --verbose --backup --suffix=.orig ) cd xc/lib/Xaw3d ln -s .. X11 xmkmf # The CCOPTIONS is necessary because for some reason xmkmf can't figure it out # for itself. make CCOPTIONS="-I." } install() { make install DESTDIR=/package-xaw3d rm /package-xaw3d/usr/X11R6/lib/libXaw3d.a chmod 644 /package-xaw3d/usr/X11R6/include/X11/Xaw3d/* mkdir -p /package-xaw3d/usr/doc/Xaw3d cp -a README.XAW3D /package-xaw3d/usr/doc/Xaw3d ( cd /package-xaw3d/usr/X11R6/lib rm -rf libXaw3d.so ; ln -sf libXaw3d.so.7 libXaw3d.so ) } special() { cd $PKG mv package-xaw3d/* ./ rmdir package-xaw3d/ cd $CTL cat $CWD/slack-desc > slack-desc cat << EOF >> doinst.sh # This is for backwards compatability (on Slackware libXaw3d.so.6 # is also Xaw3d-1.5) ( cd usr/X11R6/lib ; rm -rf libXaw3d.so.6 ) ( cd usr/X11R6/lib ; ln -sf libXaw3d.so.7.0 libXaw3d.so.6 ) EOF sed -e 's%package-xaw3d/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }