![John Vogel](/assets/img/avatar_default.png)
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.
35 lines
1022 B
Plaintext
35 lines
1022 B
Plaintext
# Description: Image manipulation wizard
|
|
# URL: http://www.imagemagick.org/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Packager: danm, maol, jaeger, sip
|
|
# Depends on: util-linux lcms2 pango xorg-libxt
|
|
|
|
name=imagemagick
|
|
version=7.0.7-22
|
|
release=2
|
|
source=(ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ImageMagick-$version.tar.xz)
|
|
|
|
build () {
|
|
cd ImageMagick-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-shared \
|
|
--with-modules \
|
|
--with-perl=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
|
|
find $PKG -type d -empty -delete
|
|
}
|