diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-05-14 17:36:00 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-05-14 17:36:00 -0500 |
commit | b8de7ba64e7bcfece03573e8e892f7499a07cf6c (patch) | |
tree | 4c9633e910788f8bb3f286fd6042ab3924ad8c73 /main/gimp/APKBUILD | |
parent | 81b7c447fefa3bc77464c825851321d121e79e36 (diff) | |
download | aports-b8de7ba64e7bcfece03573e8e892f7499a07cf6c.tar.bz2 aports-b8de7ba64e7bcfece03573e8e892f7499a07cf6c.tar.xz |
main/gimp: libpng 1.5 compatibility fixes
Diffstat (limited to 'main/gimp/APKBUILD')
-rw-r--r-- | main/gimp/APKBUILD | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/main/gimp/APKBUILD b/main/gimp/APKBUILD index 32a2b2b979..8aa6b05885 100644 --- a/main/gimp/APKBUILD +++ b/main/gimp/APKBUILD @@ -11,14 +11,25 @@ makedepends="gtk+-dev libxpm-dev libxmu-dev librsvg-dev dbus-glib-dev jpeg-dev libpng-dev curl-dev" install= subpackages="$pkgname-dev $pkgname-doc" -source="ftp://ftp.$pkgname.org/pub/$pkgname/v2.6/$pkgname-$pkgver.tar.bz2" +source="ftp://ftp.$pkgname.org/pub/$pkgname/v2.6/$pkgname-$pkgver.tar.bz2 + gimp-libpng1.5-compat.patch" +_builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" + + for i in $source; do + case $i in + *.patch) + msg "Applying $i..." + patch -s -p1 -N -i "$srcdir"/$i || return 1 + ;; + esac + done } build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-mp \ @@ -34,8 +45,9 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 ln -s gimptool-2.0 "$pkgdir/usr/bin/gimptool" || return 1 } + md5sums="bb2939fe13e54fc7255cef5d097bb5dd gimp-2.6.11.tar.bz2" |