mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:57:17 +08:00
85 lines
2.8 KiB
Bash
85 lines
2.8 KiB
Bash
pkgname=imagemagick
|
|
pkgver=6.9.9.33
|
|
pkgrel=1
|
|
pkgdesc="An image viewing/manipulation program"
|
|
arch=('x86_64')
|
|
url="http://www.imagemagick.org/"
|
|
license=('custom')
|
|
depends=('perl' 'libltdl' 'lcms2' 'libxt' 'fontconfig' 'libxext' 'liblqr' 'libcl' 'fftw')
|
|
makedepends=('lcms2' 'fontconfig' 'ghostscript'
|
|
'openexr' 'libwmf' 'librsvg' 'libxml2' 'opencl-headers' 'libwebp')
|
|
optdepends=('ghostscript: for Ghostscript support'
|
|
'openexr: for OpenEXR support'
|
|
'jasper: for JPEG-2000 support'
|
|
'libwmf: for WMF support'
|
|
'librsvg: for SVG support'
|
|
'libxml2: for XML support'
|
|
'libpng: for PNG support'
|
|
'libwebp: for WEBP support')
|
|
options=('libtool' '!emptydirs')
|
|
source=(http://www.imagemagick.org/download/releases/ImageMagick-${pkgver%.*}-${pkgver##*.}.tar.xz{,.asc})
|
|
sha1sums=('25e97ff67107ba9e8a45a9751153827244124e0d'
|
|
'SKIP')
|
|
validpgpkeys=(D8272EF51DA223E4D05B466989AB63D48277377A) # Lexie Parsimoniae
|
|
backup=("etc/ImageMagick-${pkgver%%.*}/coder.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/colors.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/delegates.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/log.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/magic.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/mime.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/policy.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/quantization-table.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/thresholds.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/type.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/type-dejavu.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/type-ghostscript.xml"
|
|
"etc/ImageMagick-${pkgver%%.*}/type-windows.xml")
|
|
|
|
prepare() {
|
|
cd ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
sed '/AC_PATH_XTRA/d' -i configure.ac
|
|
autoreconf --force --install
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=/usr/lib \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
--enable-hdri \
|
|
--enable-opencl \
|
|
--with-dejavu-font-dir=/usr/share/fonts/TTF \
|
|
--with-fftw \
|
|
--with-gs-font-dir=/usr/share/fonts/Type1 \
|
|
--with-gslib \
|
|
--with-openjp2 \
|
|
--with-modules \
|
|
--with-openexr \
|
|
--with-perl \
|
|
--with-perl-options="INSTALLDIRS=vendor" \
|
|
--with-rsvg \
|
|
--with-webp \
|
|
--with-wmf \
|
|
--with-xml \
|
|
--without-autotrace \
|
|
--without-dps \
|
|
--without-fpx \
|
|
--without-gvc \
|
|
--without-jbig
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
install -Dm644 NOTICE ${pkgdir}/usr/share/licenses/${pkgname}/NOTICE
|
|
}
|