View | Details | Raw Unified | Return to bug 62814
Collapse All | Expand All

(-)ftp/curlpp/Makefile (-22 / +9 lines)
Lines 8-13 Link Here
8
8
9
PORTNAME=	curlpp
9
PORTNAME=	curlpp
10
PORTVERSION=	0.3.0
10
PORTVERSION=	0.3.0
11
PORTREVISION=	1
11
CATEGORIES=	ftp
12
CATEGORIES=	ftp
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
14
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 15-49 Link Here
15
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A C++ wrapper for libcurl
17
COMMENT=	A C++ wrapper for libcurl
17
18
18
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash2
19
LIB_DEPENDS=	curl.2:${PORTSDIR}/ftp/curl
19
LIB_DEPENDS=	curl.2:${PORTSDIR}/ftp/curl
20
20
21
USE_GCC=	3.3
21
USE_REINPLACE=	yes
22
USE_REINPLACE=	yes
22
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
23
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
24
INSTALLS_SHLIB=	yes
25
26
.include <bsd.port.pre.mk>
27
28
.if ${OSVERSION} >= 502000
29
BROKEN=		"Does not compile"
30
.endif
31
32
.if ${OSVERSION} < 500035
33
USE_GCC=	3.1
34
.else
35
CONFIGURE_ENV+=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
36
		LDFLAGS="-L${LOCALBASE}/lib"
25
		LDFLAGS="-L${LOCALBASE}/lib"
37
.endif
26
CONFIGURE_ARGS=	--disable-ewarning
38
27
INSTALLS_SHLIB=	yes
39
post-patch:
40
	@${REINPLACE_CMD} -e "s|^#! /bin/sh|#!${LOCALBASE}/bin/bash|" ${WRKSRC}/configure
41
28
42
.if !defined(NOPORTDOCS)
43
post-install:
29
post-install:
30
.if !defined(NOPORTDOCS)
44
	@${MKDIR} ${EXAMPLESDIR}
31
	@${MKDIR} ${EXAMPLESDIR}
45
	@${CP} ${WRKSRC}/test/README ${EXAMPLESDIR}
32
	${INSTALL_DATA} ${WRKSRC}/test/README ${EXAMPLESDIR}
46
	@${CP} ${WRKSRC}/test/example*.cpp ${EXAMPLESDIR}
33
	${INSTALL_DATA} ${WRKSRC}/test/example*.cpp ${EXAMPLESDIR}
47
.endif
34
.endif
48
35
49
.include <bsd.port.post.mk>
36
.include <bsd.port.mk>
(-)ftp/curlpp/files/patch-configure (+31 lines)
Line 0 Link Here
1
--- configure.orig	Thu Jun 19 05:17:22 2003
2
+++ configure	Fri Feb 13 02:02:21 2004
3
@@ -6598,19 +6598,6 @@
4
    { echo "configure: error: *** curl-config not found. You need a working libcurl installation." 1>&2; exit 1; }
5
 fi
6
 
7
-echo $ac_n "checking if libcurl version is >= 7.10.0""... $ac_c" 1>&6
8
-echo "configure:6603: checking if libcurl version is >= 7.10.0" >&5
9
-curl_version_needed="16#070a00"
10
-curl_version=`$HAVECURL --vernum`
11
-curl_version=$(echo "16#"$curl_version)
12
-if let $curl_version -ge $curl_version_needed; then
13
-   echo "$ac_t""yes" 1>&6
14
-else
15
-   echo "$ac_t""no" 1>&6
16
-   { echo "configure: error: *** libcurl is too old. You need a libcurl installation newer
17
-                 or equal to 7.10.0." 1>&2; exit 1; }
18
-fi
19
-
20
 echo $ac_n "checking warning make an error on compilation""... $ac_c" 1>&6
21
 echo "configure:6616: checking warning make an error on compilation" >&5
22
 # Check whether --enable-ewarning or --disable-ewarning was given.
23
@@ -6646,7 +6633,7 @@
24
 
25
 
26
 
27
-CXXFLAGS="$CFLAGS $CURLPP_CFLAGS"
28
+CXXFLAGS="$CXXFLAGS $CURLPP_CFLAGS"
29
 
30
 trap '' 1 2 15
31
 cat > confcache <<\EOF
(-)ftp/curlpp/files/patch-src::types.hpp (+13 lines)
Line 0 Link Here
1
--- src/types.hpp.orig	Wed Jan  8 11:28:59 2003
2
+++ src/types.hpp	Fri Feb 13 02:09:44 2004
3
@@ -47,8 +47,8 @@
4
    namespace time_condition
5
    {
6
       enum type { 
7
-         if_mod_since = TIMECOND_IFMODSINCE, 
8
-         if_unmod_sice = TIMECOND_IFUNMODSINCE 
9
+         if_mod_since = CURL_TIMECOND_IFMODSINCE, 
10
+         if_unmod_sice = CURL_TIMECOND_IFUNMODSINCE 
11
       };
12
    };
13

Return to bug 62814