IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.0.0 PROGNAME="GNU Plot $VERSION" DESC="\ gnuplot (plotting utility) \n\ \n\ Gnuplot is a command-line driven interactive function plotting utility \n\ for UNIX, MSDOS, and VMS platforms. The software is copyrighted but \n\ freely distributed (i.e., you don't have to pay for it). It was \n\ originally intended as graphical program which would allow scientists \n\ and students to visualize mathematical functions and data. Gnuplot \n\ supports many different types of terminals, plotters, and printers \n\ (including many color devices, and pseudo-devices like LaTeX) and is \n\ easily extensible to include new devices." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnuplot.vt.edu/pub/gnuplot PKGNAME=gnuplot-$VERSION-s390-$BUILD TAG=OPT compile() { # # build gd # cd $TMP tar -zxvf $CWD/gd1.3.tar.gz cd gd1.3/ chown -R root.root . make mkdir lib cp libgd.a lib/ mkdir include cp *.h include/ # # build gnuplot # cd $TMP tar -yxvf $CWD/gnuplot-$VERSION.tar.bz2 cd gnuplot-$VERSION/ find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; chown -R root.root . CFLAGS=-O2 \ TERMLIBS="$TMP/gd1.3/libgd.a -lpng -lz $TMP/gd1.3/libgd.a" \ ./configure --prefix=/usr \ --with-png \ --with-gd=$TMP/gd1.3 \ --datadir=/usr/share/gnuplot \ --with-readline make } install() { cd $TMP/gnuplot-$VERSION/ make install DESTDIR=/package-gnuplot mkdir -p /package-gnuplot/usr/doc/gnuplot-$VERSION cp -a BUGS CodeStyle Copyright FAQ INSTALL NEWS PATCHLEVEL PGPKEYS \ PORTING README README.1ST README.exp TODO VERSION demo \ /package-gnuplot/usr/doc/gnuplot-$VERSION rm /package-gnuplot/usr/doc/gnuplot-$VERSION/demo/Makefile* gzip -9f /package-gnuplot/usr/info/*.info \ /package-gnuplot/usr/man/man1/* } attributes() { chown -R root.bin $PKG/package-gnuplot/usr/bin chmod 755 $PKG/package-gnuplot/usr/doc/gnuplot-$VERSION/demo/webify.pl } special() { cd $PKG mv package-gnuplot/* ./ rmdir package-gnuplot/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gnuplot/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }