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 BUILDRUN_DEPENDS= apr-util:single:standard
24 USES= scons ssl:openssl11 cpe zlib
26 LICENSE= APACHE20:single
27 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
28 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
29 LICENSE_AWK= TERMS:"SERF_H"
30 LICENSE_SOURCE= TERMS:{{WRKSRC}}/serf.h
33 CPE_VENDOR= serf_project
34 FPC_EQUIVALENT= www/serf
36 MAKE_ARGS= APR={{LOCALBASE}}/bin/apr-1-config
37 APU={{LOCALBASE}}/bin/apu-1-config
38 OPENSSL={{OPENSSLBASE}}
41 INSTALL_REQ_TOOLCHAIN= yes
42 PLIST_SUB= SOVERSION=1.3.0
45 VAR_OPSYS[sunos]= CFLAGS=-D__EXTENSIONS__
46 CFLAGS=-I{{LOCALBASE}}/include/bsd
50 -e '/^Requires.private/s/(libssl|libcrypto)//g' \
51 -e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
52 ${WRKSRC}/build/serf.pc.in
55 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
57 [FILE:467:descriptions/desc.single]
58 The serf library is a high performance C-based HTTP client library built
59 upon the Apache Portable Runtime (APR) library. It is permissively
60 licensed under the Apache License, v2.
63 * multiplexed, asynchronous connections
65 * full HTTP pipelining
66 * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
67 * zero-copy support for increased throughput
69 Serf is the default client library of Apache Subversion and
74 549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc 145132 serf-1.3.9.tar.bz2
77 [FILE:175:manifests/plist.single]
85 libserf-1.so.%%SOMAJOR%%
86 libserf-1.so.%%SOVERSION%%
87 lib/pkgconfig/serf-1.pc
90 [FILE:2546:patches/patch-SConstruct]
91 --- SConstruct.orig 2015-09-17 12:46:24 UTC
93 @@ -74,6 +74,9 @@ else:
95 opts = Variables(files=[SAVED_CONFIG])
97 + RawListVariable('DESTDIR',
98 + 'Required *dummy*, without scons will stop with "Unknown variables: DESTDIR"',
100 PathVariable('PREFIX',
101 'Directory to install under',
103 @@ -153,6 +156,7 @@ if sys.platform == 'win32':
106 env = Environment(variables=opts,
108 tools=('default', 'textfile',),
111 @@ -166,7 +170,7 @@ env.Append(BUILDERS = {
112 match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
113 'SERF_MINOR_VERSION ([0-9]+).*'
114 'SERF_PATCH_VERSION ([0-9]+)',
115 - env.File('serf.h').get_contents(),
116 + env.File('serf.h').get_contents().decode('utf-8'),
118 MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
119 env.Append(MAJOR=str(MAJOR))
120 @@ -183,7 +187,7 @@ CALLOUT_OKAY = not (env.GetOption('clean
122 unknown = opts.UnknownVariables()
124 - print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
125 + print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
127 apr = str(env['APR'])
128 apu = str(env['APU'])
129 @@ -215,8 +219,7 @@ incdir = '$PREFIX/include/serf-$MAJOR'
130 # Unfortunately we can't set the .dylib compatibility_version option separately
131 # from current_version, so don't use the PATCH level to avoid that build and
132 # runtime patch levels have to be identical.
133 -if sys.platform != 'sunos5':
134 - env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
135 +env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
137 LIBNAME = 'libserf-%d' % (MAJOR,)
138 if sys.platform != 'win32':
139 @@ -364,8 +367,8 @@ else:
140 ### there is probably a better way to run/capture output.
141 ### env.ParseConfig() may be handy for getting this stuff into the build
143 - apr_libs = os.popen(env.subst('$APR --link-libtool --libs')).read().strip()
144 - apu_libs = os.popen(env.subst('$APU --link-libtool --libs')).read().strip()
145 + apr_libs = os.popen(env.subst('$APR --libs')).read().strip()
146 + apu_libs = os.popen(env.subst('$APU --libs')).read().strip()
150 @@ -406,6 +409,8 @@ pkgconfig = env.Textfile('serf-%d.pc' %
152 env.Default(lib_static, lib_shared, pkgconfig)
157 conf = Configure(env)
161 [FILE:408:patches/patch-buckets_ssl__buckets.c]
162 --- buckets/ssl_buckets.c.orig 2016-06-30 15:45:07 UTC
163 +++ buckets/ssl_buckets.c
165 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
168 -#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
169 +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
170 #define USE_OPENSSL_1_1_API
175 [FILE:55:files/special.mk]
176 INSTALL_TARGET= install --install-sandbox=${STAGEDIR}