1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= High-performance asynchronous HTTP client library
8 HOMEPAGE= https://serf.apache.org/
12 SITES[main]= APACHE/serf
13 DISTFILE[1]= serf-1.3.10.tar.bz2:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= apr1:dev:standard
23 BUILDRUN_DEPENDS= apr-util:primary:standard
26 USES= scons ssl:openssl11 cpe zlib expat iconv bdb
28 LICENSE= APACHE20:single
29 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
30 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
31 LICENSE_AWK= TERMS:"SERF_H"
32 LICENSE_SOURCE= TERMS:{{WRKSRC}}/serf.h
35 CPE_VENDOR= serf_project
36 FPC_EQUIVALENT= www/serf
38 MAKE_ARGS= APR={{LOCALBASE}}/bin/apr-1-config
39 APU={{LOCALBASE}}/bin/apu-1-config
40 OPENSSL={{OPENSSLBASE}}
43 INSTALL_REQ_TOOLCHAIN= yes
44 PLIST_SUB= SOVERSION=1.3.0
47 VAR_OPSYS[sunos]= CFLAGS=-D__EXTENSIONS__
48 CFLAGS=-I{{LOCALBASE}}/include/bsd
52 -e '/^Requires.private/s/(libssl|libcrypto)//g' \
53 -e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
54 ${WRKSRC}/build/serf.pc.in
57 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
59 [FILE:467:descriptions/desc.single]
60 The serf library is a high performance C-based HTTP client library built
61 upon the Apache Portable Runtime (APR) library. It is permissively
62 licensed under the Apache License, v2.
65 * multiplexed, asynchronous connections
67 * full HTTP pipelining
68 * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
69 * zero-copy support for increased throughput
71 Serf is the default client library of Apache Subversion and
76 be81ef08baa2516ecda76a77adf7def7bc3227eeb578b9a33b45f7b41dc064e6 147744 serf-1.3.10.tar.bz2
79 [FILE:175:manifests/plist.single]
87 libserf-1.so.%%SOMAJOR%%
88 libserf-1.so.%%SOVERSION%%
89 lib/pkgconfig/serf-1.pc
92 [FILE:1807:patches/patch-SConstruct]
93 --- SConstruct.orig 2023-05-18 09:33:55 UTC
95 @@ -74,6 +74,9 @@ else:
97 opts = Variables(files=[SAVED_CONFIG])
99 + RawListVariable('DESTDIR',
100 + 'Required *dummy*, without scons will stop with "Unknown variables: DESTDIR"',
102 PathVariable('PREFIX',
103 'Directory to install under',
105 @@ -162,6 +165,7 @@ if sys.platform == 'win32':
108 env = Environment(variables=opts,
110 tools=('default', 'textfile',),
113 @@ -224,8 +228,7 @@ incdir = '$PREFIX/include/serf-$MAJOR'
114 # Unfortunately we can't set the .dylib compatibility_version option separately
115 # from current_version, so don't use the PATCH level to avoid that build and
116 # runtime patch levels have to be identical.
117 -if sys.platform != 'sunos5':
118 - env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
119 +env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
121 LIBNAME = 'libserf-%d' % (MAJOR,)
122 if sys.platform != 'win32':
123 @@ -386,8 +389,8 @@ else:
124 ### there is probably a better way to run/capture output.
125 ### env.ParseConfig() may be handy for getting this stuff into the build
127 - apr_libs = os.popen(env.subst('$APR --link-libtool --libs')).read().strip()
128 - apu_libs = os.popen(env.subst('$APU --link-libtool --libs')).read().strip()
129 + apr_libs = os.popen(env.subst('$APR --libs')).read().strip()
130 + apu_libs = os.popen(env.subst('$APU --libs')).read().strip()
134 @@ -428,6 +431,8 @@ pkgconfig = env.Textfile('serf-%d.pc' %
136 env.Default(lib_static, lib_shared, pkgconfig)
141 conf = Configure(env)
145 [FILE:408:patches/patch-buckets_ssl__buckets.c]
146 --- buckets/ssl_buckets.c.orig 2023-05-18 09:33:55 UTC
147 +++ buckets/ssl_buckets.c
149 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
152 -#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
153 +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
154 #define USE_OPENSSL_1_1_API
159 [FILE:55:files/special.mk]
160 INSTALL_TARGET= install --install-sandbox=${STAGEDIR}