aboutsummaryrefslogtreecommitdiff
path: root/devel/cpp-netlib/Makefile
blob: 5fb3d253c253b27638dc06d54191e2b8e74174ca (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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=		cpp-netlib
DISTVERSIONPREFIX=	${PORTNAME}-
DISTVERSION=		0.12.0
DISTVERSIONSUFFIX=	-final
PORTREVISION=	12
CATEGORIES=		devel

MAINTAINER=		zi@FreeBSD.org
COMMENT=		Cross-platform, standards compliant networking library

LICENSE=		BSL
LICENSE_FILE=		${WRKSRC}/LICENSE_1_0.txt

BUILD_DEPENDS=		boost-libs>0:devel/boost-libs \
					asio>0:net/asio

USES=			cmake compiler:c++11-lang
USE_LDCONFIG=		yes
CFLAGS+=	-fPIC
CMAKE_ARGS+=		-DCPP-NETLIB_BUILD_EXAMPLES=OFF \
			-DCPP-NETLIB_BUILD_SHARED_LIBS=ON \
			-DCPP-NETLIB_BUILD_TESTS=OFF
USE_GITHUB=		yes

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} == base
BROKEN_FreeBSD_12=	no member named 'SSLv2_method' in the global namespace
BROKEN_FreeBSD_13=	no member named 'SSLv2_method' in the global namespace
.endif

.include <bsd.port.post.mk>