mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
106 lines
2.5 KiB
Bash
106 lines
2.5 KiB
Bash
SUMMARY="A validating XML parser written in a portable subset of C++"
|
|
DESCRIPTION="This library makes it easy to give your application the ability \
|
|
to read and write XML data. A shared library is provided for parsing, \
|
|
generating, manipulating, and validating XML documents using the DOM, SAX, \
|
|
and SAX2 APIs."
|
|
HOMEPAGE="https://xerces.apache.org/xerces-c/"
|
|
COPYRIGHT="1999-2025 The Apache Software Foundation"
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://dlcdn.apache.org//xerces/c/3/sources/xerces-c-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="ef752578587e26013a933f16d76305c9b43ca32f869e3d3426986e03efb01d64"
|
|
SOURCE_DIR="xerces-c-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
xerces_c$secondaryArchSuffix = $portVersion
|
|
lib:libxerces_c_3.3$secondaryArchSuffix
|
|
cmd:CreateDOMDocument$commandSuffix
|
|
cmd:DOMCount$commandSuffix
|
|
cmd:DOMPrint$commandSuffix
|
|
cmd:EnumVal$commandSuffix
|
|
cmd:MemParse$commandSuffix
|
|
cmd:PParse$commandSuffix
|
|
cmd:PSVIWriter$commandSuffix
|
|
cmd:Redirect$commandSuffix
|
|
cmd:SAX2Count$commandSuffix
|
|
cmd:SAX2Print$commandSuffix
|
|
cmd:SAXCount$commandSuffix
|
|
cmd:SAXPrint$commandSuffix
|
|
cmd:SCMPrint$commandSuffix
|
|
cmd:SEnumVal$commandSuffix
|
|
cmd:StdInParse$commandSuffix
|
|
cmd:XInclude$commandSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
xerces_c${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libxerces_c_3.3$secondaryArchSuffix
|
|
devel:libxerces_c$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
xerces_c$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix >= 3
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export LDFLAGS="-lnetwork -lbsd"
|
|
export CPPFLAGS="-D_BSD_SOURCE"
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install-strip
|
|
|
|
rm "$libDir"/libxerces-c.*a
|
|
|
|
prepareInstalledDevelLibs libxerces-c
|
|
fixPkgconfig
|
|
|
|
ln -s --relative $libDir/libxerces-c-3.3.so $developLibDir
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|