summaryrefslogtreecommitdiff
path: root/extra/libmng
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libmng')
-rw-r--r--extra/libmng/PKGBUILD29
-rw-r--r--extra/libmng/libmng-stdio.patch10
2 files changed, 26 insertions, 13 deletions
diff --git a/extra/libmng/PKGBUILD b/extra/libmng/PKGBUILD
index 588dff8de..c6b4a626b 100644
--- a/extra/libmng/PKGBUILD
+++ b/extra/libmng/PKGBUILD
@@ -1,31 +1,34 @@
-# $Id: PKGBUILD 178306 2013-02-19 21:06:05Z eric $
+# $Id: PKGBUILD 193685 2013-08-28 00:06:03Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=libmng
-pkgver=1.0.10
-pkgrel=4.2
+pkgver=2.0.2
+pkgrel=2
pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.libmng.com/"
license=('custom')
-depends=('zlib' 'libjpeg')
+depends=('lcms2')
options=('!libtool')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('eaf1476a3bb29f6190bca660e6abef16')
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.asc}
+ libmng-stdio.patch)
+sha1sums=('7dd35369ff5916e1823cbacef984ab1b87714b69'
+ 'SKIP'
+ '2f8b472d53791ba3a44dab9b18fb215e8b19dd77')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p5 -i "${srcdir}/libmng-stdio.patch"
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i 's/AM_C_PROTOTYPES//' makefiles/configure.in
- ln -s makefiles/configure.in .
- ln -s makefiles/Makefile.am .
- sed -i '/^AM_C_PROTOTYPES$/d' configure.in # removed in recent automake
- autoreconf --force --install
+ cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/extra/libmng/libmng-stdio.patch b/extra/libmng/libmng-stdio.patch
new file mode 100644
index 000000000..42414f152
--- /dev/null
+++ b/extra/libmng/libmng-stdio.patch
@@ -0,0 +1,10 @@
+--- /mnt/chrootstaging32/usr/include/libmng_types.h 2013-08-15 16:26:03.000000000 -0400
++++ /mnt/chrootstaging64/usr/include/libmng_types.h 2013-08-16 19:53:39.165878412 -0400
+@@ -204,6 +204,7 @@
+ #define HAVE_BOOLEAN
+ typedef int boolean;
+ #endif
++#include <stdio.h>
+ #include <jpeglib.h>
+ #endif /* MNG_INCLUDE_IJG6B */
+