Files
haikuports/dev-libs/popt/popt-1.16.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

77 lines
1.6 KiB
Bash

SUMMARY="A command line option parsing library"
DESCRIPTION="This is the popt(3) command line option parsing library. While it \
is similiar to getopt(3), it contains a number of enhancements, including:
- popt is fully reentrant
- popt can parse arbitrary argv[] style arrays while getopt(3) makes this \
quite difficult
- popt allows users to alias command line arguments
- popt provides convience functions for parsing strings into argv[] style \
arrays"
LICENSE="MIT"
COPYRIGHT="1998-2010 Red Hat, Inc."
HOMEPAGE="http://rpm5.org/files/popt/"
REVISION="4"
SOURCE_URI="http://rpm5.org/files/popt/popt-1.16.tar.gz"
CHECKSUM_SHA256="e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8"
PATCHES="popt-1.16.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
popt$secondaryArchSuffix = $portVersion
lib:libpopt$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
popt${secondaryArchSuffix}_devel = $portVersion
devel:libpopt$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
popt$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
libtoolize -fci
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libpopt.la
prepareInstalledDevelLibs libpopt
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir/man3
}
TEST()
{
make check
}