diff options
author | Erich Eckner <git@eckner.net> | 2016-04-09 10:12:54 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-11 11:29:20 +0200 |
commit | 64db7d5a9056c8bd5148e261c3519f8b0139fc3b (patch) | |
tree | 296da635113f3abe7d1c563c861eb12a200ef4fe /pgplot | |
parent | 4401934ec7db4ec072fd3feb04448ba59c915c67 (diff) | |
download | archlinuxewe.git.save-64db7d5a9056c8bd5148e261c3519f8b0139fc3b.tar.xz |
pgplot neu
Diffstat (limited to 'pgplot')
-rw-r--r-- | pgplot/ChangeLog | 12 | ||||
-rw-r--r-- | pgplot/PKGBUILD | 44 | ||||
-rw-r--r-- | pgplot/pndriv.c.patch | 11 |
3 files changed, 67 insertions, 0 deletions
diff --git a/pgplot/ChangeLog b/pgplot/ChangeLog new file mode 100644 index 00000000..698da3ee --- /dev/null +++ b/pgplot/ChangeLog @@ -0,0 +1,12 @@ + +ChangeLog for PGPlot PKGBUILD + +* pgplot-5.2.2-7 (2015-05-09 - AstroFloyd) + Hijacked package from jmorin (last version is 3 years old) + Split build in build() and package() (install) parts + Link to X11 using the -lX11 flag + Added ChangeLog + +* pgplot-5.2.2-6 (2012-09-20 - jmorin) + Last version from AUR3, hijacked by AstroFloyd for AUR4 + diff --git a/pgplot/PKGBUILD b/pgplot/PKGBUILD new file mode 100644 index 00000000..88504b8f --- /dev/null +++ b/pgplot/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: AstroFloyd < AstroFloyd [at] gmail [dt] com > +# Contributor: Julien Morin <morin.jul@gmail.com> +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=pgplot +pkgver=5.2.2 +pkgrel=7 +pkgdesc="Fortran- or C-callable, device-independent graphics package for making simple scientific graphs." +url="http://www.astro.caltech.edu/~tjp/pgplot/" +license=('custom') +options=(!makeflags) +arch=('i686' 'x86_64') +makedepends=('gcc-fortran') +depends=('libpng' 'libx11') +changelog=ChangeLog +source=(ftp://ftp.astro.caltech.edu/pub/pgplot/${pkgname}522.tar.gz pndriv.c.patch) +md5sums=('e8a6e8d0d5ef9d1709dfb567724525ae' '25535f059b2e39ea44f93c24a41abacd') + +build() { + cd $srcdir/$pkgname + sed -i 's/! CGDRIV/CGDRIV/' drivers.list + sed -i 's/! LXDRIV/LXDRIV/' drivers.list + #sed -i 's/! PNDRIV/PNDRIV/' drivers.list + sed -i 's/! PSDRIV/PSDRIV/' drivers.list + sed -i 's/! TTDRIV 5/TTDRIV 5/' drivers.list + sed -i 's/! XWDRIV/XWDRIV/1' drivers.list + patch -p0 -i "${srcdir}"/pndriv.c.patch + + ./makemake . linux g77_gcc + sed -i 's=pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h=#pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h=' makefile + make FCOMPL=gfortran SHARED_LIB_LIBS="-lpng -lz -lX11" all cpg || return 1 +} + +package() { + cd $srcdir/$pkgname + install -D -m644 libpgplot.a $pkgdir/usr/lib/libpgplot.a + install -D -m755 libpgplot.so $pkgdir/usr/lib/libpgplot.so + install -D -m644 grfont.dat $pkgdir/usr/lib/grfont.dat + install -D -m644 rgb.txt $pkgdir/usr/lib/rgb.txt + install -D -m755 pgxwin_server $pkgdir/usr/bin/pgxwin_server + install -D -m644 libcpgplot.a $pkgdir/usr/lib/libcpgplot.a + install -D -m644 cpgplot.h $pkgdir/usr/include/cpgplot.h + install -D -m644 copyright.notice $pkgdir/usr/share/licenses/custom/$pkgname/copyright.notice +} diff --git a/pgplot/pndriv.c.patch b/pgplot/pndriv.c.patch new file mode 100644 index 00000000..4d8a22d3 --- /dev/null +++ b/pgplot/pndriv.c.patch @@ -0,0 +1,11 @@ +-- drivers/pndriv.c 2012-02-05 18:35:41.172818257 +0100 ++++ drivers/pndriv.c 2012-02-05 18:36:34.389199228 +0100 +@@ -222,7 +222,7 @@ + return; + } + +- if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */ ++ if (setjmp(png_jmpbuf(png_ptr))) {/* not really sure what I'm doing here... */ + fprintf(stderr,"%s: error in libpng while writing file %s, plotting disabled\n", png_ident, filename); + png_destroy_write_struct(&png_ptr,&info_ptr); + dev->error = true; |