summaryrefslogtreecommitdiffstats
path: root/main/gd/APKBUILD
blob: c7c9b3b162da675d75dc8da769a97dc00f04a4ac (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=gd
pkgver=2.0.36_rc1
_myver=2.0.36RC1
pkgrel=4
pkgdesc="Library for the dynamic creation of images by programmers"
url="http://www.libgd.org/"
arch="all"
license="custom"
depends=
makedepends="libpng-dev jpeg-dev freetype-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.libgd.org/releases/${pkgname}-${_myver}.tar.bz2
	libpng14.patch"

_builddir="$srcdir"/$pkgname-$_myver
prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/libpng14.patch
}

build() {
	cd "$_builddir"
	./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
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="e876979ca3130623a4e7866d9579171a  gd-2.0.36RC1.tar.bz2
7921556f4960e8d66cf4fb67ea7101b5  libpng14.patch"