aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libwmf/APKBUILD
blob: 9af09a70490099279d11494c27e917bfa098edce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwmf
pkgver=0.2.8.4
pkgrel=1
pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)."
url="http://wvware.sourceforge.net/libwmf.html"
arch="x86 x86_64"
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"