void-packages/srcpkgs/GraphicsMagick/template
2014-11-23 14:22:20 +01:00

52 lines
1.7 KiB
Text

# Template file for 'GraphicsMagick'
pkgname=GraphicsMagick
version=1.3.20
revision=1
build_style=gnu-configure
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
homepage="http://www.graphicsmagick.org/"
license="MIT"
short_desc="GraphicsMagick Image Processing System - Q16 Version"
configure_args="--with-quantum-depth=16 --with-gs-font-dir=/usr/share/fonts/Type1
--with-modules --with-perl --without-lcms --without-jp2 --enable-shared
--disable-static"
keep_libtool_archives=yes
hostmakedepends="pkg-config perl>=5.20"
makedepends="perl>=5.20 libjpeg-turbo-devel libpng-devel>=1.6 tiff-devel
lcms2-devel freetype-devel libwebp-devel>=0.4.0 fontconfig-devel libXext-devel
libXt-devel libltdl-devel libxml2-devel libwmf-devel liblzma-devel libgomp-devel
ghostscript-devel"
depends="ghostscript"
distfiles="${SOURCEFORGE_SITE}/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
checksum="0f7463318f5d9a4b429655dd43642a7a93dae561360637093182fbf5ac4fdc88"
libgraphicsmagick_package() {
short_desc="GraphicsMagick low-level image manipulation libraries"
pkg_install() {
vmove "usr/lib/libGraphicsMagick*.so.*"
vmove "usr/lib/GraphicsMagick*"
vmove "usr/share/GraphicsMagick*"
}
}
libgraphicsmagick-devel_package() {
short_desc+=" - development files"
depends="libgraphicsmagick>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/doc
vmove "usr/bin/*-config"
vmove "usr/lib/*.so"
vmove "usr/lib/*.la"
vmove "usr/share/man/man1/*-config.1"
vcopy ${wrksrc}/PerlMagick usr/share/doc/GraphicsMagick*/
}
}
post_install(){
# license
vinstall ${wrksrc}/Copyright.txt 644 usr/share/licenses/${pkgname}
}