Files
haikuports/media-gfx/hqx/hqx-1.2.recipe
2025-01-08 16:04:44 +01:00

79 lines
1.8 KiB
Bash

SUMMARY="A fast, high-quality magnification filter designed for pixel art"
DESCRIPTION="hqx ('hq' stands for 'high quality' and 'x' stands for \
magnification) is one of the pixel art scaling algorithms developed by \
Maxim Stepin."
HOMEPAGE="https://github.com/grom358/hqx"
COPYRIGHT="2003 Maxim Stepin
2010 Cameron Zemek"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="https://github.com/grom358/hqx/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="5a44f1745b7fb0321c1d244822d79505df7cf85cfe383ee70b16f5bcd6803396"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
hqx$secondaryArchSuffix = $portVersion
cmd:hqx$commandSuffix = $portVersion
lib:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libIL$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmng$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
"
PROVIDES_devel="
hqx${secondaryArchSuffix}_devel = $portVersion
devel:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES_devel="
hqx$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libIL$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir --disable-static
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libhqx
fixPkgconfig
packageEntries devel $developDir
}