aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gearmand/Makefile
blob: 2a7aad4f123b07d583dc06abb782ab9bac6501cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   gearmand
PORTVERSION=    1.0.6
PORTREVISION=   5
CATEGORIES= devel
MASTER_SITES=   http://launchpad.net/gearmand/1.0/${PORTVERSION}/+download/

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    Gearman C Server and Library

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}sphinx>=0:${PORTSDIR}/textproc/py-sphinx
LIB_DEPENDS=    libboost_program_options.so:${PORTSDIR}/devel/boost-libs \
        libevent.so:${PORTSDIR}/devel/libevent2 \
        libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid

CONFLICTS=  p5-Gearman-Server-1.* gearmand-1.1.*

USERS=      gearmand
GROUPS=     gearmand

USE_PERL5=  build
GNU_CONFIGURE=  yes
USES=       pathfix gmake perl5 python:build libtool execinfo
USE_LDCONFIG=   yes
USE_RC_SUBR=    gearmand
SUB_LIST+=  USERS=${USERS} GROUPS=${GROUPS}

CONFIGURE_ARGS+=--with-lib-prefix=${LOCALBASE} --with-boost=${LOCALBASE} \
        --localstatedir=/var/db/${PORTNAME} --enable-static
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lexecinfo

OPTIONS_DEFINE= DRIZZLE MEMCACHED PGSQL SQLITE MYSQL HIREDIS TOKYOCAB
OPTIONS_DEFAULT=SQLITE

DRIZZLE_DESC=   Drizzle support for persistent queue
MEMCACHED_DESC= memcached support for persistent queue
MYSQL_DESC= MySQL support for persistent queue
PGSQL_DESC= PostgreSQL support for persistent queue
SQLITE_DESC=    SQLite support for persistent queue
HIREDIS_DESC=   Hiredis support for persistent queue
TOKYOCAB_DESC=  Tokyo Cabinet support for persistent queue

.include <bsd.port.options.mk>

# Workaround for missing sigignore that wasn't introduced until
# FreeBSD 8.0
.if ${OSVERSION} < 800041
BROKEN= Does not compile without POSIX spawn() support
.endif

.if ${PORT_OPTIONS:MDRIZZLE}
LIB_DEPENDS+=       libdrizzle.so:${PORTSDIR}/databases/libdrizzle
CONFIGURE_ARGS+=    --enable-libdrizzle
.else
CONFIGURE_ARGS+=    --disable-libdrizzle
.endif

.if ${PORT_OPTIONS:MMEMCACHED}
LIB_DEPENDS+=       libmemcached.so:${PORTSDIR}/databases/libmemcached
BUILD_DEPENDS+=     memcached>=0:${PORTSDIR}/databases/memcached
CONFIGURE_ARGS+=    --enable-libmemcached
# This hack is required for the test programs invoked by configure,
# in the event that libmemcached was compiled with SASL support.
.if exists(${LOCALBASE}/lib/libsasl.so)
LDFLAGS+=       -L${LOCALBASE}/lib -lsasl
CONFIGURE_ARGS+=    --with-memcached-sasl=${LOCALBASE}/bin/memcached
.elif exists(${LOCALBASE}/lib/libsasl2.a)
LDFLAGS+=       -L${LOCALBASE}/lib -lsasl2
CONFIGURE_ARGS+=    --with-memcached-sasl=${LOCALBASE}/bin/memcached
.else
LDFLAGS+=       -L${LOCALBASE}/lib
CONFIGURE_ARGS+=    --with-memcached=${LOCALBASE}/bin/memcached
.endif
.else
CONFIGURE_ARGS+=    --disable-libmemcached
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=      yes
CONFIGURE_ARGS+=    --with-mysql=yes
.else
CONFIGURE_ARGS+=    --with-mysql=no
.endif

.if ${PORT_OPTIONS:MPGSQL}
USES+=          pgsql
CONFIGURE_ARGS+=    --enable-libpq
.else
CONFIGURE_ARGS+=    --disable-libpq
.endif

.if ${PORT_OPTIONS:MSQLITE}
BUILD_DEPENDS+=     sqlite3>=3.0.0:${PORTSDIR}/databases/sqlite3
LIB_DEPENDS+=       libsqlite3.so:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+=    --with-sqlite3=${LOCALBASE}
.else
CONFIGURE_ARGS+=    --without-sqlite3
.endif

.if ${PORT_OPTIONS:MTOKYOCAB}
LIB_DEPENDS+=       libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet
CONFIGURE_ARGS+=    --enable-libtokyocabinet
CONFIGURE_ENV+=     LIBTOKYOCABINET_CPPFLAGS=-I${LOCALBASE}/include \
            LIBTOKYOCABINET_LDFLAGS=-L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=    --disable-libtokyocabinet
.endif

.if ${PORT_OPTIONS:MHIREDIS}
LIB_DEPENDS+=       libhiredis.so:${PORTSDIR}/databases/hiredis
CONFIGURE_ARGS+=    --enable-hires
CONFIGURE_ENV+=     LIBHIREDIS_CPPFLAGS=-I${LOCALBASE}/include/hiredis \
            LIBHIREDIS_LDFLAGS=-L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=    --disable-hires
.endif

.include <bsd.port.mk>
aph'>* Add missing colon to the cups entry.shaun2006-12-281-1/+1 * - register cupsdinoex2006-12-181-0/+1 * - Reserve UID/GID 143 for mail/dovecotpav2006-12-011-0/+1 * - add wildfire to GIDs and UIDsalexbl2006-11-161-0/+1 * Register mail/fetchmail's UID and GID.barner2006-11-151-0/+1 * - Reserve UID and GID 561 for distccahze2006-11-121-0/+1 * Oops, restore dkfilter, still needed for dkfilter portache2006-11-091-0/+1 * Remove bogomilter and dkfilterache2006-11-091-2/+0 * - Add _xsi user and group for sysutils/xsi.alepulver2006-11-061-0/+1 * - Add entry for net-mgmt/bigsisterrafan2006-11-041-0/+1 * - Add hacluster user.alepulver2006-11-021-0/+1 * Reserve uid:gid 559 for the tacacs user for net/tac_plus4.marcus2006-10-311-0/+1 * This file lists entries in passwd(5) format; fix those three that didn't agree.ru2006-09-041-3/+3 * - Register UID/GID 128 for vserverpav2006-08-291-0/+1 * - Reserve UID/GID 118 for irc/ircproxypav2006-08-291-0/+1 * Add ID for Tiarra IRC Proxy.ume2006-07-291-0/+1 * - rc.d scripts are changed to show error messages when some errorrafan2006-07-291-0/+1 * Add user/group for mail/dkimproxy, which is added two days ago.rafan2006-07-291-0/+1 * Reserve uid/gid for net/smokepinglth2006-07-261-0/+1 * Fix home directory for "firebird" user:skv2006-07-251-1/+1 * Reserve uid/gid for Openlink Virtuoso Universal Server.fjoe2006-07-251-0/+1 * Add entry for trans-proxy-tor.miwi2006-07-221-0/+1 * Add entry for dns-proxy-tor.miwi2006-07-221-0/+1 * Add $FreeBSD tag.krion2006-07-221-0/+1 * Please welcome UIDs and GIDs file. Those have been created from the UID/GIDflz2006-07-20