mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
SUMMARY="Lightweight C++ command line option parser"
|
|
DESCRIPTION="This is a lightweight C++ option parser library, supporting the standard GNU style \
|
|
syntax for options."
|
|
HOMEPAGE="https://github.com/jarro2783/cxxopts"
|
|
COPYRIGHT="2014 Jarryd Beck"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9f43fa972532e5df6c5fd5ad0f5bac606cdec541ccaf1732463d8070bbb7f03b"
|
|
SOURCE_FILENAME="simdjson-v$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
cxxopts$secondaryArchSuffix = $portVersion
|
|
cxxopts${secondaryArchSuffix}_devel = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCXXOPTS_CMAKE_DIR=$libDir/cmake/cxxopts
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
fixPkgconfig
|
|
|
|
sed -e "s|\(\${_IMPORT_PREFIX}\)/include|\1/$relativeIncludeDir|" -i \
|
|
"$libDir"/cmake/cxxopts/cxxopts-targets.cmake
|
|
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure
|
|
}
|