serf: libressl support

This commit is contained in:
Alessio Sergi 2017-03-14 12:16:43 +01:00
parent 976aba27b7
commit dc5b161be0
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,11 @@
--- buckets/ssl_buckets.c.orig
+++ buckets/ssl_buckets.c
@@ -52,7 +52,7 @@
#define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
#endif
-#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#define USE_OPENSSL_1_1_API
#endif

View file

@ -1,8 +1,7 @@
# Template file for 'serf'
pkgname=serf
version=1.3.9
revision=1
build_style=scons
revision=2
hostmakedepends="scons apr-util-devel"
makedepends="zlib-devel gdbm-devel libressl-devel apr-util-devel"
short_desc="High-performance asynchronous HTTP client library"
@ -12,7 +11,11 @@ homepage="http://serf.apache.org"
distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
checksum=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
do_build() {
scons ${makejobs} CC="$CC" CFLAGS="$CFLAGS" PREFIX=/usr
}
do_install() {
vmkdir usr
scons PREFIX=${DESTDIR}/usr install
}