Files
haikuports/dev-libs/libconfig/libconfig-1.7.1.recipe
Jerome Duval 409b5225c2 libconfig: bump version.
SONAME change.
2017-11-20 20:55:21 +01:00

77 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="https://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="d288e6ae817f4ef78df43cdb2647f768dc97899ee82fcc41f857e8eb9fd7fbdb"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
libconfig$secondaryArchSuffix = $portVersion
lib:libconfig$secondaryArchSuffix = 11.0.1 compat >= 11
lib:libconfig++$secondaryArchSuffix = 11.0.1 compat >= 11
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libconfig${secondaryArchSuffix}_devel = $portVersion
devel:libconfig$secondaryArchSuffix = 11.0.1 compat >= 11
devel:libconfig++$secondaryArchSuffix = 11.0.1 compat >= 11
"
REQUIRES_devel="
libconfig$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:bison
cmd:flex
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
MAKEINFO=true \
runConfigure ./configure --disable-dependency-tracking
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
}