diff --git a/common/shlibs b/common/shlibs index 49b74466f9..020f8e8f71 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2283,3 +2283,4 @@ libtoluapp.so toluapp-1.0.93_1 libmpd.so.1 libmpd-11.8.17_1 libfa.so.1 augeas-1.4.0_1 libaugeas.so.0 augeas-1.4.0_1 +libplot.so.2 plotutils-2.6_1 diff --git a/srcpkgs/plotutils-devel b/srcpkgs/plotutils-devel new file mode 120000 index 0000000000..8b702c06c7 --- /dev/null +++ b/srcpkgs/plotutils-devel @@ -0,0 +1 @@ +plotutils \ No newline at end of file diff --git a/srcpkgs/plotutils/patches/plotutils-2.6-libpng-1.5.patch b/srcpkgs/plotutils/patches/plotutils-2.6-libpng-1.5.patch new file mode 100644 index 0000000000..8a10d19e56 --- /dev/null +++ b/srcpkgs/plotutils/patches/plotutils-2.6-libpng-1.5.patch @@ -0,0 +1,31 @@ +fix building with libpng-1.5 + +--- libplot/z_write.c ++++ libplot/z_write.c +@@ -164,7 +164,7 @@ + } + + /* cleanup after libpng errors (error handler does a longjmp) */ +- if (setjmp (png_ptr->jmpbuf)) ++ if (setjmp (png_jmpbuf (png_ptr))) + { + png_destroy_write_struct (&png_ptr, (png_info **)NULL); + return -1; +@@ -444,7 +444,7 @@ + #endif + } + +- longjmp (png_ptr->jmpbuf, 1); ++ png_longjmp (png_ptr, 1); + } + + static void +@@ -515,7 +515,7 @@ + #endif + } + +- longjmp (png_ptr->jmpbuf, 1); ++ png_longjmp (png_ptr, 1); + } + + static void diff --git a/srcpkgs/plotutils/template b/srcpkgs/plotutils/template new file mode 100644 index 0000000000..55b336073f --- /dev/null +++ b/srcpkgs/plotutils/template @@ -0,0 +1,22 @@ +# Template file for 'plotutils' +pkgname=plotutils +version=2.6 +revision=1 +build_style=gnu-configure +makedepends="libXaw-devel libpng-devel" +short_desc="Set of utilities and libraries for plotting" +maintainer="Duncaen " +license="GPL-3" +homepage="http://directory.fsf.org/wiki/Plotutils" +distfiles="${GNU_SITE}/plotutils/plotutils-${version}.tar.gz" +checksum=4f4222820f97ca08c7ea707e4c53e5a3556af4d8f1ab51e0da6ff1627ff433ab + +plotutils-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + } +}