freebsd-ports/devel/libgit2/Makefile
Matthias Fechner 8710fc0281 Update to 0.27.3 which fixes some security vulnerabilities.
Reviewed by:	swills (mentor)
Approved by:	swills (mentor)
MFH:		2018Q3
Security:	3c9b7698-84da-11e8-8c75-d8cb8abf62dd
Differential Revision:	https://reviews.freebsd.org/D16225
2018-07-11 16:30:04 +00:00

46 lines
1.1 KiB
Makefile

# $FreeBSD$
# Also update devel/libgit2-glib, devel/rubygem-rugged, devel/py-pygit2
PORTNAME= libgit2
PORTVERSION= 0.27.3
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= mfechner@FreeBSD.org
COMMENT= Portable, pure C implementation of the Git core
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= libgit2
USES= cmake pathfix pkgconfig python:build ssl
USE_LDCONFIG= yes
PLIST_SUB= PORTVERSION=${PORTVERSION} SHLIB_VER=${PORTVERSION:R:E}
OPTIONS_DEFINE= SSH THREADS CURL
OPTIONS_DEFAULT=SSH THREADS CURL
SSH_DESC= Enable SSH support through libssh2
CURL_DESC= Enable HTTP support through cURL
SSH_LIB_DEPENDS= libssh2.so:security/libssh2
SSH_CMAKE_ON= -DUSE_SSH=ON
SSH_CMAKE_OFF= -DUSE_SSH=OFF
THREADS_CMAKE_ON= -DTHREADSAFE=ON
THREADS_CMAKE_OFF= -DTHREADSAFE=OFF
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CMAKE_ON= -DCURL=ON
CURL_CMAKE_OFF= -DCURL=OFF
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt
.if ${SSL_DEFAULT} == base
@${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \
${WRKSRC}/src/CMakeLists.txt
.endif
.include <bsd.port.post.mk>