diff options
-rw-r--r-- | extra/libgd/.md5sum | 1 | ||||
-rw-r--r-- | extra/libgd/Pkgfile | 4 | ||||
-rw-r--r-- | extra/libgd/libpng14-enable-read-dither.patch | 15 |
3 files changed, 19 insertions, 1 deletions
diff --git a/extra/libgd/.md5sum b/extra/libgd/.md5sum index cdec016e1..f56ea59a8 100644 --- a/extra/libgd/.md5sum +++ b/extra/libgd/.md5sum @@ -1 +1,2 @@ 982963448dc36f20cb79b6e9ba6fdede gd-2.0.35.tar.gz +d4696db4af61b175b705f51aeb9c8d7e libpng14-enable-read-dither.patch diff --git a/extra/libgd/Pkgfile b/extra/libgd/Pkgfile index bb74cd9b6..c74861436 100644 --- a/extra/libgd/Pkgfile +++ b/extra/libgd/Pkgfile @@ -7,10 +7,12 @@ name=libgd version=2.0.35 release=1 -source=( http://www.libgd.org/releases/gd-$version.tar.gz ) +source=( http://www.libgd.org/releases/gd-$version.tar.gz \ + libpng14-enable-read-dither.patch) build () { cd gd-$version + patch -Np1 -i ../libpng14-enable-read-dither.patch ./configure --prefix=/usr make make DESTDIR=$PKG install diff --git a/extra/libgd/libpng14-enable-read-dither.patch b/extra/libgd/libpng14-enable-read-dither.patch new file mode 100644 index 000000000..955b12ac6 --- /dev/null +++ b/extra/libgd/libpng14-enable-read-dither.patch @@ -0,0 +1,15 @@ +diff -Naur libpng-1.4.0-orig/pngconf.h libpng-1.4.0/pngconf.h +--- libpng-1.4.0-orig/pngconf.h 2010-01-27 20:38:27.000000000 -0500 ++++ libpng-1.4.0/pngconf.h 2010-01-27 20:44:44.000000000 -0500 +@@ -497,11 +497,9 @@ + # ifndef PNG_NO_READ_INVERT + # define PNG_READ_INVERT_SUPPORTED + # endif +-#if 0 /* removed from libpng-1.4.0 */ + # ifndef PNG_NO_READ_DITHER + # define PNG_READ_DITHER_SUPPORTED + # endif +-#endif /* 0 */ + # ifndef PNG_NO_READ_BACKGROUND + # define PNG_READ_BACKGROUND_SUPPORTED + # endif |