mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 15:57:13 +08:00
51 lines
1.7 KiB
Bash
51 lines
1.7 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=imagemagick
|
|
pkgver=6.8.0.3
|
|
pkgrel=1
|
|
pkgdesc="An image viewing/manipulation program"
|
|
arch=('x86_64')
|
|
url="http://www.imagemagick.org/"
|
|
license=('custom')
|
|
depends=('libltdl' 'lcms' 'lcms2' 'libxt' 'gcc-libs' 'bzip2' 'freetype2' 'fontconfig'
|
|
'libxext' 'fftw' 'liblqr' 'libwmf' 'librsvg' 'libxml2' 'perl' )
|
|
makedepends=('ghostscript' 'openexr' 'jasper')
|
|
optdepends=('ghostscript: for Ghostscript support'
|
|
'openexr: for OpenEXR support'
|
|
'jasper: for JPEG-2000 support')
|
|
options=('!makeflags' '!docs')
|
|
source=("http://sourceforge.net/projects/imagemagick/files/6.8.0-sources/ImageMagick-6.8.0-3.tar.xz"
|
|
'perlmagick.rpath.patch')
|
|
md5sums=('3b985a05f95768767649820ab21e2060'
|
|
'ff9974decbfe9846f8e347239d87e4eb')
|
|
|
|
build() {
|
|
cd ${srcdir}/ImageMagick-${pkgver%.*}-${pkgver##*.}
|
|
|
|
patch -p0 -i "${srcdir}/perlmagick.rpath.patch"
|
|
|
|
./configure --prefix=/usr --with-modules --disable-static \
|
|
--enable-openmp --with-x --with-wmf --with-openexr --with-xml \
|
|
--with-gslib --with-gs-font-dir=/usr/share/fonts/Type1 \
|
|
--with-perl --with-perl-options="INSTALLDIRS=vendor" \
|
|
--without-gvc --without-djvu --without-autotrace --with-jp2 \
|
|
--without-jbig --without-fpx --without-dps --without-fftw
|
|
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
|
|
|
|
#Cleaning
|
|
find ${pkgdir} -name '*.bs' -exec rm {} \;
|
|
rm -f ${pkgdir}/usr/lib/*.la
|
|
}
|