mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
new ports: tio + its dependency inih (#7948)
* inih: new port, version r56 * tio: new port, version 2.5
This commit is contained in:
60
dev-libs/inih/inih-r56.recipe
Normal file
60
dev-libs/inih/inih-r56.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user