diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2012-06-01 05:26:28 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2012-06-01 05:26:28 +0000 |
commit | 2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch) | |
tree | c04604583d8be53b3ed7f10975be828c731f87cb /www/links-hacked | |
parent | 24315159daa0089f08acea4ba1b130fb6721ad5c (diff) | |
download | ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.tar.gz ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.zip |
Notes
Diffstat (limited to 'www/links-hacked')
-rw-r--r-- | www/links-hacked/Makefile | 3 | ||||
-rw-r--r-- | www/links-hacked/files/patch-png.c | 38 |
2 files changed, 40 insertions, 1 deletions
diff --git a/www/links-hacked/Makefile b/www/links-hacked/Makefile index 699c8ea4df9c..8ad1bfd9c969 100644 --- a/www/links-hacked/Makefile +++ b/www/links-hacked/Makefile @@ -7,6 +7,7 @@ PORTNAME= links-hacked DISTVERSION= 101110 +PORTREVISION= 1 CATEGORIES?= www MASTER_SITES= http://xray.sai.msu.ru/~karpov/links-hacked/downloads/ http://links-hacked.nm.ru/ @@ -39,7 +40,7 @@ OPTIONS= SVGALIB "non-X11 graphics support" off \ .include <bsd.port.options.mk> .ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB) -LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \ +LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff CONFIGURE_ARGS+= --enable-graphics diff --git a/www/links-hacked/files/patch-png.c b/www/links-hacked/files/patch-png.c new file mode 100644 index 000000000000..6e605f609c66 --- /dev/null +++ b/www/links-hacked/files/patch-png.c @@ -0,0 +1,38 @@ +--- png.c.orig 2008-06-07 09:41:41.000000000 +0200 ++++ png.c 2012-05-06 09:32:52.000000000 +0200 +@@ -38,7 +38,7 @@ + /* Error for from-web PNG images. */ + void img_my_png_error(png_structp png_ptr, png_const_charp error_string) + { +- longjmp(png_ptr->jmpbuf,1); ++ longjmp(png_jmpbuf(png_ptr),1); + } + + void png_info_callback(png_structp png_ptr, png_infop info_ptr) +@@ -192,7 +192,7 @@ + #ifdef DEBUG + if (!info_ptr) internal ("png_create_info_struct failed\n"); + #endif /* #ifdef DEBUG */ +- if (setjmp(png_ptr->jmpbuf)){ ++ if (setjmp(png_jmpbuf(png_ptr))){ + error: + png_destroy_read_struct(&png_ptr, &info_ptr, + (png_infopp)NULL); +@@ -202,7 +202,7 @@ + png_set_progressive_read_fn(png_ptr, NULL, + png_info_callback, png_row_callback, + png_end_callback); +- if (setjmp(png_ptr->jmpbuf)) goto error; ++ if (setjmp(png_jmpbuf(png_ptr))) goto error; + decoder=mem_alloc(sizeof(*decoder)); + decoder->png_ptr=png_ptr; + decoder->info_ptr=info_ptr; +@@ -221,7 +221,7 @@ + png_ptr=((struct png_decoder *)(cimg->decoder))->png_ptr; + info_ptr=((struct png_decoder *)(cimg->decoder))->info_ptr; + end_callback_hit=0; +- if (setjmp(png_ptr->jmpbuf)){ ++ if (setjmp(png_jmpbuf(png_ptr))){ + img_end(cimg); + return; + } |