aboutsummaryrefslogtreecommitdiffstats
path: root/community/graphicsmagick/APKBUILD
blob: 10f4487ff4f690cad5a51b6aa82a9c7f61458bd2 (plain) (blame)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=graphicsmagick
pkgver=1.3.33
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
 libwebp-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/GraphicsMagick-$pkgver.tar.xz"
options="libtool !check"
builddir="$srcdir"/GraphicsMagick-$pkgver

# security fixes:
#   1.3.32-r0:
#     - CVE-2018-18544
#     - CVE-2018-20189
#     - CVE-2019-7397
#     - CVE-2019-11473
#     - cve-2019-11474
#   1.3.30-r0:
#     - CVE-2016-2317
#   1.3.29-r0:
#     - CVE-2018-9018
#   1.3.28-r0:
#     - CVE-2018-5685
#     - CVE-2018-6799
#   1.3.27-r0:
#     - CVE-2017-11102
#     - CVE-2017-11139
#     - CVE-2017-11140
#     - CVE-2017-11636
#     - CVE-2017-11637
#     - CVE-2017-11638
#     - CVE-2017-11641
#     - CVE-2017-11643
#     - CVE-2017-13066
#     - CVE-2017-13134
#     - CVE-2017-13147
#     - CVE-2017-13736
#     - CVE-2017-13737
#     - CVE-2017-14314
#     - CVE-2017-14504
#     - CVE-2017-14649
#     - CVE-2017-14733
#     - CVE-2017-14994
#     - CVE-2017-14997
#     - CVE-2017-15238
#     - CVE-2017-15277
#     - CVE-2017-15930
#     - CVE-2017-16352
#     - CVE-2017-16353
#     - CVE-2017-16545
#     - CVE-2017-16547
#     - CVE-2017-16669
#     - CVE-2017-17498
#     - CVE-2017-17500
#     - CVE-2017-17501
#     - CVE-2017-17502
#     - CVE-2017-17503
#     - CVE-2017-17782
#     - CVE-2017-17783
#     - CVE-2017-18219
#     - CVE-2017-18220
#     - CVE-2017-18229
#     - CVE-2017-18230
#     - CVE-2017-18231
#   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.26-r0:
#     - CVE-2016-7800
#     - CVE-2016-7996
#     - CVE-2016-7997
#     - CVE-2016-8682
#     - CVE-2016-8683
#     - CVE-2016-8684
#     - CVE-2016-9830
#     - CVE-2017-6335
#     - CVE-2017-10794
#     - CVE-2017-10799
#     - CVE-2017-10800
#   1.3.25-r2:
#     - CVE-2016-7800
#     - CVE-2016-7996
#     - CVE-2016-7997
#     - CVE-2016-8682
#     - CVE-2016-8683
#     - CVE-2016-8684
#     - CVE-2016-9830
#     - CVE-2017-6335
#     - CVE-2017-10794
#     - CVE-2017-10799
#     - CVE-2017-10800
#     - CVE-2017-11403
#   1.3.25-r0:
#     - CVE-2016-7447
#     - CVE-2016-7448
#     - CVE-2016-7449

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 \
		--disable-openmp \
		--with-modules \
		--with-threads \
		--with-gs-font-dir=/usr/share/fonts/Type1 \
		--with-quantum-depth=16 \
		--with-webp \
		--with-ttf
	make
}

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

sha512sums="8afeb461d1a9dab9b88b9bc7c2d50b5c409463b369e6b0ba7ee39b0ece32da9393d7a5a4d18faf8f72a529346a3477bae61b802bac2af81aeae79d95c9d6cd13  GraphicsMagick-1.3.33.tar.xz"