Changeset View
Changeset View
Standalone View
Standalone View
head/devel/libgit2/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libgit2 | PORTNAME= libgit2 | ||||
PORTVERSION= 0.22.3 | PORTVERSION= 0.23.1 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MAINTAINER= wg@FreeBSD.org | MAINTAINER= wg@FreeBSD.org | ||||
COMMENT= Portable, pure C implementation of the Git core | COMMENT= Portable, pure C implementation of the Git core | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= libgit2 | GH_ACCOUNT= libgit2 | ||||
USES= cmake pkgconfig python:build | USES= cmake pkgconfig python:build | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
PLIST_SUB= SHLIB_VER=${PORTVERSION:R:E} | PLIST_SUB= SHLIB_VER=${PORTVERSION:R:E} | ||||
OPTIONS_DEFINE= SSH THREADS | OPTIONS_DEFINE= SSH THREADS CURL | ||||
OPTIONS_DEFAULT=SSH THREADS | OPTIONS_DEFAULT=SSH THREADS CURL | ||||
SSH_DESC= Enable SSH support through libssh2 | SSH_DESC= Enable SSH support through libssh2 | ||||
CURL_DESC= Enable HTTP support through cURL | |||||
SSH_LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2 | SSH_LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2 | ||||
SSH_CMAKE_ON= -DUSE_SSH=ON | SSH_CMAKE_ON= -DUSE_SSH=ON | ||||
SSH_CMAKE_OFF= -DUSE_SSH=OFF | SSH_CMAKE_OFF= -DUSE_SSH=OFF | ||||
THREADS_CMAKE_ON= -DTHREADSAFE=ON | THREADS_CMAKE_ON= -DTHREADSAFE=ON | ||||
THREADS_CMAKE_OFF= -DTHREADSAFE=OFF | THREADS_CMAKE_OFF= -DTHREADSAFE=OFF | ||||
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl | |||||
CURL_CMAKE_ON= -DCURL=ON | |||||
CURL_CMAKE_OFF= -DCURL=OFF | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${ARCH} == "sparc64" | .if ${ARCH} == "sparc64" | ||||
BROKEN= Does not install on sparc64: thread-local storage not supported | BROKEN= Does not install on sparc64: thread-local storage not supported | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e "s|/pkgconfig|/../libdata/pkgconfig|; \ | @${REINPLACE_CMD} -e "s|/pkgconfig|/../libdata/pkgconfig|; \ | ||||
/LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt | /LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt | ||||
.if defined(WITH_OPENSSL_BASE) | .if defined(WITH_OPENSSL_BASE) | ||||
@${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \ | @${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \ | ||||
${WRKSRC}/CMakeLists.txt | ${WRKSRC}/CMakeLists.txt | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |