security/libtomcrypt: use official tarball, install PDF, bump PORTREVISION

Reported by:	mat
This commit is contained in:
Pietro Cerutti 2018-01-23 08:51:20 +00:00
parent bf329b940c
commit 5efc728395
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459730
2 changed files with 14 additions and 9 deletions

View File

@ -3,8 +3,10 @@
PORTNAME= libtomcrypt
PORTVERSION= 1.18.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://github.com/libtom/${PORTNAME}/releases/download/v${PORTVERSION}/
DISTNAME= crypt-${PORTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Comprehensive, modular, and portable cryptographic toolkit
@ -12,18 +14,17 @@ COMMENT= Comprehensive, modular, and portable cryptographic toolkit
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/LICENSE
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CFLAGS+= -I${LOCALBASE}/include
EXTRALIBS= -L${LOCALBASE}/lib
MAKEFILE= makefile.shared
ALL_TARGET= library
MAKE_ARGS= INCPATH="${PREFIX}/include" LIBPATH="${PREFIX}/lib" \
EXTRALIBS="${EXTRALIBS}"
USES= gmake libtool:build
USES= gmake libtool:build tar:xz
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= libtom
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= MATH
OPTIONS_MULTI_MATH= LIBTOMMATH TOMSFASTMATH GMP
@ -44,7 +45,7 @@ GMP_LIB_DEPENDS= libgmp.so:math/gmp
GMP_CFLAGS= -DGMP_DESC
GMP_VARS= EXTRALIBS+=-lgmp
DOCS_MAKE_ARGS_OFF= NODOCS=yes
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's| make | $$(MAKE) |' \
@ -54,6 +55,10 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtomcrypt.so.1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/crypt.pdf ${STAGEDIR}${DOCSDIR}
do-test:
# TomsFastMath
@${ECHO_CMD} "Testing TomsFastMath"

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1516618104
SHA256 (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = e1319d77bf8ac296b69cf68f66e4dadfb68a8519bd684cc83d29b8d6754d10ef
SIZE (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = 2299746
TIMESTAMP = 1516696801
SHA256 (crypt-1.18.1.tar.xz) = 57c13a34fbfd45696189d19e47864e48f4e5c11590c29b444accb8edbf047f14
SIZE (crypt-1.18.1.tar.xz) = 2614492