mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
86 lines
2.2 KiB
Bash
86 lines
2.2 KiB
Bash
SUMMARY="C++ wrapper for libxml"
|
|
DESCRIPTION="libxml++ (a.k.a. libxmlplusplus) provides a C++ interface to XML files. \
|
|
It uses libxml2 to access the XML files.
|
|
|
|
libxml++-2.6, libxml++-3.0, libxml++-4.0 and libxml++-5.0 are different \
|
|
parallel-installable ABIs. This package contains libxml++-5.0."
|
|
HOMEPAGE="https://libxmlplusplus.sourceforge.net/"
|
|
COPYRIGHT="2004-2024 LibXML++"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="4"
|
|
SOURCE_URI="https://download.gnome.org/sources/libxml++/5.4/libxml++-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848"
|
|
SOURCE_FILENAME="libxml++-$portVersion.tar.xz"
|
|
SOURCE_DIR="libxml++-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libxml++5$secondaryArchSuffix = $portVersion
|
|
lib:libxml++_5.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libglibmm$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libxml++5${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libxml++_5.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libxml++5$secondaryArchSuffix == $portVersion base
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libglibmm$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libglibmm$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p buildmeson
|
|
|
|
# The "meson setup [options]" command uses setup as a folder?
|
|
# Still throws a warning about it though
|
|
meson buildmeson --prefix $prefix \
|
|
--libdir=$libDir \
|
|
--includedir=$includeDir \
|
|
--buildtype=release
|
|
|
|
ninja -C buildmeson
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C buildmeson install
|
|
|
|
mv $libDir/libxml++-5.0/include/libxml++config.h $includeDir/libxml++-5.0
|
|
rmdir $libDir/libxml++-5.0/include
|
|
|
|
prepareInstalledDevelLib libxml++-5.0
|
|
fixPkgconfig
|
|
|
|
sed -i 's|-I${libdir}/libxml++-5.0/include||g' $developLibDir/pkgconfig/libxml++-5.0.pc
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|