diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2011-09-16 12:16:41 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2011-09-16 12:16:41 +0000 |
commit | ab56d7b0c752bb66fa59ac22535a64c6bbabbabd (patch) | |
tree | 97cffe49de4061902ac7c57506a5ec2a2da05310 /games-fps | |
parent | Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo in sec... (diff) | |
download | historical-ab56d7b0c752bb66fa59ac22535a64c6bbabbabd.tar.gz historical-ab56d7b0c752bb66fa59ac22535a64c6bbabbabd.tar.bz2 historical-ab56d7b0c752bb66fa59ac22535a64c6bbabbabd.zip |
Build with png-1.5 Bug #383219
Package-Manager: portage-2.1.10.15/cvs/Linux i686
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/doomsday/ChangeLog | 6 | ||||
-rw-r--r-- | games-fps/doomsday/Manifest | 13 | ||||
-rw-r--r-- | games-fps/doomsday/doomsday-1.9.0_beta69.ebuild | 6 | ||||
-rw-r--r-- | games-fps/doomsday/files/doomsday-1.9.0_beta69-png15.patch | 86 |
4 files changed, 102 insertions, 9 deletions
diff --git a/games-fps/doomsday/ChangeLog b/games-fps/doomsday/ChangeLog index a8fee4a66192..906c068b119b 100644 --- a/games-fps/doomsday/ChangeLog +++ b/games-fps/doomsday/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/doomsday # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/ChangeLog,v 1.38 2011/05/16 14:40:29 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/ChangeLog,v 1.39 2011/09/16 12:16:41 tupone Exp $ + + 16 Sep 2011; Tupone Alfredo <tupone@gentoo.org> doomsday-1.9.0_beta69.ebuild, + +files/doomsday-1.9.0_beta69-png15.patch: + Build with png-1.5 Bug #383219 by Diego Elio Pettenò 16 May 2011; Tupone Alfredo <tupone@gentoo.org> doomsday-1.9.0_beta69.ebuild, +files/doomsday-1.9.0_beta69-underlink.patch: diff --git a/games-fps/doomsday/Manifest b/games-fps/doomsday/Manifest index affa5d62d367..bba41187fc89 100644 --- a/games-fps/doomsday/Manifest +++ b/games-fps/doomsday/Manifest @@ -1,18 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX doomsday-1.9.0_beta69-png15.patch 5042 RMD160 249fb6f153b01632c5d41c0b52ce9d0d84f57520 SHA1 adc25a193b07d6a13fb861d0d6bf77ecb4c46f3b SHA256 0a406daa9afafffca641be96a7f153635655b5611d7747daaf67ca2f2a943d07 AUX doomsday-1.9.0_beta69-underlink.patch 386 RMD160 4dc1504b2da9e0aba061cffc348b5b414c02a2b9 SHA1 19c6b6d3e1ebabd3dbb2c92876d7c7786ddb2c45 SHA256 b774ef4cdad497668728668ec49b46b17c90a399cce5949337e8c0756cdfe0b7 AUX wrapper 136 RMD160 9eb253537d5e2b443cf0807401b86a7526ae3e4e SHA1 2cb84a8feca8d213ecf0ac92d3bfa36282d293c1 SHA256 64b959cfeb77bd778f16768c0ee509cd128eb855fa4acd8e7c37046c5885dbc8 DIST deng-1.9.0-beta6.2.tar.gz 6035843 RMD160 9f7b00cec0f914460d78345bfa642bd4205ef1b8 SHA1 e955022cac6097c28ed6833631a90cf272b469c8 SHA256 8de20b0d8777112a35cf05df9a767cdefe5aa4f50f52efcb2e70fc342aa6b301 DIST deng-1.9.0-beta6.9.tar.gz 6085833 RMD160 e91a4bc76b39da9e2e51925e03154ffcb128fea9 SHA1 e1f7d64b1b60eef2659bc4636fbe41a0abf6a6ce SHA256 3553f6a58660916fdedbe0594f5b22dac4738ee6e02b042992d3140d358954af EBUILD doomsday-1.9.0_beta62.ebuild 2165 RMD160 f1424e6905619b3c379999943b7ce17715390850 SHA1 d8015292ccd6fb7b5d1b7a6e8bb945a96459f68b SHA256 43ce1ea453382f1f1c1d1be0eeb9ed09cfffd79d3aa91157332012420e4e6bfb -EBUILD doomsday-1.9.0_beta69.ebuild 2229 RMD160 4d0acbe94a8e225278e50607a271c0c8eac32604 SHA1 65981ab518e76810f41cfc64f4cb0c242979656f SHA256 00b015add0cea1e69d3b474c0a1086c715bbac5c2f8012174fa8e13bcde18be7 -MISC ChangeLog 5998 RMD160 f5209dc83882e5daf12149db11ddb6f7e7a66267 SHA1 c9167fa513b68d080f2c876d5f23aead007dc81d SHA256 c13a4b981eafcb7a5a0da8c5e4c9c95566d10c8dd5b59550911bcba0d2ac4b65 +EBUILD doomsday-1.9.0_beta69.ebuild 2261 RMD160 1cd9d7754f83fad1af50c5035950e6597ee9bdab SHA1 e8d2f4a3e282dacf91cb8f4b019ea99350d3a7cf SHA256 85edd61958eff802c125204f655f846ec431337e0675af0b3c1691f0eeaf5dfd +MISC ChangeLog 6179 RMD160 44506a8dc87a5519d28e455097aa1158d6f77139 SHA1 ea94d16d4158433b82df5d5b2927c7cc0241b729 SHA256 b8b61968810d3bf81584c72a979e1c8cb29f1a74e6137f238fec552adf755feb MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk3RN2cACgkQIY77eQFFFC0DdwCbBtfWJhCzvEu+bZIFfwe7mQB8 -vKIAnjjEbPnQd3a+tBMZX0F31uRZRveU -=VJ7d +iEYEARECAAYFAk5zPeAACgkQIY77eQFFFC392wCdEfyWX8kQ7FXKTPhrSWvpwY6f +DaIAmQGK/XLC70b9Ij3HmEMDAwwBFvz3 +=T1JZ -----END PGP SIGNATURE----- diff --git a/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild b/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild index 0d66e4d59954..3ac42e2cba22 100644 --- a/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild +++ b/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild,v 1.5 2011/05/16 14:40:29 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/doomsday-1.9.0_beta69.ebuild,v 1.6 2011/09/16 12:16:41 tupone Exp $ EAPI=2 inherit cmake-utils games @@ -28,7 +28,9 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P}/${PN} -PATCHES=( "${FILESDIR}"/${P}-underlink.patch ) +PATCHES=( "${FILESDIR}"/${P}-underlink.patch + "${FILESDIR}"/${P}-png15.patch +) src_configure() { mycmakeargs=( diff --git a/games-fps/doomsday/files/doomsday-1.9.0_beta69-png15.patch b/games-fps/doomsday/files/doomsday-1.9.0_beta69-png15.patch new file mode 100644 index 000000000000..ace2adf6c086 --- /dev/null +++ b/games-fps/doomsday/files/doomsday-1.9.0_beta69-png15.patch @@ -0,0 +1,86 @@ +--- engine/portable/src/gl_png.c.old 2011-09-16 13:42:35.684991097 +0200 ++++ engine/portable/src/gl_png.c 2011-09-16 13:55:18.835900517 +0200 +@@ -119,18 +119,18 @@ + + // Check if it can be used. + canLoad = true; +- if(png_info->bit_depth != 8) ++ if(png_get_bit_depth(png_ptr, png_info) != 8) + { + Con_Message("PNG_Load: \"%s\": Bit depth must be 8.\n", fileName); + canLoad = false; + } +- else if(!png_info->width || !png_info->height) ++ else if(!png_get_image_width(png_ptr, png_info) || !png_get_image_height(png_ptr, png_info)) + { + Con_Message("PNG_Load: \"%s\": Bad file? Size is zero.\n", fileName); + canLoad = false; + } +- else if(png_info->channels <= 2 && +- png_info->color_type == PNG_COLOR_TYPE_PALETTE && ++ else if(png_get_channels(png_ptr, png_info) <= 2 && ++ png_get_color_type(png_ptr, png_info) == PNG_COLOR_TYPE_PALETTE && + !png_get_valid(png_ptr, png_info, PNG_INFO_PLTE)) + { + Con_Message("PNG_Load: \"%s\": Palette is invalid.\n", fileName); +@@ -140,9 +140,9 @@ + if(canLoad) + { + // Information about the image. +- *width = png_info->width; +- *height = png_info->height; +- *pixelSize = png_info->channels; ++ *width = png_get_image_width(png_ptr, png_info); ++ *height = png_get_image_height(png_ptr, png_info); ++ *pixelSize = png_get_channels(png_ptr, png_info); + + // Paletted images have three color components + // per pixel. +@@ -154,33 +154,36 @@ + // OK, let's copy it into Doomsday's buffer. + // \fixme Why not load directly into it? + retbuf = +- M_Malloc(4 * png_info->width * png_info->height); ++ M_Malloc(4 * (*width) * (*height)); + rows = png_get_rows(png_ptr, png_info); + for(i = 0; i < *height; ++i) + { +- if(png_info->channels >= 3) ++ if(png_get_channels(png_ptr, png_info) >= 3) + { +- memcpy(retbuf + i * (*pixelSize) * png_info->width, +- rows[i], (*pixelSize) * png_info->width); ++ memcpy(retbuf + i * (*pixelSize) * (*width), ++ rows[i], (*pixelSize) * (*width)); + } + else // Paletted image. + { + for(k = 0; k < *width; ++k) + { +- pixel = retbuf + ((*pixelSize) * (i * png_info->width + k)); +- off = k * png_info->channels; +- if(png_info->color_type == PNG_COLOR_TYPE_PALETTE) ++ pixel = retbuf + ((*pixelSize) * (i * (*width) + k)); ++ off = k * png_get_channels(png_ptr, png_info); ++ if(png_get_color_type(png_ptr, png_info) == PNG_COLOR_TYPE_PALETTE) + { +- pixel[0] = png_info->palette[rows[i][off]].red; +- pixel[1] = png_info->palette[rows[i][off]].green; +- pixel[2] = png_info->palette[rows[i][off]].blue; ++ png_colorp palette; ++ int num_palette; ++ png_get_PLTE(png_ptr, png_info, &palette, &num_palette); ++ pixel[0] = palette[rows[i][off]].red; ++ pixel[1] = palette[rows[i][off]].green; ++ pixel[2] = palette[rows[i][off]].blue; + } + else + { + // Grayscale. + pixel[0] = pixel[1] = pixel[2] = rows[i][off]; + } +- if(png_info->channels == 2) // Alpha data. ++ if(png_get_channels(png_ptr, png_info) == 2) // Alpha data. + { + pixel[3] = rows[i][off + 1]; + } |