void-packages/srcpkgs/GraphicsMagick/template

52 lines
1.9 KiB
Bash

# Template file for 'GraphicsMagick'
pkgname=GraphicsMagick
version=1.3.40
revision=1
build_style=gnu-configure
configure_args="--with-quantum-depth=16 --with-gs-font-dir=/usr/share/fonts/Type1
--with-modules --with-perl --without-jp2 --enable-shared --disable-static"
hostmakedepends="pkg-config perl"
# libraries listed in GraphicsMagick++-config --libs
_develdepends="lcms2-devel freetype-devel libXext-devel libSM-devel libICE-devel
libX11-devel liblzma-devel bzip2-devel zlib-devel libltdl-devel libgomp-devel"
makedepends="perl libjpeg-turbo-devel libpng-devel tiff-devel libwebp-devel
fontconfig-devel libXt-devel libxml2-devel libwmf-devel ghostscript-devel
${_develdepends}"
depends="ghostscript"
short_desc="GraphicsMagick Image Processing System"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.graphicsmagick.org/"
changelog="https://sourceforge.net/p/graphicsmagick/code/ci/default/tree/NEWS.txt?format=raw"
distfiles="${SOURCEFORGE_SITE}/graphicsmagick/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
checksum=88ddbf76e1ced2ab6bcd743207ee308865de1afb4b645d460924dcc8bfc0ee85
keep_libtool_archives=yes
post_install() {
vlicense Copyright.txt LICENSE
}
libgraphicsmagick_package() {
short_desc="GraphicsMagick image manipulation libraries"
pkg_install() {
vmove "usr/lib/libGraphicsMagick*.so.*"
vmove "usr/lib/GraphicsMagick*"
vmove "usr/share/GraphicsMagick*"
}
}
libgraphicsmagick-devel_package() {
short_desc="GraphicsMagick image manipulation libraries - development files"
depends="libgraphicsmagick>=${version}_${revision} ${_develdepends}"
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*/
vdoc "${FILESDIR}/README.voidlinux"
}
}