summaryrefslogtreecommitdiffstats
path: root/testing/libwmf/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-09 14:02:26 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-09 14:02:26 +0000
commita9274b1b55381553f3a783e94f6339cb35c2a24f (patch)
treed23ff8353075fac425495eda3a12513cd60447dc /testing/libwmf/APKBUILD
parentd8677330ba1d1dd91d84e0cd8e546fda1f8edc6d (diff)
parent139c3269bcacee129a2e47cbd05d31aeec798d00 (diff)
downloadaports-a9274b1b55381553f3a783e94f6339cb35c2a24f.tar.bz2
aports-a9274b1b55381553f3a783e94f6339cb35c2a24f.tar.xz
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/libwmf/APKBUILD')
-rw-r--r--testing/libwmf/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/libwmf/APKBUILD b/testing/libwmf/APKBUILD
new file mode 100644
index 000000000..3f4108795
--- /dev/null
+++ b/testing/libwmf/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libwmf
+pkgver=0.2.8.4
+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 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"