aboutsummaryrefslogtreecommitdiffstats
path: root/main/imagemagick/APKBUILD
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2019-05-08 22:32:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-17 12:36:19 +0000
commit97eebdc34c933fc99db17f4204b0204bc58b1b52 (patch)
tree6a7c6d8a05e86ff40cc25b3cc5f2cc029b2422b8 /main/imagemagick/APKBUILD
parent075593cfef8e4df6056ea7de388137a68335ea69 (diff)
downloadaports-97eebdc34c933fc99db17f4204b0204bc58b1b52.tar.bz2
aports-97eebdc34c933fc99db17f4204b0204bc58b1b52.tar.xz
main/imagemagick: Add build for PerlMagick packages
Diffstat (limited to 'main/imagemagick/APKBUILD')
-rw-r--r--main/imagemagick/APKBUILD24
1 files changed, 20 insertions, 4 deletions
diff --git a/main/imagemagick/APKBUILD b/main/imagemagick/APKBUILD
index 18e71d260a..be783dcd87 100644
--- a/main/imagemagick/APKBUILD
+++ b/main/imagemagick/APKBUILD
@@ -2,7 +2,7 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=imagemagick
-pkgver=7.0.8.44
+pkgver=7.0.8.49
pkgrel=0
_pkgver=${pkgver%.*}-${pkgver##*.}
_abiver=7
@@ -13,9 +13,9 @@ license="ImageMagick"
options="libtool !checkroot"
makedepends="zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev
perl-dev ghostscript-dev libwebp-dev libtool tiff-dev lcms2-dev
- libwebp-dev libxml2-dev librsvg-dev libx11-dev libxext-dev"
+ libwebp-dev libxml2-dev librsvg-dev libx11-dev libxext-dev chrpath"
checkdepends="freetype fontconfig ghostscript ghostscript-fonts lcms2 graphviz"
-subpackages="$pkgname-doc $pkgname-dev $pkgname-c++:_cxx $pkgname-libs"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-c++:_cxx $pkgname-libs $pkgname-perlmagick:_perlmagick $pkgname-perlmagick-doc:_perlmagick_doc"
source="https://www.imagemagick.org/download/releases/ImageMagick-$_pkgver.tar.xz"
builddir="$srcdir/ImageMagick-${_pkgver}"
@@ -54,6 +54,8 @@ build() {
--with-gs-font-dir=/usr/share/fonts/Type1 \
--with-modules \
--with-xml \
+ --with-perl \
+ --with-perl-options=PREFIX=/usr \
$_pic
make
}
@@ -85,4 +87,18 @@ _cxx() {
mv "$pkgdir"/usr/lib/libMagick++*.so.* "$subpkgdir"/usr/lib/
}
-sha512sums="a18b9e78375ed1a8ab3526ead089dc39c4eed189d4aca0df87787c7ef6e4ee46cdc9a93a1fe1c2a65f0ac2f86c3651696ccd23eb82b6a96cad4c78cf8314bb96 ImageMagick-7.0.8-44.tar.xz"
+_perlmagick() {
+ pkgdesc="PerlMagick Perl Modules for ImageMagick"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/perl5 "$subpkgdir"/usr/lib/
+ chrpath -d "$subpkgdir"/usr/lib/perl5/site_perl/auto/Image/Magick/Q16HDRI/Q16HDRI.so
+}
+
+_perlmagick_doc() {
+ pkgdesc="PerlMagick Perl Module Documentation for ImageMagick"
+ mkdir -p "$subpkgdir"
+ cd "$builddir"/PerlMagick
+ make -j1 DESTDIR="$subpkgdir" doc_vendor_install
+}
+
+sha512sums="8dd4a45f4d95d949bcd797f44d1602a3767386ee7d73888fb8a1ee6d4d8be7c4881a88262e7261a253da6f4b3c8ac9442d5eacb44e267e2d25e11bda10b12526 ImageMagick-7.0.8-49.tar.xz"