2010-10-11 20:47:03 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-11-06 01:54:55 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-10-11 20:47:03 +08:00
|
|
|
|
|
|
|
pkgname=graphicsmagick
|
2013-07-28 00:51:03 +08:00
|
|
|
pkgver=1.3.18
|
2010-10-11 20:47:03 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Image processing system"
|
2012-11-06 01:54:55 +08:00
|
|
|
arch=('x86_64')
|
2010-10-11 20:47:03 +08:00
|
|
|
url="http://www.graphicsmagick.org/"
|
|
|
|
license=('MIT')
|
|
|
|
makedepends=('perl')
|
2012-11-06 01:54:55 +08:00
|
|
|
depends=('bzip2' 'freetype2' 'ghostscript' 'jasper' 'lcms2' 'libsm'
|
|
|
|
'libtiff' 'libwmf' 'libxml2' 'libltdl' 'xz')
|
2010-10-11 20:47:03 +08:00
|
|
|
options=('!libtool')
|
2012-11-06 01:54:55 +08:00
|
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/GraphicsMagick-${pkgver}.tar.xz")
|
2013-07-28 00:51:03 +08:00
|
|
|
sha1sums=('085c23666adcf88585119cb6aea7efe5c58481d4')
|
2010-10-11 20:47:03 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/GraphicsMagick-$pkgver"
|
|
|
|
|
2012-11-06 01:54:55 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-perl \
|
|
|
|
--enable-shared \
|
2013-07-28 00:51:03 +08:00
|
|
|
--disable-static \
|
2012-11-06 01:54:55 +08:00
|
|
|
--with-gs-font-dir=/usr/share/fonts/Type1
|
|
|
|
make
|
|
|
|
}
|
2010-10-11 20:47:03 +08:00
|
|
|
|
2012-11-06 01:54:55 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/GraphicsMagick-$pkgver"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2010-10-11 20:47:03 +08:00
|
|
|
# Install MIT license
|
2012-11-06 01:54:55 +08:00
|
|
|
install -Dm644 "Copyright.txt" "${pkgdir}/usr/share/licenses/$pkgname/Copyright.txt"
|
2010-10-11 20:47:03 +08:00
|
|
|
|
|
|
|
# Install perl bindings
|
|
|
|
# The patching was introduced in order to build perl module without installing package itself and
|
|
|
|
# not to introduce unnecessary path into LD_RUN_PATH
|
2012-11-06 01:54:55 +08:00
|
|
|
cd PerlMagick
|
2010-10-11 20:47:03 +08:00
|
|
|
sed -i -e "s:'LDDLFLAGS' => \"\(.*\)\":'LDDLFLAGS' => \"-L${pkgdir}/usr/lib \1\":" Makefile.PL
|
2012-11-06 01:54:55 +08:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr DESTDIR="${pkgdir}"
|
2010-10-11 20:47:03 +08:00
|
|
|
sed -i -e "s/LDLOADLIBS =/LDLOADLIBS = -lGraphicsMagick/" Makefile
|
2012-11-06 01:54:55 +08:00
|
|
|
make
|
|
|
|
make install
|
2010-10-11 20:47:03 +08:00
|
|
|
|
|
|
|
# Remove perllocal.pod and .packlist
|
|
|
|
rm -rf "${pkgdir}/usr/lib/perl5/core_perl"
|
|
|
|
rm "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/.packlist"
|
2013-07-28 00:51:03 +08:00
|
|
|
}
|