1SUMMARY="A fast, high-quality magnification filter designed for pixel art" 2DESCRIPTION="hqx ('hq' stands for 'high quality' and 'x' stands for \ 3magnification) is one of the pixel art scaling algorithms developed by \ 4Maxim Stepin." 5HOMEPAGE="https://github.com/grom358/hqx" 6COPYRIGHT="2003 Maxim Stepin 7 2010 Cameron Zemek" 8LICENSE="GNU LGPL v2.1" 9REVISION="1" 10SOURCE_URI="https://github.com/grom358/hqx/archive/refs/tags/v$portVersion.tar.gz" 11CHECKSUM_SHA256="5a44f1745b7fb0321c1d244822d79505df7cf85cfe383ee70b16f5bcd6803396" 12 13ARCHITECTURES="all !x86_gcc2" 14SECONDARY_ARCHITECTURES="x86" 15 16commandSuffix=$secondaryArchSuffix 17commandBinDir=$binDir 18if [ "$targetArchitecture" = x86_gcc2 ]; then 19 commandSuffix= 20 commandBinDir=$prefix/bin 21fi 22 23PROVIDES=" 24 hqx$secondaryArchSuffix = $portVersion 25 cmd:hqx$commandSuffix = $portVersion 26 lib:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1 27 " 28REQUIRES=" 29 haiku$secondaryArchSuffix 30 lib:libIL$secondaryArchSuffix 31 lib:libjasper$secondaryArchSuffix 32 lib:libjpeg$secondaryArchSuffix 33 lib:libmng$secondaryArchSuffix 34 lib:libpng16$secondaryArchSuffix 35 lib:libtiff$secondaryArchSuffix 36 " 37 38PROVIDES_devel=" 39 hqx${secondaryArchSuffix}_devel = $portVersion 40 devel:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1 41 " 42REQUIRES_devel=" 43 hqx$secondaryArchSuffix == $portVersion base 44 " 45 46BUILD_REQUIRES=" 47 haiku${secondaryArchSuffix}_devel 48 devel:libIL$secondaryArchSuffix 49 " 50BUILD_PREREQUIRES=" 51 cmd:aclocal 52 cmd:autoconf 53 cmd:awk 54 cmd:gcc$secondaryArchSuffix 55 cmd:libtoolize$secondaryArchSuffix 56 cmd:make 57 cmd:pkg_config$secondaryArchSuffix 58 " 59 60BUILD() 61{ 62 autoreconf -vfi 63 64 runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir --disable-static 65 66 make $jobArgs 67} 68 69INSTALL() 70{ 71 make install 72 73 prepareInstalledDevelLibs libhqx 74 75 fixPkgconfig 76 77 packageEntries devel $developDir 78} 79