0
0
Fork 0
haikuports/dev-libs/atk/atk-2.32.0.recipe

94 lines
2.3 KiB
Bash

SUMMARY="GTK+ & GNOME Accessibility Toolkit"
DESCRIPTION="Provides the set of accessibility interface that are implemented \
by other toolkits and applications. Using the ATK interfaces, accessibility \
tools have full access to view and control running applications."
HOMEPAGE="https://developer.gnome.org/atk/"
COPYRIGHT="2001-2003, 2006-2007 Sun Microsystems Inc.
2009 Novell, Inc.
2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2012-2018 ATK Team
2014 SUSE LLC."
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://ftp.gnome.org/pub/GNOME/sources/atk/${portVersion%.*}/atk-$portVersion.tar.xz"
CHECKSUM_SHA256="cb41feda7fe4ef0daa024471438ea0219592baf7c291347e5a858bb64e4091cc"
PATCHES="atk-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.23209.1"
libVersionCompat="$libVersion compat >= 0"
PROVIDES="
atk$secondaryArchSuffix = $portVersion
lib:libatk_1.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
# lib:libgirepository_1.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
atk${secondaryArchSuffix}_devel = $portVersion
devel:libatk_1.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
atk$secondaryArchSuffix == $portVersion base
devel:libglib_2.0$secondaryArchSuffix
devel:libgobject_2.0$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
setuptools_python
# devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
cmd:python
"
defineDebugInfoPackage atk$secondaryArchSuffix \
"$libDir"/libatk-1.0.so.$libVersion
BUILD()
{
meson --buildtype=release --prefix=$prefix \
--libdir=$libDir --includedir=$includeDir \
--localedir=$dataDir/locale --datadir=$dataDir \
_build .
ninja -C _build $jobArgs
}
INSTALL()
{
ninja -C _build install
prepareInstalledDevelLib libatk-1.0
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
cd _build/tests
./teststateset
./testrelation
./testrole
./testvalue
./testdocument
}