Tweak ftp/curlpp version 0.7.3_1
[dports.git] / ftp / curlpp / Makefile
1 # Created by: ijliao
2 # $FreeBSD: ftp/curlpp/Makefile 317691 2013-05-08 15:54:54Z sunpoet $
3
4 PORTNAME=       curlpp
5 PORTVERSION=    0.7.3
6 PORTREVISION=   1
7 CATEGORIES=     ftp
8 MASTER_SITES=   GOOGLE_CODE
9
10 MAINTAINER=     sunpoet@FreeBSD.org
11 COMMENT=        C++ wrapper for libcurl
12
13 LIB_DEPENDS=    curl:${PORTSDIR}/ftp/curl
14
15 OPTIONS_DEFINE= BOOST DOCS EXAMPELS
16
17 CONFIGURE_ARGS= --disable-ewarning
18 CPPFLAGS+=      -I${LOCALBASE}/include
19 GNU_CONFIGURE=  yes
20 LDFLAGS+=       -L${LOCALBASE}/lib
21 USE_LDCONFIG=   yes
22 USES=           pathfix
23
24 .include <bsd.port.options.mk>
25
26 .if ${PORT_OPTIONS:MBOOST}
27 BUILD_DEPENDS+= boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
28 RUN_DEPENDS+=   boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
29 CONFIGURE_ARGS+=--with-boost=${LOCALBASE}
30 .else
31 CONFIGURE_ARGS+=--without-boost
32 .endif
33
34 post-install:
35 .if ${PORT_OPTIONS:MDOCS}
36         ${MKDIR} ${DOCSDIR}/
37         ${INSTALL_DATA} ${WRKSRC}/doc/guide.pdf ${DOCSDIR}/
38 .endif
39 .if ${PORT_OPTIONS:MEXAMPLES}
40         ${MKDIR} ${EXAMPLESDIR}/
41         ${INSTALL_DATA} ${WRKSRC}/examples/README ${WRKSRC}/examples/example*.cpp ${EXAMPLESDIR}/
42 .endif
43
44 .include <bsd.port.mk>