1
0
forked from ports/opt

slim: add patch for libpng

This commit is contained in:
Thomas Penteker 2012-08-11 16:06:10 +02:00
parent 327c3b31dd
commit c65ae511cb
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,4 @@
6d19bd7a91592ed2bb902b22b9594565 libpng.patch
51543533e492b41007811f7d880720fa slim-1.3.4.tar.gz
46349c2dc378b17d5857c5c1d904a636 slim-crux-smooth.tar.gz
476ce747c77f1a7e116a7f63bfb7d8d3 slim.rc

View File

@ -8,11 +8,13 @@ name=slim
version=1.3.4
release=1
source=(http://download.berlios.de/$name/$name-$version.tar.gz \
http://jw.tks6.net/files/slim-crux-smooth.tar.gz $name.rc)
http://jw.tks6.net/files/slim-crux-smooth.tar.gz libpng.patch $name.rc)
build () {
cd $name-$version
patch -i ../libpng.patch -p1
sed -i 's:${MANDIR}:/usr/man:g' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX=/usr

14
slim/libpng.patch Normal file
View File

@ -0,0 +1,14 @@
--- a/image.cpp 2012-06-26 04:20:14.000000000 -0400
+++ b/image.cpp 2012-06-27 11:41:34.000000000 -0400
@@ -781,7 +781,11 @@
(png_infopp) NULL);
}
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ if (setjmp(png_jmpbuf((png_ptr)))) {
+#else
if (setjmp(png_ptr->jmpbuf)) {
+#endif
goto png_destroy;
}