mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
140 lines
3.9 KiB
Bash
140 lines
3.9 KiB
Bash
SUMMARY="Bitmap rendering and loading support"
|
|
DESCRIPTION="The GdkPixBuf library provides a number of features:
|
|
* Reference counting for libart's ArtPixBuf structure.
|
|
* Image loading facilities.
|
|
* Rendering of a GdkPixBuf into various formats: drawables (windows, pixmaps), \
|
|
GdkRGB buffers.
|
|
* Fast scaling and compositing of pixbufs.
|
|
* Simple animation loading (ie. animated GIFs)"
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/GdkPixbuf"
|
|
COPYRIGHT="1999-2022 Gnome Project"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="6"
|
|
SOURCE_URI="https://download.gnome.org/sources/gdk-pixbuf/${portVersion%.*}/gdk-pixbuf-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="28f7958e7bf29a32d4e963556d241d0a41a6786582ff6a5ad11665e0347fc962"
|
|
SOURCE_DIR="gdk-pixbuf-$portVersion"
|
|
PATCHES="gdk_pixbuf-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="0.4200.9"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gdk_pixbuf$secondaryArchSuffix = $portVersion
|
|
cmd:gdk_pixbuf_csource$commandSuffix = $portVersion
|
|
cmd:gdk_pixbuf_pixdata$commandSuffix = $portVersion
|
|
cmd:gdk_pixbuf_query_loaders$commandSuffix = $portVersion
|
|
cmd:gdk_pixbuf_thumbnailer$commandSuffix = $portVersion
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
shared_mime_info$secondaryArchSuffix
|
|
lib:libffi$secondaryArchSuffix
|
|
lib:libgio_2.0$secondaryArchSuffix
|
|
lib:libgirepository_1.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gdk_pixbuf${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgdk_pixbuf_2.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gdk_pixbuf$secondaryArchSuffix == $portVersion base
|
|
devel:libffi$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libgirepository_1.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpcre$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
shared_mime_info$secondaryArchSuffix
|
|
devel:libffi$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgirepository_1.0$secondaryArchSuffix
|
|
devel:libgmodule_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpcre$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix >= 6
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
defineDebugInfoPackage gdk_pixbuf$secondaryArchSuffix \
|
|
"$commandBinDir"/gdk-pixbuf-csource \
|
|
"$commandBinDir"/gdk-pixbuf-pixdata \
|
|
"$commandBinDir"/gdk-pixbuf-query-loaders \
|
|
"$commandBinDir"/gdk-pixbuf-thumbnailer \
|
|
"$libDir"/libgdk_pixbuf-2.0.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
meson build \
|
|
--buildtype=debugoptimized \
|
|
--prefix=$prefix \
|
|
--bindir=$commandBinDir \
|
|
--datadir=$dataDir \
|
|
--includedir=$includeDir \
|
|
--libdir=$libDir \
|
|
--libexecdir=$libDir \
|
|
--localedir=$dataDir/locale \
|
|
-D installed_tests=false \
|
|
-D introspection=enabled \
|
|
-D man=false
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libgdk_pixbuf-2.0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
:
|
|
# tests fail/crash (also with previous version)
|
|
# meson test -C build --print-errorlogs
|
|
}
|