aboutsummaryrefslogtreecommitdiff
path: root/ftp/curlpp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/curlpp/Makefile')
-rw-r--r--ftp/curlpp/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/ftp/curlpp/Makefile b/ftp/curlpp/Makefile
new file mode 100644
index 000000000000..99e28b192bbc
--- /dev/null
+++ b/ftp/curlpp/Makefile
@@ -0,0 +1,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>