summaryrefslogtreecommitdiffstats
path: root/devel/uatraits/Makefile
blob: cbf3d5dcdd2fb6351cf0cb43688084bba25a08d3 (plain)
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
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$

PORTNAME=	uatraits
PORTVERSION=	20121112
CATEGORIES=	devel www
MASTER_SITES=	http://people.freebsd.org/~demon/

MAINTAINER=	demon@FreeBSD.org
COMMENT=	User-Agent detection library

BUILD_DEPENDS=	autoconf:${PORTSDIR}/devel/autoconf \
		automake:${PORTSDIR}/devel/automake \
		libtool:${PORTSDIR}/devel/libtool
LIB_DEPENDS=	boost_python:${PORTSDIR}/devel/boost-python-libs \
		pcre:${PORTSDIR}/devel/pcre \
		xml2:${PORTSDIR}/textproc/libxml2

GNU_CONFIGURE=	yes
USE_PYTHON=	yes
USE_OPENSSL=	yes
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

PYLIBS!=	${PYTHON_CMD}-config --libs
CONFIGURE_ARGS+=	--with-boost-prefix=${LOCALBASE} \
			--with-pcre-prefix=${LOCALBASE} \
			--enable-python --disable-perl --disable-tests \
			--disable-java --disable-nodejs
CPPFLAGS+=	"-I${LOCALBASE}/include"
CONFIGURE_ENV+=		crypto_CFLAGS="-I${OPENSSLINC}" \
			crypto_LIBS="-L${OPENSSLLIB} -lcrypto" \
			PYTHON_LIBS="${PYLIBS} -L${LOCALBASE}/lib"

pre-configure:
	cd ${WRKSRC} && ./autogen.sh

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud