IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.2.2 PROGNAME="openmotif $VERSION" DESC="\ openmotif (Open Motif graphical toolkit) \n\ \n\ The Open Motif toolkit and Motif clients, such as the Motif Window \n\ Manager. \n\ \n\ Open Motif is only free on free operating systems such as Linux, BSD, \n\ and GNU HURD. Please see the LICENSE in this directory." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/openmotif PKGNAME=openmotif-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/openMotif-$VERSION.tar.bz2 cd openMotif-$VERSION/ # If there are official patches, apply them: for patch in $CWD/fixes/* ; do cat $patch | patch -p1 done # Now, get rid of the demo programs so they don't clutter /usr/X11R6/bin. # If users want to try out the demo programs, the source will be in # /usr/doc/openmotif... rm -r demos CFLAGS=-O2 CXXFLAGS=-O2 \ ./configure --prefix=/usr/X11R6 make -i } install() { ( cd $TMP/openMotif-$VERSION/lib/Xm/.libs/ cp -a libXm.so* /usr/local/lib cd $TMP/openMotif-$VERSION/lib/Mrm/.libs/ cp -a libMrm.so* /usr/local/lib ) make -i install DESTDIR=/package-openmotif ( cd /usr/local/lib rm libXm.so* libMrm.so* ) mkdir -p /package-openmotif/usr/doc/openmotif-$VERSION cp -a BUGREPORT CLOSEDBUGS COPYRIGHT.MOTIF INSTALL.configure \ INSTALL.imake LICENSE OPENBUGS README RELEASE RELNOTES \ /package-openmotif/usr/doc/openmotif-$VERSION ( cd /package-openmotif/usr/X11R6/man/ for dir in 1 3 4 5; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } attributes() { chown -R root.bin $PKG/package-openmotif/usr/X11R6/bin } special() { cd $PKG mv package-openmotif/* ./ rmdir package-openmotif cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-openmotif/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }