77 lines
1.8 KiB
Bash
77 lines
1.8 KiB
Bash
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="all ?x86"
|
|
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
|
|
}
|