mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
73 lines
1.7 KiB
Bash
73 lines
1.7 KiB
Bash
SUMMARY="A simple C/C++ configuration file library"
|
|
DESCRIPTION="Libconfig is a simple library for processing structured \
|
|
configuration files. Libconfig is very compact, a fraction of the size of the \
|
|
expat XML parser library. This makes it well-suited for memory constrained \
|
|
systems like handheld devices."
|
|
HOMEPAGE="http://www.hyperrealm.com/libconfig/"
|
|
COPYRIGHT="2005-2015 Mark A Lindner"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/hyperrealm/libconfig/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="18739792eb463d73525d7aea9b0a48b14106fae1cfec09aedc668d8c1079adf1"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libconfig$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libconfig$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
lib:libconfig++$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libconfig${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:libconfig$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
devel:libconfig++$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
"
|
|
REQUIRES_devel="
|
|
libconfig$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison
|
|
cmd:flex
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
ACLOCAL=true AUTOCONF=true AUTOMAKE=true MAKEINFO=true AUTOHEADER=true \
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool files
|
|
rm -f $libDir/libconfig*.la
|
|
|
|
prepareInstalledDevelLibs libconfig libconfig++
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check test
|
|
}
|