openbsd-ports/net/curl/Makefile
jasper d3c8df5a14 Security fix for CVE-2013-2174,
libcURL "curl_easy_unescape()" Buffer Overflow Vulnerability

ok naddy@ (MAINTAINER)
2013-07-16 19:25:38 +00:00

51 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.91 2013/07/16 19:25:38 jasper Exp $
COMMENT= get files from FTP, Gopher, HTTP or HTTPS servers
DISTNAME= curl-7.26.0
REVISION= 3
SHARED_LIBS= curl 23.0 # .6.0
CATEGORIES= net
MASTER_SITES= http://curl.haxx.se/download/ \
ftp://ftp.sunet.se/pub/www/utilities/curl/
HOMEPAGE= http://curl.haxx.se/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
MODULES= devel/gettext
LIB_DEPENDS= devel/libidn
WANTLIB= c crypto idn ssl z
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-ca-bundle=/etc/ssl/cert.pem \
--with-libidn=${LOCALBASE} \
--without-libssh2
CONFIGURE_ENV= ac_cv_path_NROFF=/usr/bin/mandoc
# speed up some time-consuming configure tests
CONFIGURE_ENV+=curl_cv_func_select_args="int,fd_set *,struct timeval *,int"
CONFIGURE_ENV+=curl_cv_func_recv_args="int,void *,size_t,int,ssize_t"
CONFIGURE_ENV+=curl_cv_func_recvfrom_args="int,void *,size_t,int,struct sockaddr *,socklen_t *,ssize_t"
CONFIGURE_ENV+=curl_cv_func_send_args="int,const void *,size_t,int,ssize_t"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
cd ${WRKSRC}; ${INSTALL_DATA} curl-style.el \
${PREFIX}/share/emacs/site-lisp
# Note:
# use ulimit -p 256 for test
# curl_fnmatch.c triggers an ICE in output_operand() when compiled -fPIC unless
# -fno-gcse is used.
.if ${MACHINE_ARCH} == "m68k"
CFLAGS+= -fno-gcse
.endif
.include <bsd.port.mk>