imagemagick: fix bogus rpath in perl .so files

The perl binding .so files are being built with RPATH prefixed with
the build's work directory because the imagemagick libs aren't
installed yet. Rebuild the perl binding with LD_RUN_PATH removed
from the linker command line.

Also, change '--with-lcms=no --with-lcms2=yes' to '--with-lcms=yes'.
Upstream changed the lcms flags again. Seems only lcms2 is actually
supported and --with-lcms is the only current switch for that now.
This commit is contained in:
John Vogel 2018-02-10 23:25:44 -05:00 committed by Juergen Daubert
parent 9af3fdefbe
commit 45a95ca8e0

View File

@ -6,7 +6,7 @@
name=imagemagick
version=7.0.7-22
release=1
release=2
source=(ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ImageMagick-$version.tar.xz)
build () {
@ -16,11 +16,17 @@ build () {
--enable-shared \
--with-modules \
--with-perl=yes \
--with-lcms=no --with-lcms2=yes
--with-lcms=yes
make
make DESTDIR=$PKG install
# rebuild perl binding .so files to remove bogus workdir rpath
cd PerlMagick
find . -name '*.so' -delete
sed -i 's,LD_RUN_PATH="$(LD_RUN_PATH)" ,,' quantum/Makefile
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
find $PKG -regex '.*\(ChangeLog\|LICENSE\|NEWS\.txt\)$' -delete
find $PKG -regex '.*\(\.packlist\|perllocal.pod\|\.bs\)$' -delete