source: trunk/dports/www/serf1/Portfile

Last change on this file was 151787, checked in by blair@…, 11 months ago

serf1: upgrade to 1.3.8; fixes #52073.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 151787 2016-08-22 00:55:26Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            serf1
6version         1.3.8
7categories      www
8maintainers     blair
9license         Apache-2
10description     C-based HTTP client library
11
12long_description \
13    The serf library is a C-based HTTP client library built upon the \
14    Apache Portable Runtime (APR) library.  It multiplexes \
15    connections, running the read/write communication asynchronously. \
16    Memory copies and transformations are kept to a minimum to provide \
17    high performance operation.
18
19homepage        https://serf.apache.org
20master_sites    https://archive.apache.org/dist/serf/
21distname        serf-${version}
22use_bzip2       yes
23checksums       sha1   1d45425ca324336ce2f4ae7d7b4cfbc5567c5446 \
24                sha256 e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590
25
26patchfiles      patch-SConstruct.diff
27
28platforms       darwin
29
30depends_build   port:scons
31depends_lib     port:apr port:apr-util path:lib/libssl.dylib:openssl port:zlib
32
33use_configure   no
34
35variant universal {}
36
37build.cmd       ${prefix}/bin/scons
38
39build.args      CC=${configure.cc} \
40                CPPFLAGS="${configure.cppflags}" \
41                CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
42                LINKFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
43
44platform darwin {
45    # Workaround scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
46    build.args-append   CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}"
47}
48
49build.target    APR=${prefix} \
50                APU=${prefix} \
51                OPENSSL=${prefix} \
52                PREFIX=${prefix}
53
54destroot.cmd        ${build.cmd}
55destroot.args       --install-sandbox=${destroot}
56destroot.destdir   
57
58post-destroot {
59    set sharedir ${destroot}${prefix}/share
60    set docdir ${sharedir}/doc/${name}
61
62    xinstall -m 755 -d ${docdir}
63
64    foreach f {CHANGES LICENSE NOTICE README} {
65        file copy ${worksrcpath}/${f} ${docdir}
66    }
67}
68
69livecheck.url   [lindex ${master_sites} 0]
70livecheck.type  regex
71livecheck.regex serf-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.