aboutsummaryrefslogtreecommitdiffstats
path: root/net/rabbitmq-c-devel/Makefile
blob: 579d20ec2a2672f5fcd1d402ef910ddfc094409a (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
# Created by: Geoff Garside
# $FreeBSD$

PORTNAME=   rabbitmq-c
PORTVERSION=    0.6.0
DISTVERSIONPREFIX=  v
CATEGORIES= net
PKGNAMESUFFIX=  -devel

MAINTAINER= freebsd@geoffgarside.co.uk
COMMENT=    RabbitMQ C AMQP client library

LICENSE=    GPLv2 MPL
LICENSE_COMB=   dual

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson

CONFLICTS=  rabbitmq-c-[0-9]*

USES=       cmake python tar:bzip2
USE_GITHUB= yes
USE_LDCONFIG=   yes
GH_ACCOUNT= alanxz

OPTIONS_DEFINE= POPT
OPTIONS_SUB=    yes
POPT_DESC=  Popt support in tools
POPT_LIB_DEPENDS=   libpopt.so:${PORTSDIR}/devel/popt
POPT_CFLAGS=    -I${LOCALBASE}/include
POPT_LDFLAGS=   -L${LOCALBASE}/lib

post-stage:
    ${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/librabbitmq.pc \
        ${STAGEDIR}${PREFIX}/libdata/pkgconfig/librabbitmq.pc
    ${RMDIR} ${STAGEDIR}${PREFIX}/lib/pkgconfig

.include <bsd.port.mk>