aboutsummaryrefslogtreecommitdiffstats
path: root/community/graphicsmagick/APKBUILD
blob: 8d715e3942ba7edca784b9f1ed8d0c2a731bc08a (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=graphicsmagick
pkgver=1.3.29
pkgrel=0
pkgdesc="Image processing system"
url="http://www.graphicsmagick.org/"
arch="all"
license="MIT"
makedepends="jasper-dev libpng-dev tiff-dev libxml2-dev libwmf-dev freetype-dev libtool libltdl"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/GraphicsMagick-$pkgver.tar.xz"
options="libtool !check"
builddir="$srcdir"/GraphicsMagick-$pkgver

# security fixes:
#   1.3.27-r0:
#     - CVE-2017-11102
#     - CVE-2017-14314
#     - CVE-2017-14504
#     - CVE-2017-14733
#     - CVE-2017-14994
#     - CVE-2017-14997
#     - CVE-2017-15930
#     - CVE-2017-14649
#   1.3.26-r5:
#     - CVE-2017-13065
#     - CVE-2017-13648
#     - CVE-2017-14042
#     - CVE-2017-14103
#     - CVE-2017-14165
#   1.3.26-r3:
#     - CVE-2017-13775
#     - CVE-2017-13776
#     - CVE-2017-13777
#   1.3.26-r2:
#     - CVE-2017-11642
#     - CVE-2017-11722
#     - CVE-2017-12935
#     - CVE-2017-12936
#     - CVE-2017-12937
#     - CVE-2017-13063
#     - CVE-2017-13064
#   1.3.25-r2:
#     - CVE-2017-11403

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-shared \
		--disable-static \
		--with-modules \
		--with-threads \
		--with-gs-font-dir=/usr/share/fonts/Type1 \
		--with-quantum-depth=16 \
		--with-ttf
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c4765dfe8d971715b74a5c885c6e6e22d9330e2a0d6398a39a89a2a374d256424818b819f7f2a604f3fd9ccc46b788ac3679803aa900ef905ce1cdbebea13252  GraphicsMagick-1.3.29.tar.xz"