Tweak devel/uatraits version 20130430_14
[dports.git] / devel / uatraits / Makefile
1 # Created by: Dmitry Sivachenko <demon@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       uatraits
5 PORTVERSION=    20130430
6 PORTREVISION=   14
7 CATEGORIES=     devel www
8 MASTER_SITES=   http://people.freebsd.org/~demon/
9
10 MAINTAINER=     demon@FreeBSD.org
11 COMMENT=        User-Agent detection library
12
13 LIB_DEPENDS=    ${PY_BOOST} \
14                 libpcre.so:devel/pcre \
15                 libxml2.so:textproc/libxml2
16
17 USES=           autoreconf compiler:c++11-lang libtool pkgconfig python:2.7 ssl
18 GNU_CONFIGURE=  yes
19 USE_LDCONFIG=   yes
20
21 CONFIGURE_ARGS= --with-boost-prefix=${LOCALBASE} \
22                 --with-pcre-prefix=${LOCALBASE} \
23                 --enable-python --disable-perl --disable-tests \
24                 --disable-java --disable-nodejs
25 CONFIGURE_ENV=  crypto_CFLAGS="-I${OPENSSLINC}" \
26                 crypto_LIBS="-lcrypto"
27 CPPFLAGS+=      -I${LOCALBASE}/include
28 CXXFLAGS+=      ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
29 CXXFLAGS_clang= -Wno-c++11-narrowing
30
31 .include <bsd.port.pre.mk>
32
33 .if ${OPENSSLLIB} != /usr/lib
34 CONFIGURE_ENV+= crypto_LIBS="-L${OPENSSLLIB} -lcrypto"
35 .endif
36
37 post-patch:
38         @${REINPLACE_CMD} -e 's/\[boost_python]/[${PY_BOOST_LIB}]/' \
39                 ${WRKSRC}/config/ax_boost_python.m4
40
41 .include <bsd.port.post.mk>