mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
zimg, new recipe (#7053)
This commit is contained in:
14
media-libs/zimg/licenses/WTFPL
Normal file
14
media-libs/zimg/licenses/WTFPL
Normal file
@@ -0,0 +1,14 @@
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
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.
|
||||
|
||||
71
media-libs/zimg/zimg-3.0.4.recipe
Normal file
71
media-libs/zimg/zimg-3.0.4.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user