1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= High-performance asynchronous HTTP client library
9 HOMEPAGE= https://serf.apache.org/
13 SITES[main]= APACHE/serf
14 DISTFILE[1]= serf-1.3.9.tar.bz2:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= apr1:dev:standard
24 BUILDRUN_DEPENDS= apr-util:primary:standard
27 USES= scons ssl:openssl11 cpe zlib expat iconv bdb
29 LICENSE= APACHE20:single
30 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
31 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
32 LICENSE_AWK= TERMS:"SERF_H"
33 LICENSE_SOURCE= TERMS:{{WRKSRC}}/serf.h
36 CPE_VENDOR= serf_project
37 FPC_EQUIVALENT= www/serf
39 MAKE_ARGS= APR={{LOCALBASE}}/bin/apr-1-config
40 APU={{LOCALBASE}}/bin/apu-1-config
41 OPENSSL={{OPENSSLBASE}}
44 INSTALL_REQ_TOOLCHAIN= yes
45 PLIST_SUB= SOVERSION=1.3.0
48 VAR_OPSYS[sunos]= CFLAGS=-D__EXTENSIONS__
49 CFLAGS=-I{{LOCALBASE}}/include/bsd
53 -e '/^Requires.private/s/(libssl|libcrypto)//g' \
54 -e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
55 ${WRKSRC}/build/serf.pc.in
58 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
60 [FILE:467:descriptions/desc.single]
61 The serf library is a high performance C-based HTTP client library built
62 upon the Apache Portable Runtime (APR) library. It is permissively
63 licensed under the Apache License, v2.
66 * multiplexed, asynchronous connections
68 * full HTTP pipelining
69 * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
70 * zero-copy support for increased throughput
72 Serf is the default client library of Apache Subversion and
77 549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc 145132 serf-1.3.9.tar.bz2
80 [FILE:175:manifests/plist.single]
88 libserf-1.so.%%SOMAJOR%%
89 libserf-1.so.%%SOVERSION%%
90 lib/pkgconfig/serf-1.pc
93 [FILE:2546:patches/patch-SConstruct]
94 --- SConstruct.orig 2015-09-17 12:46:24 UTC
96 @@ -74,6 +74,9 @@ else:
98 opts = Variables(files=[SAVED_CONFIG])
100 + RawListVariable('DESTDIR',
101 + 'Required *dummy*, without scons will stop with "Unknown variables: DESTDIR"',
103 PathVariable('PREFIX',
104 'Directory to install under',
106 @@ -153,6 +156,7 @@ if sys.platform == 'win32':
109 env = Environment(variables=opts,
111 tools=('default', 'textfile',),
114 @@ -166,7 +170,7 @@ env.Append(BUILDERS = {
115 match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
116 'SERF_MINOR_VERSION ([0-9]+).*'
117 'SERF_PATCH_VERSION ([0-9]+)',
118 - env.File('serf.h').get_contents(),
119 + env.File('serf.h').get_contents().decode('utf-8'),
121 MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
122 env.Append(MAJOR=str(MAJOR))
123 @@ -183,7 +187,7 @@ CALLOUT_OKAY = not (env.GetOption('clean
125 unknown = opts.UnknownVariables()
127 - print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
128 + print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
130 apr = str(env['APR'])
131 apu = str(env['APU'])
132 @@ -215,8 +219,7 @@ incdir = '$PREFIX/include/serf-$MAJOR'
133 # Unfortunately we can't set the .dylib compatibility_version option separately
134 # from current_version, so don't use the PATCH level to avoid that build and
135 # runtime patch levels have to be identical.
136 -if sys.platform != 'sunos5':
137 - env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
138 +env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
140 LIBNAME = 'libserf-%d' % (MAJOR,)
141 if sys.platform != 'win32':
142 @@ -364,8 +367,8 @@ else:
143 ### there is probably a better way to run/capture output.
144 ### env.ParseConfig() may be handy for getting this stuff into the build
146 - apr_libs = os.popen(env.subst('$APR --link-libtool --libs')).read().strip()
147 - apu_libs = os.popen(env.subst('$APU --link-libtool --libs')).read().strip()
148 + apr_libs = os.popen(env.subst('$APR --libs')).read().strip()
149 + apu_libs = os.popen(env.subst('$APU --libs')).read().strip()
153 @@ -406,6 +409,8 @@ pkgconfig = env.Textfile('serf-%d.pc' %
155 env.Default(lib_static, lib_shared, pkgconfig)
160 conf = Configure(env)
164 [FILE:408:patches/patch-buckets_ssl__buckets.c]
165 --- buckets/ssl_buckets.c.orig 2016-06-30 15:45:07 UTC
166 +++ buckets/ssl_buckets.c
168 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
171 -#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
172 +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
173 #define USE_OPENSSL_1_1_API
178 [FILE:55:files/special.mk]
179 INSTALL_TARGET= install --install-sandbox=${STAGEDIR}