aboutsummaryrefslogtreecommitdiffstats
path: root/extra/gd/APKBUILD
blob: b7e58fe8e914dac8b44ca431114edeae873acdf4 (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=gd
pkgver=2.0.35
pkgrel=1
pkgdesc="Library for the dynamic creation of images by programmers"
url="http://www.libgd.org/"
license="custom"
depends="libpng libjpeg freetype zlib"
makedepends="libpng-dev libjpeg-dev freetype-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.libgd.org/releases/${pkgname}-${pkgver}.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-png \
		--with-freetype \
		--with-jpeg \
		--without-xpm \
		--without-fontconfig
	make || return 1
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="6c6c3dbb7bf079e0bb5fbbfd3bb8a71c  gd-2.0.35.tar.bz2"