summaryrefslogtreecommitdiff
path: root/imagemagick
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2018-02-10 23:25:44 -0500
committerJuergen Daubert <jue@jue.li>2018-02-18 11:40:01 +0100
commit45a95ca8e0718c47c9009251e8b02578fc441eff (patch)
treec57292dd8a7042b1eee6b536f1af4154c86960f8 /imagemagick
parent9af3fdefbef84221555ba64bb5f516325cc1d533 (diff)
downloadopt-45a95ca8e0718c47c9009251e8b02578fc441eff.tar.gz
opt-45a95ca8e0718c47c9009251e8b02578fc441eff.tar.xz
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.
Diffstat (limited to 'imagemagick')
-rw-r--r--imagemagick/Pkgfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/imagemagick/Pkgfile b/imagemagick/Pkgfile
index 4e24eaa28..6a11e4b56 100644
--- a/imagemagick/Pkgfile
+++ b/imagemagick/Pkgfile
@@ -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

Generated by cgit