summaryrefslogtreecommitdiff
path: root/community/gimp-plugin-mathmap
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
commit6459b84bf754eda5323f40eb7af76dde65b63251 (patch)
tree81947a270848520d4cf2f9d1c5ce91ced54fcdff /community/gimp-plugin-mathmap
parent942111e62628e9a5c4729563215b1cfb8911735e (diff)
Tue Jun 17 03:23:47 UTC 2014
Diffstat (limited to 'community/gimp-plugin-mathmap')
-rw-r--r--community/gimp-plugin-mathmap/PKGBUILD18
-rw-r--r--community/gimp-plugin-mathmap/giflib-5.0.patch12
-rw-r--r--community/gimp-plugin-mathmap/giflib-5.1.patch21
3 files changed, 32 insertions, 19 deletions
diff --git a/community/gimp-plugin-mathmap/PKGBUILD b/community/gimp-plugin-mathmap/PKGBUILD
index d99fc7806..6038f39f7 100644
--- a/community/gimp-plugin-mathmap/PKGBUILD
+++ b/community/gimp-plugin-mathmap/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 94923 2013-08-01 07:01:15Z bpiotrowski $
+# $Id: PKGBUILD 113161 2014-06-14 19:22:14Z andyrtr $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Serge Gielkens <gielkens.serge@mumeli.org>
pkgname=gimp-plugin-mathmap
pkgver=1.3.5
-pkgrel=4
+pkgrel=5
pkgdesc="A GIMP plug-in which allows distortion of images specified by mathematical formulae"
arch=('i686' 'x86_64')
url="http://www.complang.tuwien.ac.at/schani/mathmap/"
@@ -14,21 +14,25 @@ makedepends=('doxygen' 'unzip')
provides=('gimp-mathmap')
replaces=('gimp-mathmap')
source=(http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-${pkgver}.tar.gz \
- fix_libnoise_build.patch libpng15.patch giflib-5.0.patch)
+ fix_libnoise_build.patch libpng15.patch giflib-5.1.patch)
md5sums=('6ff66d070ea410dee1a27283d05b8beb'
'eca40de0ba0e6b8d34b7d1f904bc3d18'
'9780d6354b7380b772c4616253ecee54'
- '9cc8eb13526056d8f3d06cc3e984a719')
+ 'a4dae904ede98ee8d3104bcfd285cec5')
-build() {
+prepare() {
cd "$srcdir/mathmap-$pkgver"
# fix problem with building libnoise
patch -Np1 < "$srcdir"/fix_libnoise_build.patch
# fix for libpng 1.5
patch -Np1 < "$srcdir"/libpng15.patch
- # fix for giflib 5.0
- patch -Np1 < "$srcdir"/giflib-5.0.patch
+ # fix for giflib 5.1
+ patch -Np1 < "$srcdir"/giflib-5.1.patch
+}
+
+build() {
+ cd "$srcdir/mathmap-$pkgver"
make
}
diff --git a/community/gimp-plugin-mathmap/giflib-5.0.patch b/community/gimp-plugin-mathmap/giflib-5.0.patch
deleted file mode 100644
index d9036a451..000000000
--- a/community/gimp-plugin-mathmap/giflib-5.0.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -rupN a/rwimg/rwgif.c b/rwimg/rwgif.c
---- a/rwimg/rwgif.c 2009-08-23 13:56:14.000000000 +0200
-+++ b/rwimg/rwgif.c 2013-07-30 10:59:45.391015754 +0200
-@@ -54,7 +54,7 @@ open_gif_file (const char *filename, int
-
- assert(data != 0);
-
-- data->file = DGifOpenFileName(filename);
-+ data->file = DGifOpenFileName(filename, NULL);
-
- assert(data->file !=0);
-
diff --git a/community/gimp-plugin-mathmap/giflib-5.1.patch b/community/gimp-plugin-mathmap/giflib-5.1.patch
new file mode 100644
index 000000000..22b75145a
--- /dev/null
+++ b/community/gimp-plugin-mathmap/giflib-5.1.patch
@@ -0,0 +1,21 @@
+diff -rup mathmap-1.3.5/rwimg/rwgif.c mathmap-1.3.5.new/rwimg/rwgif.c
+--- mathmap-1.3.5/rwimg/rwgif.c 2009-08-23 13:56:14.000000000 +0200
++++ mathmap-1.3.5.new/rwimg/rwgif.c 2014-05-29 11:31:51.388388393 +0200
+@@ -54,7 +54,7 @@ open_gif_file (const char *filename, int
+
+ assert(data != 0);
+
+- data->file = DGifOpenFileName(filename);
++ data->file = DGifOpenFileName(filename, NULL);
+
+ assert(data->file !=0);
+
+@@ -137,7 +137,7 @@ open_gif_file (const char *filename, int
+ }
+ free(buffer);
+
+- assert(DGifCloseFile(data->file) == GIF_OK);
++ assert(DGifCloseFile(data->file, NULL) == GIF_OK);
+
+ return data;
+ }