blob: f809c5d0395b79c864a157e382c80cd1d1b976c1 (
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
|
#!/bin/sh
NAME="imagemagick"
DESC="Collection of tools and libraries for many image formats"
MAKEDEPS="chrpath fontconfig freetype2 ghostscript lcms2 libheif libjpeg-turbo libpng libjxl libtool libwebp libx11 libxext libxml2 perl tiff zlib librsvg"
PKG_VER=7.1.0-45
version=${PKG_VER%.*}-${PKG_VER##*.}
SOURCE="https://imagemagick.org/archive/ImageMagick-$PKG_VER.tar.xz"
build() {
# fix doc dir, Gentoo bug 91911
sed -i -e \
's:DOCUMENTATION_PATH="$DATA_DIR/doc/$DOCUMENTATION_RELATIVE_PATH":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \
configure
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-static \
--disable-openmp \
--with-threads \
--with-x \
--with-jxl \
--with-tiff \
--with-rsvg \
--with-png \
--with-webp \
--with-gslib \
--with-gs-font-dir=/usr/share/fonts/Type1 \
--with-heic \
--with-modules \
--with-xml \
--with-perl \
--with-perl-options="PREFIX=/usr INSTALLDIRS=vendor"
make
}
# one test failed for no reason, we can ignore it
#check() {
#make check
#}
package() {
make -j1 DESTDIR="$PKG_DEST" install
if ! [ -e "$PKG_DEST"/usr/lib/libMagickCore-7.Q16HDRI.so ]; then
echo "Has ABI verision changed? (current is 7)"
return 1
fi
find "$PKG_DEST" \( -name '.packlist' -o -name 'perllocal.pod' \
-o -name '*.bs' \) -delete
}
|