ImageMagick: disable openmp on musl arches

fixes php-imagick which has this error

PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/lib/php/modules/imagick (Error loading shared library /usr/lib/php/modules/imagick: No such file or directory), /usr/lib/php/modules/imagick.so (Error relocating /lib/libgomp.so.1: __cxa_finalize: initial-exec TLS resolves to dynamic definition in /lib/libgomp.so.1)) in Unknown on line 0

resolves void-linux/void-packages#3649
This commit is contained in:
maxice8 2018-10-12 02:33:34 -03:00 committed by maxice8
parent 831497c93c
commit bebb047c97
1 changed files with 14 additions and 3 deletions

View File

@ -3,7 +3,7 @@ pkgname=ImageMagick
_majorver=7.0.8
_patchver=12
version="${_majorver}.${_patchver}"
revision=1
revision=2
wrksrc="${pkgname}-${_majorver}-${_patchver}"
build_style=gnu-configure
configure_args="--without-autotrace --with-wmf=yes
@ -13,8 +13,8 @@ configure_args="--without-autotrace --with-wmf=yes
--with-dejavu-font-dir=/usr/share/fonts/TTF --enable-opencl --disable-static"
hostmakedepends="automake libtool pkg-config"
makedepends="djvulibre-devel fftw-devel ghostscript-devel glib-devel lcms2-devel
libXt-devel libgomp-devel libltdl-devel librsvg-devel libwebp-devel
libwmf-devel ocl-icd-devel pango-devel"
libXt-devel libltdl-devel librsvg-devel libwebp-devel libwmf-devel ocl-icd-devel
pango-devel"
short_desc="Package for display and interactive manipulation of images"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="ImageMagick"
@ -34,6 +34,17 @@ if [ -z "$CROSS_BUILD" ]; then
subpackages+=" libmagick-perl"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
# https://github.com/void-linux/void-packages/issues/3649
# breaks php-imagick
configure_args+=" --disable-openmp"
;;
*)
makedepends+=" libgomp-devel "
;;
esac
pre_configure() {
autoreconf -if
}