diff --git a/media-libs/zimg/licenses/WTFPL b/media-libs/zimg/licenses/WTFPL new file mode 100644 index 000000000..5a8e33254 --- /dev/null +++ b/media-libs/zimg/licenses/WTFPL @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/media-libs/zimg/zimg-3.0.4.recipe b/media-libs/zimg/zimg-3.0.4.recipe new file mode 100644 index 000000000..391a8ad12 --- /dev/null +++ b/media-libs/zimg/zimg-3.0.4.recipe @@ -0,0 +1,71 @@ +SUMMARY="Scaling, colorspace conversion, and dithering library" +DESCRIPTION="The "z" library implements the commonly required image processing basics of scaling, \ +colorspace conversion, and depth conversion. A simple API enables conversion between any supported \ +formats to operate with minimal knowledge from the programmer. +All library routines were designed from the ground-up with correctness, flexibility, and \ +thread-safety as first priorities. +Allocation, buffering, and I/O are cleanly separated from processing, allowing the programmer to \ +adapt /"z/" to many scenarios." +HOMEPAGE="https://github.com/sekrit-twc/zimg" +COPYRIGHT="2022 sekrit-twc" +LICENSE="WTFPL" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/refs/tags/release-$portVersion.tar.gz" +CHECKSUM_SHA256="219d1bc6b7fde1355d72c9b406ebd730a4aed9c21da779660f0a4c851243e32f" +SOURCE_DIR="zimg-release-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + zimg$secondaryArchSuffix = $portVersion + lib:libzimg$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + zimg${secondaryArchSuffix}_devel = $portVersion + devel:libzimg$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + zimg$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + #remove libtool file + rm $libDir/*.la + + prepareInstalledDevelLib libzimg + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}