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 /games/ezquake | |
parent | 24315159daa0089f08acea4ba1b130fb6721ad5c (diff) | |
download | ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.tar.gz ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.zip |
Notes
Diffstat (limited to 'games/ezquake')
-rw-r--r-- | games/ezquake/Makefile | 8 | ||||
-rw-r--r-- | games/ezquake/files/patch-image.c | 119 |
2 files changed, 121 insertions, 6 deletions
diff --git a/games/ezquake/Makefile b/games/ezquake/Makefile index 64c73b8df453..7a00fcb57635 100644 --- a/games/ezquake/Makefile +++ b/games/ezquake/Makefile @@ -7,7 +7,7 @@ PORTNAME= ezquake PORTVERSION= 1.9 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 2 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION}:ezquake \ @@ -24,7 +24,7 @@ EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip \ 7z:${PORTSDIR}/archivers/p7zip LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ pcre.1:${PORTSDIR}/devel/pcre \ - png.6:${PORTSDIR}/graphics/png + png15:${PORTSDIR}/graphics/png USE_DOS2UNIX= *.[ch] Makefile* USE_GMAKE= yes @@ -85,10 +85,6 @@ do-extract: post-patch: @${REINPLACE_CMD} -e 's|libtcl\.so|libtcl${TCL_VER:S/.//}|' \ ${WRKSRC}/embed_tcl.h -# Resolve name collision with jpeg-8 and API png - ${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \ - -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ - ${WRKSRC}/image.c do-install: .for dir in ezquake qw diff --git a/games/ezquake/files/patch-image.c b/games/ezquake/files/patch-image.c new file mode 100644 index 000000000000..ebf71794c41b --- /dev/null +++ b/games/ezquake/files/patch-image.c @@ -0,0 +1,119 @@ +--- image.c.orig 2012-05-03 06:08:56.000000000 +0200 ++++ image.c 2012-05-03 06:20:20.000000000 +0200 +@@ -534,7 +534,7 @@ + static void (*qpng_write_info)(png_structp, png_infop); + static void (*qpng_read_info)(png_structp, png_infop); + static void (*qpng_set_expand)(png_structp); +-static void (*qpng_set_gray_1_2_4_to_8)(png_structp); ++static void (*qpng_set_expand_gray_1_2_4_to_8)(png_structp); + static void (*qpng_set_palette_to_rgb)(png_structp); + static void (*qpng_set_tRNS_to_alpha)(png_structp); + static void (*qpng_set_gray_to_rgb)(png_structp); +@@ -570,7 +570,7 @@ + {"png_write_info", (void **) &qpng_write_info}, + {"png_read_info", (void **) &qpng_read_info}, + {"png_set_expand", (void **) &qpng_set_expand}, +- {"png_set_gray_1_2_4_to_8", (void **) &qpng_set_gray_1_2_4_to_8}, ++ {"png_set_expand_gray_1_2_4_to_8", (void **) &qpng_set_gray_1_2_4_to_8}, + {"png_set_palette_to_rgb", (void **) &qpng_set_palette_to_rgb}, + {"png_set_tRNS_to_alpha", (void **) &qpng_set_tRNS_to_alpha}, + {"png_set_gray_to_rgb", (void **) &qpng_set_gray_to_rgb}, +@@ -734,7 +734,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + qpng_destroy_read_struct(&png_ptr, &pnginfo, NULL); + #ifndef WITH_FTE_VFS + fclose(fin); +@@ -784,7 +784,7 @@ + } + + if (colortype == PNG_COLOR_TYPE_GRAY && bitdepth < 8) +- qpng_set_gray_1_2_4_to_8(png_ptr); ++ qpng_set_expand_gray_1_2_4_to_8(png_ptr); + + if (qpng_get_valid(png_ptr, pnginfo, PNG_INFO_tRNS)) + qpng_set_tRNS_to_alpha(png_ptr); +@@ -888,7 +888,7 @@ + return false; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + qpng_destroy_write_struct(&png_ptr, &info_ptr); + #ifndef WITH_FTE_VFS + fclose(fp); +@@ -983,7 +983,7 @@ + return false; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + qpng_destroy_write_struct(&png_ptr, &info_ptr); + #ifndef WITH_FTE_VFS + fclose(fp); +@@ -1158,7 +1158,7 @@ + + // Set the return adress that PNGLib should return to if + // an error occurs during reading. +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &pnginfo, NULL); + #ifndef WITH_FTE_VFS +@@ -1233,7 +1233,7 @@ + + if (colortype == PNG_COLOR_TYPE_GRAY && bitdepth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + if (png_get_valid(png_ptr, pnginfo, PNG_INFO_tRNS)) +@@ -1281,7 +1281,7 @@ + if (!png_get_hIST(png_ptr, pnginfo, &histogram)) + histogram = NULL; + +- png_set_dither(png_ptr, quake_pal, 256, 256, histogram, true); ++ png_set_quantize(png_ptr, quake_pal, 256, 256, histogram, true); + } + #endif // !GLQUAKE + +@@ -1507,7 +1507,7 @@ + return false; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + png_destroy_write_struct(&png_ptr, &info_ptr); + #ifndef WITH_FTE_VFS + fclose(fp); +@@ -1598,7 +1598,7 @@ + return false; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + png_destroy_write_struct(&png_ptr, &info_ptr); + #ifndef WITH_FTE_VFS + fclose(fp); +@@ -2360,7 +2360,7 @@ + } + + GLOBAL(void) +-jpeg_mem_src (j_decompress_ptr cinfo, byte * infile, int maxlen) ++local_jpeg_mem_src (j_decompress_ptr cinfo, byte * infile, int maxlen) + { + my_source_mgr *src; + +@@ -2471,7 +2471,7 @@ + + jpeg_create_decompress(&cinfo); + +- jpeg_mem_src(&cinfo, infile, length); ++ local_jpeg_mem_src(&cinfo, infile, length); + + (void) jpeg_read_header(&cinfo, TRUE); + |