curl: update recipe

* Add PATCHES.
* Change lib:libcurl version to match soname.
* Declare [BUILD_]REQUIRES more correctly.
* Build a separate curl_devel package.
This commit is contained in:
Ingo Weinhold
2013-06-16 22:03:07 +02:00
parent 0dd756390e
commit 132645d25e

View File

@@ -4,29 +4,30 @@ COPYRIGHT="1996-2012, Daniel Stenberg, <daniel@haxx.se>. All rights reserved."
LICENSE="Curl"
SRC_URI="http://curl.haxx.se/download/curl-7.26.0.tar.bz2"
CHECKSUM_MD5="bfa80f01b3d300359cfb4d409b6136a3"
REVISION="3"
REVISION="4"
ARCHITECTURES="x86_gcc2 ?x86"
# libcurl's SONAME is bumped whenever backward compat is broken, v7.16
# introduced SO-version 4, which is still current
PATCHES="curl-7.26.0.patch"
PROVIDES="
curl = $portVersion
cmd:curl = $portVersion compat >= 7.16
cmd:curl_config = $portVersion compat >= 7.16
lib:libcurl = $portVersion compat >= 7.16
lib:libcurl = 4.2.0 compat >= 4
"
REQUIRES="
haiku >= $haikuVersion
ca_root_certificates
lib:libssl
lib:libz
"
BUILD_REQUIRES="
$REQUIRES
cmd:autoconf
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
devel:libssl
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
@@ -69,6 +70,12 @@ INSTALL()
for h in docs/libcurl/*.html; do
install -c -m 644 "$h" "$developDocDir"
done
# devel package
packageEntries devel \
$binDir/curl-config \
$developDir \
$manDir/man3
}
TEST()
@@ -85,3 +92,14 @@ DESCRIPTION="
(Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume,
proxy tunneling and a busload of other useful tricks.
"
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
curl_devel = $portVersion
cmd:curl_config = $portVersion compat >= 7.16
devel:libcurl = 4.2.0 compat >= 4
"
REQUIRES_devel="
curl == $portVersion base
"