ports/security/nettle/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

56 lines
1.5 KiB
Makefile

PORTNAME= nettle
PORTVERSION= 3.9.1
CATEGORIES= security
MASTER_SITES= GNU \
https://www.lysator.liu.se/~nisse/archive/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Low-level cryptographic library
WWW= https://www.lysator.liu.se/~nisse/nettle/
LICENSE= GPLv2+ LGPL3
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYINGv2
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LESSERv3
BUILD_DEPENDS= gmp>=6.1.0:math/gmp
LIB_DEPENDS= libgmp.so:math/gmp
USES= compiler:c11 cpe gmake localbase makeinfo pathfix
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ENV= M4="/usr/bin/m4 -g"
GNU_CONFIGURE= yes
TEST_TARGET= check
USE_LDCONFIG= yes
INFO= nettle
CPE_VENDOR= nettle_project
OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_CFLAGS= -I${OPENSSLINC}
EXAMPLES_USES= ssl
EXAMPLES_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in
.include <bsd.port.options.mk>
.if ${ARCH} == "mips64"
post-patch:
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} NEWS README nettle.html nettle.pdf ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_PROGRAM} base16dec base16enc base64dec base64enc ecc-benchmark hogweed-benchmark nettle-benchmark random-prime rsa-decrypt rsa-encrypt rsa-keygen rsa-sign rsa-verify ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>