Files
haikuports/sys-libs/argp_standalone/argp_standalone-1.5.0.recipe

61 lines
1.6 KiB
Bash

SUMMARY="A argp library"
DESCRIPTION="This is a continuation of Niels Möller's work on an argp library for systems which \
don't provide one themselves (most non-GNU ones).
After noticing issues with executables built against argp-standalone 1.3, I decided to fork it \
and continue the effort.
This repository is the result of making a timeline with releases 1.0 to 1.3 obtained from \
https://www.lysator.liu.se/~nisse/misc/ of the original argp-standalone, copying files from glibc \
2.33 and fixing them up for compatibility, and finally some general clean up. I commited many \
trivial changes from the glibc version in order to make updating easier."
HOMEPAGE="https://github.com/argp-standalone/argp-standalone"
COPYRIGHT="2000-2004 Niels Möller
2021 Érico Nogueira
2022 Wolf Vollprecht"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/1.5.0.tar.gz"
CHECKSUM_SHA256="c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6"
SOURCE_DIR="argp-standalone-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
argp_standalone$secondaryArchSuffix = $portVersion
devel:libargp$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:meson
cmd:ninja
"
BUILD()
{
meson build --buildtype=release \
--libdir=$developLibDir \
--includedir=$includeDir
ninja -C build
}
INSTALL()
{
ninja -C build install
}
TEST()
{
ninja -C build test
}