summaryrefslogtreecommitdiff
path: root/repo/imagemagick/imagemagick.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/imagemagick/imagemagick.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/imagemagick/imagemagick.xibuild')
-rw-r--r--repo/imagemagick/imagemagick.xibuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/repo/imagemagick/imagemagick.xibuild b/repo/imagemagick/imagemagick.xibuild
new file mode 100644
index 0000000..20fd5cc
--- /dev/null
+++ b/repo/imagemagick/imagemagick.xibuild
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+NAME="imagemagick"
+DESC="Collection of tools and libraries for many image formats"
+
+MAKEDEPS="chrpath fontconfig freetype ghostscript lcms2 libheif libjpeg-turbo libpng libjxl libtool libwebp libx11 libxext libxml2 perl tiff zlib librsvg"
+
+PKG_VER=7.1.0.30
+version=${PKG_VER%.*}-${PKG_VER##*.}
+SOURCE="https://download.imagemagick.org/ImageMagick/download/releases/ImageMagick-$version.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
+}
+
+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
+}
+