Ravenports generated: 21 Feb 2024 20:00
[ravenports.git] / bucket_59 / serf
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               serf
4 VERSION=                1.3.10
5 KEYWORDS=               net www
6 VARIANTS=               standard
7 SDESC[standard]=        High-performance asynchronous HTTP client library
8 HOMEPAGE=               https://serf.apache.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            APACHE/serf
13 DISTFILE[1]=            serf-1.3.10.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          apr1:dev:standard
21                         apr-util:dev:standard
22                         gdbm:dev:standard
23 BUILDRUN_DEPENDS=       apr-util:primary:standard
24                         gdbm:primary:standard
25
26 USES=                   scons ssl:openssl11 cpe zlib expat iconv bdb
27
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
33 LICENSE_SCHEME=         solo
34
35 CPE_VENDOR=             serf_project
36 FPC_EQUIVALENT=         www/serf
37
38 MAKE_ARGS=              APR={{LOCALBASE}}/bin/apr-1-config
39                         APU={{LOCALBASE}}/bin/apu-1-config
40                         OPENSSL={{OPENSSLBASE}}
41                         CFLAGS="{{CFLAGS}}"
42
43 INSTALL_REQ_TOOLCHAIN=  yes
44 PLIST_SUB=              SOVERSION=1.3.0
45                         SOMAJOR=1
46
47 VAR_OPSYS[sunos]=       CFLAGS=-D__EXTENSIONS__
48                         CFLAGS=-I{{LOCALBASE}}/include/bsd
49
50 post-patch:
51         ${REINPLACE_CMD} -E \
52                 -e '/^Requires.private/s/(libssl|libcrypto)//g' \
53                 -e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
54                 ${WRKSRC}/build/serf.pc.in
55
56 post-install:
57         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
58
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.
63
64 Key features:
65  * multiplexed, asynchronous connections
66  * SSL/TLS support
67  * full HTTP pipelining
68  * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
69  * zero-copy support for increased throughput
70
71 Serf is the default client library of Apache Subversion and
72 Apache OpenOffice
73
74
75 [FILE:98:distinfo]
76 be81ef08baa2516ecda76a77adf7def7bc3227eeb578b9a33b45f7b41dc064e6       147744 serf-1.3.10.tar.bz2
77
78
79 [FILE:175:manifests/plist.single]
80 include/serf-1/
81  serf.h
82  serf_bucket_types.h
83  serf_bucket_util.h
84 lib/
85  libserf-1.a
86  libserf-1.so
87  libserf-1.so.%%SOMAJOR%%
88  libserf-1.so.%%SOVERSION%%
89 lib/pkgconfig/serf-1.pc
90
91
92 [FILE:1807:patches/patch-SConstruct]
93 --- SConstruct.orig     2023-05-18 09:33:55 UTC
94 +++ SConstruct
95 @@ -74,6 +74,9 @@ else:
96  
97  opts = Variables(files=[SAVED_CONFIG])
98  opts.AddVariables(
99 +  RawListVariable('DESTDIR',
100 +               'Required *dummy*, without scons will stop with "Unknown variables: DESTDIR"',
101 +                None),
102    PathVariable('PREFIX',
103                 'Directory to install under',
104                 default_prefix,
105 @@ -162,6 +165,7 @@ if sys.platform == 'win32':
106      )
107  
108  env = Environment(variables=opts,
109 +                  ENV = os.environ,
110                    tools=('default', 'textfile',),
111                    CPPPATH=['.', ],
112                    )
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)
120  
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
126    if CALLOUT_OKAY:
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()
131    else:
132      apr_libs = ''
133      apu_libs = ''
134 @@ -428,6 +431,8 @@ pkgconfig = env.Textfile('serf-%d.pc' %
135  
136  env.Default(lib_static, lib_shared, pkgconfig)
137  
138 +#print env.Dump()
139 +
140  if CALLOUT_OKAY:
141    conf = Configure(env)
142  
143
144
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
148 @@ -52,7 +52,7 @@
149  #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
150  #endif
151  
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
155  #endif
156  
157
158
159 [FILE:55:files/special.mk]
160 INSTALL_TARGET=         install --install-sandbox=${STAGEDIR}
161