mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
b6450d4ca7
- Update to 1.0.18 and pkg-plist accordingly - Add LICENSE (BSD3CLAUSE) and LICENSE_FILE - Add TEST_DEPENDS and regression-test target - Perl is not required, remove USE_PERL and from USES - Split LDFLAGS from CONFIGURE_ENV, they're already set there - Add libmemcachedprotocol to CONFIGURE_ARGS (Now default: off) - Add OPTIONS for hash functions, debug and dtrace - pkg-descr: Update WWW: URL - Add patches for: * alloca.h include not found on FreeBSD * cinttypes include location * clang compatibility - Strip shared libraries manually since upstream install-strip target is fail Changes: https://launchpad.net/libmemcached/+announcements [1] https://bugs.launchpad.net/libmemcached/+bug/1245562 [2] https://bugs.launchpad.net/libmemcached/+bug/1400560 Approved by: Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer, via email)
124 lines
3.6 KiB
Makefile
124 lines
3.6 KiB
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gearmand
|
|
PORTVERSION= 1.1.8
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://launchpad.net/gearmand/1.2/${PORTVERSION}/+download/
|
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
|
COMMENT= Gearman C Server and Library
|
|
|
|
BUILD_DEPENDS= boost-libs>=0:${PORTSDIR}/devel/boost-libs \
|
|
${PYTHON_PKGNAMEPREFIX}sphinx>=0:${PORTSDIR}/textproc/py-sphinx
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 \
|
|
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
|
|
|
|
CONFLICTS= p5-Gearman-Server-1.* gearmand-1.0.*
|
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
USERS= gearmand
|
|
GROUPS= gearmand
|
|
|
|
USE_PERL5= build
|
|
GNU_CONFIGURE= yes
|
|
USES= pathfix perl5 gmake gperf libtool execinfo python:build
|
|
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+= libdrizzleso:${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>
|