1 # Created by: Dmitry Sivachenko <demon@FreeBSD.org>
8 MASTER_SITES= http://people.freebsd.org/~demon/
10 MAINTAINER= demon@FreeBSD.org
11 COMMENT= User-Agent detection library
13 LIB_DEPENDS= ${PY_BOOST} \
14 libpcre.so:devel/pcre \
15 libxml2.so:textproc/libxml2
17 USES= autoreconf compiler:c++11-lang libtool pkgconfig python:2.7 ssl
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
31 .include <bsd.port.pre.mk>
33 .if ${OPENSSLLIB} != /usr/lib
34 CONFIGURE_ENV+= crypto_LIBS="-L${OPENSSLLIB} -lcrypto"
38 @${REINPLACE_CMD} -e 's/\[boost_python]/[${PY_BOOST_LIB}]/' \
39 ${WRKSRC}/config/ax_boost_python.m4
41 .include <bsd.port.post.mk>