diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-28 13:02:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-28 13:02:55 +0000 |
commit | 0ab1df962d59d5ae6f10c9022eb5256fcf5a959d (patch) | |
tree | 6b7876ff74db4abd14af0fefd5032fc9635c0ac0 /main/eboard | |
parent | bcc3b8fe7f57c2395ae6894dc3506951fd626197 (diff) | |
download | aports-0ab1df962d59d5ae6f10c9022eb5256fcf5a959d.tar.bz2 aports-0ab1df962d59d5ae6f10c9022eb5256fcf5a959d.tar.xz |
main/eboard: fix build against libpng-1.5
Diffstat (limited to 'main/eboard')
-rw-r--r-- | main/eboard/APKBUILD | 4 | ||||
-rw-r--r-- | main/eboard/eboard-libpng-1.5.patch | 16 |
2 files changed, 19 insertions, 1 deletions
diff --git a/main/eboard/APKBUILD b/main/eboard/APKBUILD index 9d832bb860..452bde516e 100644 --- a/main/eboard/APKBUILD +++ b/main/eboard/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=eboard pkgver=1.1.1 -pkgrel=0 +pkgrel=1 pkgdesc="Chess board interface for ICS" url="http://www.bergo.eng.br/eboard" arch="all" @@ -12,6 +12,7 @@ makedepends="gtk+2.0-dev perl" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://prdownloads.sourceforge.net/eboard/eboard-$pkgver.tar.bz2 + eboard-libpng-1.5.patch eboard.desktop" _builddir="$srcdir"/eboard-$pkgver @@ -41,4 +42,5 @@ package() { } md5sums="03dcdaa2bc85218b1b18c4bee276fea7 eboard-1.1.1.tar.bz2 +349dd8db4cca191925b9d30fb0da837b eboard-libpng-1.5.patch 70f985b6841c2e6374555a5a4c0cca79 eboard.desktop" diff --git a/main/eboard/eboard-libpng-1.5.patch b/main/eboard/eboard-libpng-1.5.patch new file mode 100644 index 0000000000..7ff3f51cb2 --- /dev/null +++ b/main/eboard/eboard-libpng-1.5.patch @@ -0,0 +1,16 @@ +--- eboard-1.1.1.orig/cimg.cc ++++ eboard-1.1.1/cimg.cc +@@ -94,11 +94,11 @@ + ct == PNG_COLOR_TYPE_GRAY_ALPHA) + png_set_gray_to_rgb(pngp); + +- alloc(pngp->width,pngp->height); ++ alloc(png_get_image_width(pngp, infp), png_get_image_height(pngp, infp)); + if (!ok) { fclose(f); return; } + ok = 0; + +- for(i=0;i<pngp->height;i++) { ++ for(i=0;i<png_get_image_height(pngp, infp);i++) { + png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL); + } + |