mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
PugiXML: new recipe (#1830)
* PugiXML: new recipe * version fix * PugiXML: debuginfo * Arch cleanup
This commit is contained in:
77
dev-libs/pugixml/pugixml-1.8.1.recipe
Normal file
77
dev-libs/pugixml/pugixml-1.8.1.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
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-2016 Arseny Kapoulkine"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zeux/pugixml/releases/download/v1.8.1/pugixml-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="00d974a1308e85ca0677a981adc1b2855cb060923181053fb0abf4e2f37b8f39"
|
||||
SOURCE_DIR="pugixml-1.8"
|
||||
|
||||
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:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage pugixml$secondaryArchSuffix \
|
||||
$libDir/libpugixml.so.1.8
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake . \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
make ${jobArgs}
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# move include dir to correct location
|
||||
mkdir -p $(dirname $includeDir)
|
||||
mv $prefix/include $includeDir
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs libpugixml
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user