mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
95 lines
2.5 KiB
Bash
95 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-2016 The Apache Software Foundation"
|
|
LICENSE="Apache v2"
|
|
REVISION="3"
|
|
SOURCE_URI="http://apache.mirrors.tds.net/xerces/c/3/sources/xerces-c-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="9408f12c1628ecf80730bedbe8b2caad810edd01bb4c66f77b60c873e8cc6891"
|
|
SOURCE_DIR="xerces-c-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
xerces_c$secondaryArchSuffix = $portVersion compat >= 3.1
|
|
lib:libxerces_c_3.1$secondaryArchSuffix = 3.1
|
|
cmd:CreateDOMDocument$secondaryArchSuffix
|
|
cmd:DOMCount$secondaryArchSuffix
|
|
cmd:DOMPrint$secondaryArchSuffix
|
|
cmd:EnumVal$secondaryArchSuffix
|
|
cmd:MemParse$secondaryArchSuffix
|
|
cmd:PParse$secondaryArchSuffix
|
|
cmd:PSVIWriter$secondaryArchSuffix
|
|
cmd:Redirect$secondaryArchSuffix
|
|
cmd:SAX2Count$secondaryArchSuffix
|
|
cmd:SAX2Print$secondaryArchSuffix
|
|
cmd:SAXCount$secondaryArchSuffix
|
|
cmd:SAXPrint$secondaryArchSuffix
|
|
cmd:SCMPrint$secondaryArchSuffix
|
|
cmd:SEnumVal$secondaryArchSuffix
|
|
cmd:StdInParse$secondaryArchSuffix
|
|
cmd:XInclude$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
xerces_c${secondaryArchSuffix}_devel = $portVersion compat >= 3.1
|
|
devel:libxerces_c_3.1$secondaryArchSuffix = 3.1
|
|
devel:libxerces_c$secondaryArchSuffix = 3.1
|
|
"
|
|
REQUIRES_devel="
|
|
xerces_c$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:autoreconf
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
LDFLAGS="-lnetwork -lbsd" \
|
|
CFLAGS="-D_BSD_SOURCE" \
|
|
runConfigure ./configure
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install-strip
|
|
|
|
prepareInstalledDevelLibs libxerces-c
|
|
fixPkgconfig
|
|
ln -s --relative $libDir/libxerces-c-3.1.so $developLibDir
|
|
rm $developLibDir/libxerces-c.la
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|