IGNOREPATH=/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.93.94 PROGNAME="Lesstif $VERSION" DESC="\ lesstif (a free replacement for OSF/Motif(R)) \n\ \n\ LessTif is the Hungry Programmers' (www.hungry.com) free clone of \n\ Motif(R). It aims to be source compatible with OSF/Motif(R) meaning \n\ that the same source code should compile with both and work exactly \n\ the same. This package contains the libraries and header files to \n\ be able to run and compile Motif applications, along with the \n\ lesstif version of mwm, the Motif window manager." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www.lesstif.org PKGNAME=lesstif-$VERSION-s390-$BUILD TAG=REC compile() { tar -yxvf $CWD/lesstif-$VERSION.tar.bz2 cd lesstif-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --enable-shared \ --enable-static \ --enable-build-21 \ --enable-build-Xlt \ --enable-build-Xbae \ --enable-xbae-24bit \ --enable-xbae-row-heights \ --disable-debug \ --enable-production \ --prefix=/usr/X11R6 \ --build=s390-slackware-linux \ --target=s390-slackware-linux \ --host=s390-slackware-linux make return # This is a very ugly hack that gets around a bug in libtool. # When the "make install" is done, libtool tries to relink # the static libraries, but winds up trying to relink the dynamic # ones, which depend on libXm being already installed. So, we're # going to copy it to its final location, set the symbolic links, # and let it get over-written by the actual package installation. cp -a ./lib/Xm-2.1/.libs/libXm.so.2.0.1 \ ./lib/Xm-2.1/.libs/libXm.so.2 \ ./lib/Xm-2.1/.libs/libXm.so \ /usr/X11R6/lib/ } install() { make install DESTDIR=/package-lesstif mkdir -p /package-lesstif/usr/X11R6/lib/X11/config cp -a /package-lesstif/usr/X11R6/lib/LessTif/config/* \ /package-lesstif/usr/X11R6/lib/X11/config ( cd /package-lesstif/usr/X11R6/lib/X11/config mv host.def host.def-lesstif ) ( cd /package-lesstif/usr/X11R6/lib/X11 mkdir -p /package-lesstif/etc/X11/ mv app-defaults/ mwm/ /package-lesstif/etc/X11/ ln -sf ../../../../etc/X11/mwm mwm ) ( cd /package-lesstif/usr/X11R6/man/ for dir in 1 3 5; do (cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) # This doesn't get installed on our system because we don't have # Motif installed mkdir -p /package-lesstif/usr/share/aclocal/ cp -p ./scripts/autoconf/ac_find_motif.m4 /package-lesstif/usr/share/aclocal/ mkdir -p /package-lesstif/usr/doc ( cd /package-lesstif/usr/doc rm -f lesstif-$VERSION ln -sf /usr/X11R6/LessTif lesstif-$VERSION ) # Clean up the libtool workaround ( cd /usr/X11R6/lib/ rm -f libXm.so* ) } attributes() { chown -R root.bin $PKG/package-lesstif/usr/X11R6/bin/ } special() { cd $PKG mv package-lesstif/* . rmdir package-lesstif cd $CTL cat $CWD/slack-desc > slack-desc cat <> doinst.sh # Add the LessTif stuff to host.def if it isn't already there: if [ -r usr/X11R6/lib/X11/config/host.def ]; then if ! grep LessTif usr/X11R6/lib/X11/config/host.def 1> /dev/null 2> /dev/null ; then cat usr/X11R6/lib/X11/config/host.def-lesstif >> usr/X11R6/lib/X11/config/host.def fi else cat usr/X11R6/lib/X11/config/host.def-lesstif >> usr/X11R6/lib/X11/config/host.def fi EOF sed -e 's%package-lesstif/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new } subpacks() { echo no subpacks for this product }