diff options
-rw-r--r-- | games-sports/xmoto/files/xmoto_libpng-1.4.patch | 11 | ||||
-rw-r--r-- | games-sports/xmoto/xmoto-9999.ebuild | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/games-sports/xmoto/files/xmoto_libpng-1.4.patch b/games-sports/xmoto/files/xmoto_libpng-1.4.patch new file mode 100644 index 0000000..2d9cd94 --- /dev/null +++ b/games-sports/xmoto/files/xmoto_libpng-1.4.patch @@ -0,0 +1,11 @@ +--- tim_png.cpp 2010-07-05 03:55:25.000000000 +0300 ++++ tim_png.cpp 2010-08-30 19:17:29.255999994 +0300 +@@ -166,7 +166,7 @@ + png_set_palette_to_rgb(PngPtr); + + if(nColorType==PNG_COLOR_TYPE_GRAY && nBitDepth<8) +- png_set_gray_1_2_4_to_8(PngPtr); ++ png_set_expand_gray_1_2_4_to_8(PngPtr); + + if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS)) + png_set_tRNS_to_alpha(PngPtr); diff --git a/games-sports/xmoto/xmoto-9999.ebuild b/games-sports/xmoto/xmoto-9999.ebuild index 9fbc01f..2753e48 100644 --- a/games-sports/xmoto/xmoto-9999.ebuild +++ b/games-sports/xmoto/xmoto-9999.ebuild @@ -50,6 +50,9 @@ src_unpack() { cd "${S}" eautoreconf use editor && rm -f "${WORKDIR}"/${LVL}/{bezmisc,inkex}.py + cd "${S}/src/image" + epatch "${FILESDIR}/xmoto_libpng-1.4.patch" + cd "${S}" } src_compile() { |