mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
75 lines
1.7 KiB
Bash
75 lines
1.7 KiB
Bash
SUMMARY="An XML processing library"
|
|
DESCRIPTION="Pugixml is a C++ XML processing library, which consists of a \
|
|
DOM-like interface with rich traversal/modification capabilities, an \
|
|
extremely fast XML parser which constructs the DOM tree from an XML \
|
|
file/buffer, and an XPath 1.0 implementation for complex data-driven tree \
|
|
queries. Full Unicode support is also available, with Unicode interface \
|
|
variants and conversions between different Unicode encodings (which \
|
|
happen automatically during parsing/saving)."
|
|
HOMEPAGE="https://pugixml.org/"
|
|
COPYRIGHT="2006-2018 Arseny Kapoulkine"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/zeux/pugixml/releases/download/v${portVersion}/pugixml-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d156d35b83f680e40fd6412c4455fdd03544339779134617b9b28d19e11fdba6"
|
|
SOURCE_DIR="pugixml-$portVersion"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
pugixml$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libpugixml$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
pugixml${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpugixml$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
pugixml$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage pugixml$secondaryArchSuffix \
|
|
$libDir/libpugixml.so.$portVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake . \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
$cmakeDirArgs
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libpugixml
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|