mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
argtable, new recipe (#3848)
This commit is contained in:
committed by
Jérôme Duval
parent
0048eb7c28
commit
430e0461fd
76
dev-libs/argtable/argtable2-13.recipe
Normal file
76
dev-libs/argtable/argtable2-13.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user