From f02518242e005b0c2c14c32062fa4f7b715c3b24 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 19 Apr 2009 20:12:29 +0000 Subject: x11/imlib2: new aport Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support http://sourceforge.net/projects/enlightenment/ --- x11/imlib2/APKBUILD | 31 +++++++++++++++++++++++++++++++ x11/imlib2/bufferoverflow.patch | 13 +++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 x11/imlib2/APKBUILD create mode 100644 x11/imlib2/bufferoverflow.patch (limited to 'x11') diff --git a/x11/imlib2/APKBUILD b/x11/imlib2/APKBUILD new file mode 100644 index 000000000..d4d509aa1 --- /dev/null +++ b/x11/imlib2/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Natanael Copa +pkgname=imlib2 +pkgver=1.4.2 +pkgrel=0 +pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support" +url="http://sourceforge.net/projects/enlightenment/" +license="BSD" +subpackages="$pkgname-dev $pkgname-doc" +depends="uclibc libx11 libxext freetype giflib libid3tag libjpeg libpng tiff + zlib" +makedepends="tiff-dev giflib-dev bzip2-dev freetype-dev libxext-dev + libpng-dev libid3tag-dev libjpeg-dev libsm-dev zlib-dev" +source="http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2 + bufferoverflow.patch" + +build () +{ + cd $srcdir/$pkgname-$pkgver + patch -Np0 -i $srcdir/bufferoverflow.patch || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc/imlib2 \ + --x-libraries=/usr/lib \ + --disable-mmx \ + --disable-amd64 \ + || return 1 + make || return 1 + make DESTDIR=$pkgdir install || return 1 + install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING +} +md5sums="9f15568e76ebda9092c571e0df261f54 imlib2-1.4.2.tar.bz2 +76def1fe0ac2ac1686ff24d29979606f bufferoverflow.patch" diff --git a/x11/imlib2/bufferoverflow.patch b/x11/imlib2/bufferoverflow.patch new file mode 100644 index 000000000..397b43fb8 --- /dev/null +++ b/x11/imlib2/bufferoverflow.patch @@ -0,0 +1,13 @@ +--- src/modules/loaders/loader_xpm.c ++++ src/modules/loaders/loader_xpm.c.new +@@ -246,8 +246,8 @@ + return 0; + } + ptr = im->data; +- end = ptr + (sizeof(DATA32) * w * h); + pixels = w * h; ++ end = ptr + pixels; + } + else + { + -- cgit v1.2.3