new ports: tio + its dependency inih (#7948)

* inih: new port, version r56

* tio: new port, version 2.5
This commit is contained in:
Peter van Dijk
2023-03-20 20:40:27 +01:00
committed by GitHub
parent 6e13f8b688
commit e0bca2c0f8
3 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
SUMMARY="Simple .INI file parser in C, good for embedded systems"
DESCRIPTION="a simple .INI file parser written in C. It's only a couple of pages of code, and it \
was designed to be small and simple"
HOMEPAGE="https://github.com/benhoyt/inih"
COPYRIGHT="2009 Ben Hoyt"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/benhoyt/inih/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="4f2ba6bd122d30281a8c7a4d5723b7af90b56aa828c0e88256d7fceda03a491a"
SOURCE_FILENAME="inih-$portVersion.tar.gz"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
inih$secondaryArchSuffix = $portVersion
lib:libinih$secondaryArchSuffix = $portVersion
lib:libINIReader$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
inih${secondaryArchSuffix}_devel = $portVersion
devel:libinih$secondaryArchSuffix = $portVersion
devel:libINIReader$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
inih$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:meson
cmd:ninja
"
BUILD()
{
meson build --buildtype=release \
--prefix=$prefix --datadir=$dataDir \
--includedir=$includeDir --libdir=$libDir \
--sysconfdir=$settingsDir
ninja -C build
}
INSTALL()
{
ninja -C build install
prepareInstalledDevelLibs libinih libINIReader
fixPkgconfig
packageEntries devel \
$developDir
}