mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
80 lines
1.8 KiB
Bash
80 lines
1.8 KiB
Bash
SUMMARY="Full-featured Jabber/XMPP client library"
|
|
DESCRIPTION="Rock-solid, full-featured Jabber/XMPP client library, written in clean ANSI C++."
|
|
HOMEPAGE="https://camaya.net/gloox/"
|
|
COPYRIGHT="2002-2023 Jakob Schröter"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="http://camaya.net/download/gloox-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="591bd12c249ede0b50a1ef6b99ac0de8ef9c1ba4fd2e186f97a740215cc5966c"
|
|
PATCHES="gloox-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
libVersion="18.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gloox$secondaryArchSuffix = $portVersion
|
|
lib:libgloox$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gloox${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:gloox_config$secondaryArchSuffix
|
|
devel:libgloox$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gloox$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage gloox$secondaryArchSuffix \
|
|
$libDir/libgloox.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
CFLAGS="-D_BSD_SOURCE" CXXFLAGS="-D_BSD_SOURCE" runConfigure ./configure --enable-xhtmlim
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libgloox.la $libDir/libgloox.a
|
|
|
|
# prepare development lib links
|
|
prepareInstalledDevelLib libgloox
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel $developDir $binDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|