mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
111 lines
2.9 KiB
Bash
111 lines
2.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-2018 Gnome Project"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.gnome.org/sources/gdk-pixbuf/2.36/gdk-pixbuf-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="fff85cf48223ab60e3c3c8318e2087131b590fd6f1737e42cb3759a3b427a334"
|
|
SOURCE_DIR="gdk-pixbuf-$portVersion"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.3612.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gdk_pixbuf$secondaryArchSuffix = $portVersion
|
|
cmd:gdk_pixbuf_csource$secondaryArchSuffix = $portVersion
|
|
cmd:gdk_pixbuf_pixdata$secondaryArchSuffix = $portVersion
|
|
cmd:gdk_pixbuf_query_loaders$secondaryArchSuffix = $portVersion
|
|
cmd:gdk_pixbuf_thumbnailer$secondaryArchSuffix = $portVersion
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libffi$secondaryArchSuffix
|
|
lib:libgio_2.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
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix >= 0.4800
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
shared_mime_info$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:awk
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python2
|
|
"
|
|
|
|
defineDebugInfoPackage gdk_pixbuf$secondaryArchSuffix \
|
|
"$binDir"/gdk-pixbuf-csource \
|
|
"$binDir"/gdk-pixbuf-pixdata \
|
|
"$binDir"/gdk-pixbuf-query-loaders \
|
|
"$binDir"/gdk-pixbuf-thumbnailer \
|
|
"$libDir"/libgdk_pixbuf-2.0.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libgdk_pixbuf-2.0.la
|
|
rm $libDir/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
libgdk_pixbuf-2.0
|
|
fixPkgconfig
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $dataDir/gtk-doc $manDir
|
|
fi
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|