5ae8688c07
With hat: portmgr
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= uatraits
|
|
PORTVERSION= 20130430
|
|
PORTREVISION= 15
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= http://people.freebsd.org/~demon/
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
COMMENT= User-Agent detection library
|
|
|
|
DEPRECATED= Uses deprecated version of python
|
|
EXPIRATION_DATE= 2020-09-15
|
|
|
|
LIB_DEPENDS= ${PY_BOOST} \
|
|
libpcre.so:devel/pcre \
|
|
libxml2.so:textproc/libxml2
|
|
|
|
USES= autoreconf compiler:c++11-lang libtool pkgconfig python:2.7 ssl
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS= --with-boost-prefix=${LOCALBASE} \
|
|
--with-pcre-prefix=${LOCALBASE} \
|
|
--enable-python --disable-perl --disable-tests \
|
|
--disable-java --disable-nodejs
|
|
CONFIGURE_ENV= crypto_CFLAGS="-I${OPENSSLINC}" \
|
|
crypto_LIBS="-lcrypto"
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
CXXFLAGS_clang= -Wno-c++11-narrowing
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPENSSLLIB} != /usr/lib
|
|
CONFIGURE_ENV+= crypto_LIBS="-L${OPENSSLLIB} -lcrypto"
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/\[boost_python]/[${PY_BOOST_LIB}]/' \
|
|
${WRKSRC}/config/ax_boost_python.m4
|
|
|
|
.include <bsd.port.post.mk>
|