mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
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:
parent
831497c93c
commit
bebb047c97
1 changed files with 14 additions and 3 deletions
|
@ -3,7 +3,7 @@ pkgname=ImageMagick
|
||||||
_majorver=7.0.8
|
_majorver=7.0.8
|
||||||
_patchver=12
|
_patchver=12
|
||||||
version="${_majorver}.${_patchver}"
|
version="${_majorver}.${_patchver}"
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-${_majorver}-${_patchver}"
|
wrksrc="${pkgname}-${_majorver}-${_patchver}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-autotrace --with-wmf=yes
|
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"
|
--with-dejavu-font-dir=/usr/share/fonts/TTF --enable-opencl --disable-static"
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="djvulibre-devel fftw-devel ghostscript-devel glib-devel lcms2-devel
|
makedepends="djvulibre-devel fftw-devel ghostscript-devel glib-devel lcms2-devel
|
||||||
libXt-devel libgomp-devel libltdl-devel librsvg-devel libwebp-devel
|
libXt-devel libltdl-devel librsvg-devel libwebp-devel libwmf-devel ocl-icd-devel
|
||||||
libwmf-devel ocl-icd-devel pango-devel"
|
pango-devel"
|
||||||
short_desc="Package for display and interactive manipulation of images"
|
short_desc="Package for display and interactive manipulation of images"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="ImageMagick"
|
license="ImageMagick"
|
||||||
|
@ -34,6 +34,17 @@ if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages+=" libmagick-perl"
|
subpackages+=" libmagick-perl"
|
||||||
fi
|
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() {
|
pre_configure() {
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue