opt/imagemagick/Pkgfile

35 lines
1008 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# 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
2006-02-23 16:26:10 +01:00
name=imagemagick
2018-03-05 13:58:00 +01:00
version=7.0.7-25
2018-02-19 12:20:52 +01:00
release=1
source=(https://www.imagemagick.org/download/ImageMagick-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build () {
2010-11-22 17:52:07 +01:00
cd ImageMagick-$version
2009-01-23 17:13:58 +01:00
./configure --prefix=/usr \
--enable-shared \
--with-modules \
--with-perl=yes \
--with-lcms=yes
2009-01-23 17:13:58 +01:00
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
2009-01-23 17:13:58 +01:00
# 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
2009-01-23 17:13:58 +01:00
find $PKG -type d -empty -delete
2006-02-23 16:26:10 +01:00
}