summaryrefslogtreecommitdiff
path: root/community/metapixel
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/metapixel
parent942111e62628e9a5c4729563215b1cfb8911735e (diff)
Tue Jun 17 03:23:47 UTC 2014
Diffstat (limited to 'community/metapixel')
-rw-r--r--community/metapixel/PKGBUILD19
-rw-r--r--community/metapixel/metapixel-giflib-5.1.0-compat.patch23
2 files changed, 37 insertions, 5 deletions
diff --git a/community/metapixel/PKGBUILD b/community/metapixel/PKGBUILD
index 6a9d0880b..dec101c23 100644
--- a/community/metapixel/PKGBUILD
+++ b/community/metapixel/PKGBUILD
@@ -1,25 +1,34 @@
-# $Id: PKGBUILD 106408 2014-03-02 18:09:48Z schuay $
+# $Id: PKGBUILD 113165 2014-06-14 19:22:19Z andyrtr $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Daniel Isenmann <daniel.isenmann [at] gmx [dot] de>
pkgname=metapixel
pkgver=1.0.2
-pkgrel=6
+pkgrel=7
pkgdesc='A program for generating photomosaics.'
arch=('i686' 'x86_64')
url='http://www.complang.tuwien.ac.at/schani/metapixel/'
license=('GPL')
depends=('giflib' 'libjpeg' 'libpng' 'perl' 'glib2')
makedepends=('git' 'docbook-xsl')
-source=("git://github.com/schani/metapixel.git#commit=4ad7be9e82")
-md5sums=('SKIP')
+source=("git://github.com/schani/metapixel.git#commit=4ad7be9e82"
+ "metapixel-giflib-5.1.0-compat.patch")
+md5sums=('SKIP'
+ 'b959c6d1b14064aee3a73ae568a82555')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}"
git submodule init
git submodule update
+ cd rwimg
+ patch -p1 -i ../../metapixel-giflib-5.1.0-compat.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
# Build librwimg first, make dependencies seem to be bugged.
make librwimg
make MANPAGE_XSL="/usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl"
diff --git a/community/metapixel/metapixel-giflib-5.1.0-compat.patch b/community/metapixel/metapixel-giflib-5.1.0-compat.patch
new file mode 100644
index 000000000..1c948f35b
--- /dev/null
+++ b/community/metapixel/metapixel-giflib-5.1.0-compat.patch
@@ -0,0 +1,23 @@
+diff --git a/rwgif.c b/rwgif.c
+index e67ac3c..6b19a28 100644
+--- a/rwgif.c
++++ b/rwgif.c
+@@ -54,8 +54,7 @@ open_gif_file (const char *filename, int *width, int *height)
+
+ assert(data != 0);
+
+- int error;
+- data->file = DGifOpenFileName(filename, &error);
++ data->file = DGifOpenFileName(filename, NULL);
+
+ assert(data->file !=0);
+
+@@ -138,7 +137,7 @@ open_gif_file (const char *filename, int *width, int *height)
+ }
+ free(buffer);
+
+- assert(DGifCloseFile(data->file) == GIF_OK);
++ assert(DGifCloseFile(data->file, NULL) == GIF_OK);
+
+ return data;
+ }