freebsd-ports/security/git-crypt/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= git-crypt
PORTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://www.agwa.name/projects/git-crypt/downloads/ \
LOCAL/ashish/
MAINTAINER= ashish@FreeBSD.org
COMMENT= Transparent file encryption in git
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= git:devel/git \
gpg:security/gnupg
OPTIONS_DEFINE= MANPAGES
MAKE_ENV+= PREFIX=${PREFIX} "CXXFLAGS=${CXXFLAGS}" \
"LDFLAGS=${LDFLAGS}"
MANPAGES_BUILD_DEPENDS= xsltproc:textproc/libxslt \
docbook-xsl>=0:textproc/docbook-xsl
MANPAGES_MAKE_ARGS= ENABLE_MAN=yes \
MANDIR=${MANPREFIX}/man \
DOCBOOK_XSL=${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
USES= compiler:c++11-lang gmake ssl
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} != base
CXXFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
.endif
post-extract:
@${GREP} -Rl '"gpg"' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's,"gpg","${LOCALBASE}/bin/gpg",'
@${GREP} -Rl '"git"' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's,"git","${LOCALBASE}/bin/git",'
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/git-crypt
.include <bsd.port.post.mk>