blob: 99e28b192bbc77685e1863cb8cf56e0fcc3124a9 (
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
45
|
# ex:ts=8
# Ports collection makefile for: curlpp
# Date created: Nov 27, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= curlpp
PORTVERSION= 0.3.0
CATEGORIES= ftp
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A C++ wrapper for libcurl
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500035
USE_GCC= 3.1
.else
CONFIGURE_ENV+= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.endif
post-patch:
@${REINPLACE_CMD} -e "s|^#! /bin/sh|#!${LOCALBASE}/bin/bash|" ${WRKSRC}/configure
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${CP} ${WRKSRC}/test/README ${EXAMPLESDIR}
@${CP} ${WRKSRC}/test/example*.cpp ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|