aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmng/APKBUILD
blob: 2be6eca8a9e4c9d4fdd74261cb82644affd0a8e8 (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
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmng
pkgver=2.0.2
pkgrel=0
pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
url="http://www.libmng.com/"
arch="all"
license="custom"
depends=""
depends_dev="libjpeg-turbo-dev"
makedepends="$depends_dev zlib-dev lcms-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/libmng/libmng-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	autoreconf --force --install
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--disable-static \
		--with-zlib \
		--with-jpeg \
		--with-lcms2 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

md5sums="1ffefaed4aac98475ee6267422cbca55  libmng-2.0.2.tar.gz"
sha256sums="4908797bb3541fb5cd8fffbe0b1513ed163509f2a4d57a78b26a96f8d1dd05a2  libmng-2.0.2.tar.gz"
sha512sums="7d3da919ac79d6b568de246f902d0acef99acb5c195812c85ebc22ef53b7cb30073d090e9c376099e938febfbefaa4e0511d54dea256fedf22614b4f12183535  libmng-2.0.2.tar.gz"