mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
100 lines
2.4 KiB
Bash
100 lines
2.4 KiB
Bash
SUMMARY="D-Bus bindings for glib"
|
|
DESCRIPTION="A deprecated D-Bus binding for GLib."
|
|
HOMEPAGE="https://dbus.freedesktop.org/releases/dbus-glib/"
|
|
COPYRIGHT="2003, 2004, 2005 Red Hat, Inc.
|
|
2005 Nokia"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a"
|
|
SOURCE_DIR="dbus-glib-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/bash_completion.d/dbus-bash-completion.sh keep-old
|
|
"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="2.3.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
dbus_glib$secondaryArchSuffix = $portVersionCompat
|
|
cmd:dbus_binding_tool$commandSuffix = $portVersion
|
|
lib:libdbus_glib_1$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libdbus_1$secondaryArchSuffix
|
|
lib:libexpat$secondaryArchSuffix
|
|
lib:libgio_2.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
dbus_glib${secondaryArchSuffix}_devel = $portVersionCompat
|
|
devel:libdbus_glib_1$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
dbus_glib$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libdbus_1$secondaryArchSuffix
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:dbus_run_session
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
defineDebugInfoPackage dbus_glib$secondaryArchSuffix \
|
|
"$libDir"/libdbus-glib-1.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
LDFLAGS="-lnetwork" runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib \
|
|
libdbus-glib-1
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|