ports/security/libgcrypt/Makefile
Greg V fe14cd83da security/libgcrypt: optionalize INFO
Allow the user to optionally exclude INFO files, allowing the space
conscious user the ability to install a minimual package. The default
remains to install INOF files as before.

PR:		259552
Reported by:	Greg V <greg@unrelenting.technology>
Submitted by:	Greg V <greg@unrelenting.technology>
2022-01-26 21:08:40 -08:00

61 lines
1.4 KiB
Makefile

PORTNAME= libgcrypt
DISTVERSION= 1.9.4
CATEGORIES= security
MASTER_SITES= GNUPG
MAINTAINER= cy@FreeBSD.org
COMMENT= General purpose cryptographic library based on the code from GnuPG
LICENSE= GPLv2+ LGPL21+
LICENSE_COMB= multi
BUILD_DEPENDS= libgpg-error>=1.32:security/libgpg-error
RUN_DEPENDS= libgpg-error>=1.32:security/libgpg-error
USES= cpe libtool tar:bzip2
CPE_VENDOR= gnupg
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-drng-support
CONFIGURE_TARGET=${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}
USE_LDCONFIG= yes
TEST_TARGET= check
DOCS= AUTHORS ChangeLog ChangeLog-2011 INSTALL NEWS THANKS TODO \
doc/HACKING doc/README.apichanges
PORTDOCS= *
OPTIONS_DEFINE= DOCS INFO STATIC
OPTIONS_DEFAULT= DOCS INFO STATIC
OPTIONS_SUB= yes
INFO_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-no-info
INFO_CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split"
INFO_INFO= gcrypt
INFO_USES= makeinfo
STATIC_CONFIGURE_ENABLE= static
.include <bsd.port.options.mk>
.if ${ARCH} == "powerpc"
CONFIGURE_ARGS+= --disable-asm
.endif
.if ${ARCH} == "armv6" || ${ARCH} == "armv7"
CONFIGURE_ARGS+= --disable-jent-support
.endif
post-patch:
@${RM} ${WRKSRC}/doc/gcrypt.info*
@${REINPLACE_CMD} -e 's|ALIGN (3)|ALIGN (2)|g' ${WRKSRC}/mpi/i386/*.S
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>