87 lines
2.0 KiB
Bash
87 lines
2.0 KiB
Bash
SUMMARY="A collection of C functions implementing the http://oauth.net API"
|
|
DESCRIPTION="
|
|
liboauth provides functions to escape and encode stings according to \
|
|
OAuth specifications and offers high-level functionality built on top to sign \
|
|
requests or verify signatures using either NSS or OpenSSL for calculating \
|
|
the hash/signatures."
|
|
HOMEPAGE="http://liboauth.sourceforge.net/
|
|
https://github.com/x42/liboauth/"
|
|
COPYRIGHT="2007-2014 Robin Gareus"
|
|
LICENSE="GNU GPL v2
|
|
MIT"
|
|
REVISION="1"
|
|
srcGitRev="186fb14843c1bc98b70ece02c74b5696b3de9ce7"
|
|
SOURCE_URI="https://github.com/x42/liboauth/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="34bc990211c379712bf19952df8f800c4a6d411527c274e18f8c12f6fe4fe6a0"
|
|
SOURCE_DIR="liboauth-$srcGitRev"
|
|
PATCHES="liboauth-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
liboauth$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:liboauth$secondaryArchSuffix = 0.8.7 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
liboauth${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:liboauth$secondaryArchSuffix = 0.8.7 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
liboauth$secondaryArchSuffix == $portVersion base
|
|
devel:libssl$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/liboauth.la
|
|
|
|
prepareInstalledDevelLib liboauth
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$manDir/man3 \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|