Files
haikuports/dev-libs/popt/popt-1.16.recipe
2015-07-02 11:13:12 -04:00

73 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-2002 Red Hat, Inc."
HOMEPAGE="http://rpm5.org/files/popt/"
SOURCE_URI="http://rpm5.org/files/popt/popt-1.16.tar.gz"
CHECKSUM_SHA256="e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PATCHES="popt-1.16.patchset"
PROVIDES="
popt$secondaryArchSuffix = $portVersion
lib:libpopt$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:libtoolize
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
libtoolize -fci
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libpopt
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir/man3
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
popt${secondaryArchSuffix}_devel = $portVersion
devel:libpopt$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
popt$secondaryArchSuffix == $portVersion base
"