source: trunk/dports/sysutils/gearmand/Portfile @ 124957

Last change on this file since 124957 was 124957, checked in by ryandesign@…, 5 years ago

gearmand: fix build with libstdc++

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 124957 2014-09-01 02:35:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# configure: error: unable to determine endian
7PortGroup           muniversal 1.0
8
9name                gearmand
10version             1.1.12
11set branch          1.2
12categories          sysutils net devel
13platforms           darwin
14license             BSD
15
16description         Framework for distributed computation
17long_description    \
18        Gearman provides a generic application framework  to  farm  out  work \
19        to other machines or processes that are better suited to do the work. \
20        It allows you to do work in parallel,  to  load  balance  processing, \
21        and to call functions between languages.  It can be used in a variety \
22        of applications, from high-availability web sites to the transport of \
23        database replication events. In other words, it is the nervous system \
24        for how distributed processing communicates.
25
26maintainers         medialize.de:rodney.rehm \
27                    andyfowler.com:andy \
28                    openmaintainer
29
30homepage            http://gearman.org/
31master_sites        https://launchpad.net/gearmand/${branch}/${version}/+download/
32
33checksums           rmd160  a5be8f7d7f4ec3897f70b55c3f6acebe47af66fa \
34                    sha256  973d7a3523141a84c7b757c6f243febbc89a3631e919b532c056c814d8738acb
35
36depends_lib         port:boost \
37                    port:libevent
38
39patchfiles-append   patch-libgearman-byteorder.cc.diff
40patchfiles-append   patch-libgearman-client.cc.diff
41
42if {${configure.cxx_stdlib} eq "libstdc++"} {
43    patchfiles-append   patch-libgearman-1.0-gearman.h.diff
44}
45
46configure.args      --disable-silent-rules \
47                    --disable-libdrizzle \
48                    --disable-libpq \
49                    --disable-libmemcached \
50                    --disable-libtokyocabinet \
51                    --enable-jobserver=${build.jobs} \
52                    --without-mysql \
53                    --without-sqlite3
54
55# gearmand handles parallel building using the --enable-jobserver arg above.
56use_parallel_build  no
57
58merger_arch_compiler yes
59if {![variant_isset universal]} {
60    configure.cc-append " ${configure.cc_archflags}"
61    configure.cxx-append " ${configure.cxx_archflags}"
62}
63
64post-destroot {
65    set docdir ${prefix}/share/doc/${subport}
66    xinstall -d ${destroot}${docdir}
67    xinstall -m 644 -W ${worksrcpath} \
68        AUTHORS \
69        COPYING \
70        ChangeLog \
71        HACKING \
72        README \
73        THANKS \
74        ${destroot}${docdir}
75}
76
77platform darwin {
78    if {${os.major} >= 14} {
79        configure.cxxflags-append -DHAVE_HTONLL
80    }
81}
82
83variant dtrace description {Enable DTrace probes} {
84    configure.args-append   --enable-dtrace
85}
86
87variant sqlite description {Build with sqlite3 support} {
88    depends_lib-append      port:sqlite3
89    configure.args-delete   --without-sqlite3
90}
91default_variants +sqlite
92
93variant drizzle description {Build with libdrizzle support} {
94    depends_lib-append      port:libdrizzle
95    configure.args-delete   --disable-libdrizzle
96    configure.args-append   --enable-libdrizzle
97}
98
99variant postgres description {Build with postgresql support} {
100    depends_lib-append      port:libpqxx
101    configure.args-delete   --disable-libpq
102    configure.args-append   --enable-libpq
103}
104
105variant memcached description {Build with memcached support} {
106    depends_lib-append      port:libmemcached
107    configure.args-delete   --disable-libmemcached
108    configure.args-append   --enable-libmemcached
109}
110
111variant tokyocabinet description {Build with tokyocabinet support} {
112    depends_lib-append      port:tokyocabinet
113    configure.args-delete   --disable-libtokyocabinet
114    configure.args-append   --enable-libtokyocabinet
115}
116
117startupitem.create  yes
118startupitem.executable  ${prefix}/sbin/gearmand -vv \
119                        --port=4730 \
120                        -u root \
121                        --pid-file=${prefix}/var/run/gearmand.pid \
122                        --log-file=${prefix}/var/log/gearmand.log
123
124livecheck.type      regexm
125livecheck.url       https://launchpad.net/${name}/+download
126livecheck.regex     (\[0-9.\]+) release</a>\\s+from the\\s+<a href="/gearmand/${branch}">${branch}</a> series
Note: See TracBrowser for help on using the repository browser.