Files
haikuports/x11-libs/pixman/pixman-0.42.2.recipe
kenmays cd61a6aad4 pixman: bumped to 0.42.2 (#8706)
* pixman: bumped to 0.42.2

* pixman: bumped to 0.42.2

* pixman: added libVersionCompat
2023-05-23 08:36:36 +02:00

75 lines
1.6 KiB
Bash

SUMMARY="A pixel-manipulation library for X and cairo"
DESCRIPTION="Pixman is a low-level software library for pixel manipulation, \
providing features such as image compositing and trapezoid rasterization. \
Important users of pixman are the cairo graphics library and the X server."
HOMEPAGE="https://cgit.freedesktop.org/pixman/"
COPYRIGHT="1994-2022 Free Software Foundation, Inc.
1987-1998 The Open Group
1987-1989 Digital Equipment Corporation
1999, 2004, 2008 Keith Packard
2004-2010 Red Hat, Inc.
2009-2010 Nokia Corporation
and many others"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://cairographics.org/releases/pixman-$portVersion.tar.gz"
CHECKSUM_SHA256="ea1480efada2fd948bc75366f7c349e1c96d3297d09a3fe62626e38e234a625e"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.42.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
pixman$secondaryArchSuffix = $portVersion
lib:libpixman_1$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
pixman${secondaryArchSuffix}_devel = $portVersion
devel:libpixman_1$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
pixman$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libpixman-1.la
prepareInstalledDevelLibs libpixman-1
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}