1SUMMARY="Scaling, colorspace conversion, and dithering library"
2DESCRIPTION="The "z" library implements the commonly required image processing basics of scaling, \
3colorspace conversion, and depth conversion. A simple API enables conversion between any supported \
4formats to operate with minimal knowledge from the programmer.
5All library routines were designed from the ground-up with correctness, flexibility, and \
6thread-safety as first priorities.
7Allocation, buffering, and I/O are cleanly separated from processing, allowing the programmer to \
8adapt /"z/" to many scenarios."
9HOMEPAGE="https://github.com/sekrit-twc/zimg"
10COPYRIGHT="2022 sekrit-twc"
11LICENSE="WTFPL"
12REVISION="1"
13SOURCE_URI="$HOMEPAGE/archive/refs/tags/release-$portVersion.tar.gz"
14CHECKSUM_SHA256="a9a0226bf85e0d83c41a8ebe4e3e690e1348682f6a2a7838f1b8cbff1b799bcf"
15SOURCE_DIR="zimg-release-$portVersion"
16
17ARCHITECTURES="all !x86_gcc2"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	zimg$secondaryArchSuffix = $portVersion
22	lib:libzimg$secondaryArchSuffix = $portVersion
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	"
27
28PROVIDES_devel="
29	zimg${secondaryArchSuffix}_devel = $portVersion
30	devel:libzimg$secondaryArchSuffix = $portVersion
31	"
32REQUIRES_devel="
33	zimg$secondaryArchSuffix == $portVersion base
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	"
39BUILD_PREREQUIRES="
40	cmd:aclocal
41	cmd:autoreconf
42	cmd:gcc$secondaryArchSuffix
43	cmd:libtoolize$secondaryArchSuffix
44	cmd:make
45	"
46
47BUILD()
48{
49	./autogen.sh
50	runConfigure ./configure --disable-static
51	make $jobArgs
52}
53
54INSTALL()
55{
56	make install
57
58	#remove libtool file
59	rm $libDir/*.la
60
61	prepareInstalledDevelLib libzimg
62	fixPkgconfig
63
64	packageEntries devel \
65		$developDir
66}
67
68TEST()
69{
70	make check
71}
72