mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
99 lines
2.9 KiB
Bash
99 lines
2.9 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-2018 GraphicsMagick Group"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/$portVersion/GraphicsMagick-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="76321c5c3c78937ac9bdfb037af6da565d2e0022b7a55cacef5f262d938825b7"
|
|
SOURCE_DIR="GraphicsMagick-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
graphicsmagick$secondaryArchSuffix = $portVersion
|
|
cmd:gm$secondaryArchSuffix
|
|
lib:libGraphicsMagick$secondaryArchSuffix = 3.19.0 compat >= 3
|
|
lib:libGraphicsMagick++$secondaryArchSuffix = 12.4.0 compat >= 12
|
|
lib:libGraphicsMagickWand$secondaryArchSuffix = 2.9.1 compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
lib:libltdl$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
graphicsmagick${secondaryArchSuffix}_devel
|
|
cmd:GraphicsMagick++_config$secondaryArchSuffix
|
|
cmd:GraphicsMagick_config$secondaryArchSuffix
|
|
cmd:GraphicsMagickWand_config$secondaryArchSuffix
|
|
devel:libGraphicsMagick$secondaryArchSuffix = 3.19.0 compat >= 3
|
|
devel:libGraphicsMagick++$secondaryArchSuffix = 12.4.0 compat >= 12
|
|
devel:libGraphicsMagickWand$secondaryArchSuffix = 2.9.1 compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
graphicsmagick$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage graphicsmagick$secondaryArchSuffix \
|
|
$libDir/libGraphicsMagick.so.3.19.0 \
|
|
$libDir/libGraphicsMagickWand.so.2.9.1
|
|
|
|
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
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|