From e9c57d7b360dd788e4ba6f2e9b7771307c41ed5e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 9 Mar 2010 13:13:43 +0000 Subject: testing/libwmf: new aport A library for reading vector images in Microsoft's native Windows Metafile Format (WMF). http://wvware.sourceforge.net/libwmf.html --- testing/libwmf/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ testing/libwmf/libpng14.patch | 12 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 testing/libwmf/APKBUILD create mode 100644 testing/libwmf/libpng14.patch (limited to 'testing') diff --git a/testing/libwmf/APKBUILD b/testing/libwmf/APKBUILD new file mode 100644 index 00000000..e370ceee --- /dev/null +++ b/testing/libwmf/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa +pkgname=libwmf +pkgver=0.2.8.4 +pkgrel=6 +pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)." +url="http://wvware.sourceforge.net/libwmf.html" +license="LGPL" +makedepends="libpng-dev>=1.4.0 libx11-dev freetype-dev jpeg-dev>=8 expat-dev" +install= +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/sourceforge/wvware/$pkgname-$pkgver.tar.gz + libpng14.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + patch -Np1 -i ""$srcdir"/libpng14.patch" || return 1 + sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --with-gsfontdir=/usr/share/fonts/Type1 \ + --with-fontdir=/usr/share/fonts/Type1 \ + --with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS + make || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install +} +md5sums="d1177739bf1ceb07f57421f0cee191e0 libwmf-0.2.8.4.tar.gz +33d3c07a1be9f99fd88de220930c5550 libpng14.patch" diff --git a/testing/libwmf/libpng14.patch b/testing/libwmf/libpng14.patch new file mode 100644 index 00000000..3d38c717 --- /dev/null +++ b/testing/libwmf/libpng14.patch @@ -0,0 +1,12 @@ +diff -Nur libwmf-0.2.8.4.orig/src/extra/gd/gd_png.c libwmf-0.2.8.4/src/extra/gd/gd_png.c +--- libwmf-0.2.8.4.orig/src/extra/gd/gd_png.c 2005-07-27 23:35:06.000000000 +0300 ++++ libwmf-0.2.8.4/src/extra/gd/gd_png.c 2010-01-17 01:33:58.000000000 +0200 +@@ -136,7 +136,7 @@ + /* first do a quick check that the file really is a PNG image; could + * have used slightly more general png_sig_cmp() function instead */ + gdGetBuf (sig, 8, infile); +- if (!png_check_sig (sig, 8)) ++ if (png_sig_cmp (sig, 0, 8)) + return NULL; /* bad signature */ + + #ifndef PNG_SETJMP_NOT_SUPPORTED -- cgit v1.2.3 From 139c3269bcacee129a2e47cbd05d31aeec798d00 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 9 Mar 2010 13:18:03 +0000 Subject: testing/libwmf: reset pkgrel. and we dont need x11 --- testing/libwmf/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing') diff --git a/testing/libwmf/APKBUILD b/testing/libwmf/APKBUILD index e370ceee..3f410879 100644 --- a/testing/libwmf/APKBUILD +++ b/testing/libwmf/APKBUILD @@ -1,11 +1,11 @@ # Maintainer: Natanael Copa pkgname=libwmf pkgver=0.2.8.4 -pkgrel=6 +pkgrel=0 pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)." url="http://wvware.sourceforge.net/libwmf.html" license="LGPL" -makedepends="libpng-dev>=1.4.0 libx11-dev freetype-dev jpeg-dev>=8 expat-dev" +makedepends="libpng-dev>=1.4.0 freetype-dev jpeg-dev>=8 expat-dev" install= subpackages="$pkgname-dev" source="http://downloads.sourceforge.net/sourceforge/wvware/$pkgname-$pkgver.tar.gz -- cgit v1.2.3