From 033eca22b415e51cb88c67a82b611917e39e3a4c Mon Sep 17 00:00:00 2001 From: Calvin Hill Date: Thu, 1 Dec 2016 18:04:02 +0000 Subject: [PATCH] libconfig: create recipe. (#849) --- dev-libs/libconfig/libconfig-1.5.recipe | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 dev-libs/libconfig/libconfig-1.5.recipe diff --git a/dev-libs/libconfig/libconfig-1.5.recipe b/dev-libs/libconfig/libconfig-1.5.recipe new file mode 100644 index 000000000..48cf7f6aa --- /dev/null +++ b/dev-libs/libconfig/libconfig-1.5.recipe @@ -0,0 +1,74 @@ +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="http://www.hyperrealm.com/libconfig/libconfig-$portVersion.tar.gz" +CHECKSUM_SHA256="e31daa390d8e4461c8830512fe2e13ba1a3d6a02a2305a02429eec61e68703f6" + +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: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() +{ + 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 +}