Files
haikuports/media-gfx/graphicsmagick/graphicsmagick-1.3.25.recipe
Jérôme Duval 1e18a2c307 graphicsmagick: bump version.
* enable shared libs and modules.
* switch to 16bit depth.
2016-12-01 23:48:10 +01:00

90 lines
2.8 KiB
Bash

SUMMARY="Collection of image processing tools"
DESCRIPTION="GraphicsMagick provides a set of command-line applications to manipulate\
image files. It is a fork of the ImageMagick project and therefore offers\
a similar set of features, but puts a larger emphasis on stability.
The tools support a large variety of image formats from the widely used\
jpeg, tiff, bmp or xpm to special-purpose formats such as fits or image\
formats found on some photo CDs. They can convert between formats,\
concatenate several images into one, annotate and distort them, create\
thumbnails or manipulate the colormap."
HOMEPAGE="http://www.graphicsmagick.org"
COPYRIGHT="2002-2014 GraphicsMagick Group"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/$portVersion/GraphicsMagick-$portVersion.tar.gz"
CHECKSUM_SHA256="1fae84925a50c1d0d6f64636ffc57b6458dc892e1f181ea5d6bf731936245005"
SOURCE_DIR="GraphicsMagick-$portVersion"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
graphicsmagick$secondaryArchSuffix = $portVersion
cmd:gm$secondaryArchSuffix
lib:libgraphicsmagick++$secondaryArchSuffix = 12.1.1 compat >= 12
lib:libgraphicsmagick$secondaryArchSuffix = 3.15.1 compat >= 3
lib:libgraphicsmagickwand$secondaryArchSuffix = 2.7.4 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
lib:libltdl$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
"
PROVIDES_devel="
graphicsmagick${secondaryArchSuffix}_devel
cmd:GraphicsMagick++_config$secondaryArchSuffix
cmd:GraphicsMagick_config$secondaryArchSuffix
cmd:GraphicsMagickWand_config$secondaryArchSuffix
devel:libGraphicsMagick++$secondaryArchSuffix = 12.1.1 compat >= 12
devel:libGraphicsMagick$secondaryArchSuffix = 3.15.1 compat >= 3
devel:libGraphicsMagickWand$secondaryArchSuffix = 2.7.4 compat >= 2
"
REQUIRES_devel="
graphicsmagick$secondaryArchSuffix == $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libtiff$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:liblcms2$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure --enable-shared --with-modules \
--with-quantum-depth=16
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libGraphicsMagick*.la
prepareInstalledDevelLibs libGraphicsMagick++ \
libGraphicsMagickWand \
libGraphicsMagick
fixPkgconfig
packageEntries devel \
$developDir \
$binDir/*-config
}