2011-05-27 11:45:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libgit2
|
2014-06-27 18:34:48 +02:00
|
|
|
PORTVERSION= 0.21.0
|
2011-05-27 11:45:29 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2013-06-23 00:22:07 +02:00
|
|
|
MAINTAINER= wg@FreeBSD.org
|
2011-05-27 11:45:29 +02:00
|
|
|
COMMENT= Portable, pure C implementation of the Git core
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-12-31 12:53:12 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= libgit2
|
2013-06-23 00:22:07 +02:00
|
|
|
GH_TAGNAME= v${PORTVERSION}
|
2014-06-27 18:34:48 +02:00
|
|
|
GH_COMMIT= 28f087c
|
2012-12-31 12:53:12 +01:00
|
|
|
|
2013-03-22 21:06:14 +01:00
|
|
|
USES= cmake
|
2012-07-28 14:02:12 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_PYTHON_BUILD= yes
|
2014-01-20 14:11:42 +01:00
|
|
|
USE_OPENSSL= yes
|
2011-05-27 11:45:29 +02:00
|
|
|
|
2014-06-27 18:34:48 +02:00
|
|
|
PLIST_SUB= SHLIB_VER1=${PORTVERSION} \
|
|
|
|
SHLIB_VER2=${PORTVERSION:R:E}
|
2012-07-28 14:02:12 +02:00
|
|
|
|
2014-01-20 14:11:42 +01:00
|
|
|
OPTIONS_DEFINE= SSH
|
|
|
|
OPTIONS_DEFAULT=SSH
|
|
|
|
SSH_DESC= Enable SSH support through libssh2
|
|
|
|
|
|
|
|
SSH_LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2
|
|
|
|
SSH_CMAKE_ON= -DUSE_SSH=ON
|
|
|
|
SSH_CMAKE_OFF= -DUSE_SSH=OFF
|
|
|
|
|
2011-07-16 07:21:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not install on sparc64: thread-local storage not supported
|
|
|
|
.endif
|
|
|
|
|
2011-10-25 08:41:37 +02:00
|
|
|
post-patch:
|
2014-01-20 14:11:42 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|/pkgconfig|/../libdata/pkgconfig|; \
|
|
|
|
/LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt
|
|
|
|
.if defined(WITH_OPENSSL_BASE)
|
|
|
|
@${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.endif
|
2011-10-25 08:41:37 +02:00
|
|
|
|
2011-07-16 07:21:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|