summaryrefslogtreecommitdiff
path: root/ftp/curlpp/Makefile
blob: b8ea2d626c995edcfa58d46fd2f4907acf53e171 (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
36
37
38
39
40
41
42
43
44
# Created by: ijliao
# $FreeBSD$

PORTNAME=	curlpp
PORTVERSION=	0.7.3
PORTREVISION=	2
CATEGORIES=	ftp
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	C++ wrapper for libcurl

LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl

OPTIONS_DEFINE=	BOOST DOCS EXAMPELS

CONFIGURE_ARGS=	--disable-ewarning
CPPFLAGS+=	-I${LOCALBASE}/include
GNU_CONFIGURE=	yes
LDFLAGS+=	-L${LOCALBASE}/lib
USE_LDCONFIG=	yes
USES=		pathfix

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MBOOST}
BUILD_DEPENDS+=	boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS+=	boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
CONFIGURE_ARGS+=--with-boost=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-boost
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/doc/guide.pdf ${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}/
	${INSTALL_DATA} ${WRKSRC}/examples/README ${WRKSRC}/examples/example*.cpp ${EXAMPLESDIR}/
.endif

.include <bsd.port.mk>