Files
haikuports/sys-libs/libhx/libhx-3.26.recipe
2023-04-25 15:53:13 +02:00

82 lines
2.0 KiB
Bash

SUMMARY="Common structures and low-level operations"
DESCRIPTION="A C library (with some C++ bindings available) that provides data \
structures and functions commonly needed, such as maps, deques, linked lists, \
string formatting and autoresizing, option and config file parsing, type \
checking casts and more.
libHX aids in quickly writing up C and C++ data processing programs, by \
consolidating tasks that often happen to be open-coded, such as (simple) \
config file reading, option parsing, directory traversal, and others, into a \
library. The focus is on reducing the amount of time (and secondarily, the \
amount of code) a developer has to spend for otherwise implementing such."
HOMEPAGE="https://inai.de/projects/libhx/"
COPYRIGHT="2007-2021 Jan Engelhardt"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://inai.de/files/libhx/libHX-$portVersion.tar.xz"
CHECKSUM_SHA256="67e2dd0b5b888ab8c02362d043ac2d4dd26eb5bb976064603b57b3e3a7adb209"
SOURCE_DIR="libHX-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="32.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libhx$secondaryArchSuffix = $portVersion
lib:libHX$secondaryArchSuffix = $libVersionCompat
lib:libHX_rtcheck$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libhx${secondaryArchSuffix}_devel = $portVersion
devel:libHX$secondaryArchSuffix = $libVersionCompat
devel:libHX_rtcheck$secondaryArchSuffix
"
REQUIRES_devel="
libhx$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
export LIBS="-lnetwork"
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# removee libtool files
rm -f $libDir/*.la
prepareInstalledDevelLibs \
libHX libHX_rtcheck
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}