Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ca5163c5fd2d
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d82c48f011c9
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 25, 2021

  1. Copy the full SHA
    d82c48f View commit details
Showing with 19 additions and 15 deletions.
  1. +19 −15 dev-libs/pugixml/{pugixml-1.9.recipe → pugixml-1.11.4.recipe}
Original file line number Diff line number Diff line change
@@ -3,64 +3,68 @@ 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 \
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"
COPYRIGHT="2006-2021 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"
CHECKSUM_SHA256="8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716"

ARCHITECTURES="?x86_gcc2 x86 x86_64"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"

libVersion="1.11"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"

PROVIDES="
pugixml$secondaryArchSuffix = $portVersion compat >= 1
lib:libpugixml$secondaryArchSuffix
pugixml$secondaryArchSuffix = $portVersion
lib:libpugixml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"

PROVIDES_devel="
pugixml${secondaryArchSuffix}_devel = $portVersion
devel:libpugixml$secondaryArchSuffix
devel:libpugixml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
pugixml$secondaryArchSuffix == $portVersion base
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"

defineDebugInfoPackage pugixml$secondaryArchSuffix \
$libDir/libpugixml.so.$portVersion
$libDir/libpugixml.so.$libVersion

BUILD()
{
cmake . \
cmake -B build -S . \
-DBUILD_SHARED_LIBS=ON \
$cmakeDirArgs

make $jobArgs
make -C build $jobArgs
}

INSTALL()
{
make install
make -C build install

# prepare develop/lib
prepareInstalledDevelLibs libpugixml
prepareInstalledDevelLib libpugixml
fixPkgconfig

# devel package
packageEntries devel \
@@ -70,5 +74,5 @@ INSTALL()

TEST()
{
make test
make -C build test
}