From 430e0461fdc66642f07357e42e95e0fee4219120 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 20 May 2019 17:17:45 +0200 Subject: [PATCH] argtable, new recipe (#3848) --- dev-libs/argtable/argtable2-13.recipe | 76 +++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 dev-libs/argtable/argtable2-13.recipe diff --git a/dev-libs/argtable/argtable2-13.recipe b/dev-libs/argtable/argtable2-13.recipe new file mode 100644 index 000000000..9dff2ee7d --- /dev/null +++ b/dev-libs/argtable/argtable2-13.recipe @@ -0,0 +1,76 @@ +SUMMARY="An ANSI C command line parser" +DESCRIPTION=" Argtable is an ANSI C library for parsing GNU style command \ +line options with a minimum of fuss. It enables a program's command line \ +syntax to be defined in the source code as an array of argtable structs. \ +The command line is then parsed according to that specification and the \ +resulting values are returned in those same structs where they are accessible \ +to the main program." +HOMEPAGE="http://argtable.sourceforge.net/" +COPYRIGHT="1998-2001, 2003-2011 Stewart Heitmann" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://prdownloads.sourceforge.net/argtable/argtable2-$portVersion.tar.gz" +CHECKSUM_SHA256="8f77e8a7ced5301af6e22f47302fdbc3b1ff41f2b83c43c77ae5ca041771ddbf" + +ARCHITECTURES="x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="0.1.8" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + argtable2$secondaryArchSuffix = $portVersion + lib:libargtable2$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +PROVIDES_devel=" + argtable2${secondaryArchSuffix}_devel = $portVersion + devel:libargtable2$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + argtable2$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libintl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:awk + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + " + +defineDebugInfoPackage argtable2$secondaryArchSuffix \ + $libDir/libargtable2.so.$libVersion + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLib libargtable2 + fixPkgconfig + + packageEntries devel \ + $developDir \ + $manDir +} + +TEST() +{ + make check +}