svn commit: r464184 - head/security/cryptopp
Jason E. Hale
jhale at FreeBSD.org
Sun Mar 11 16:10:21 UTC 2018
Author: jhale
Date: Sun Mar 11 16:10:19 2018
New Revision: 464184
URL: https://svnweb.freebsd.org/changeset/ports/464184
Log:
Reinstate the cryptest binary removed in r428022 as it may be useful to some
people. Since it was installed by default before, so it shall be now. It can
be toggled with the TOOLS option. For the regression tests to run, it must be
toggled OFF due to environment restrictions.
While here:
- Switch to plain USES=zip, it extracts fine with base unzip
- Clean up whitespace
- Fix portlint warnings
- Rename LIBVERSION variable to SOVERSION
PR: 222930
Submitted by: Roberto Fernandez Cueto <roberfern at gmail.com>
Modified:
head/security/cryptopp/Makefile
head/security/cryptopp/pkg-plist
Modified: head/security/cryptopp/Makefile
==============================================================================
--- head/security/cryptopp/Makefile Sun Mar 11 15:49:13 2018 (r464183)
+++ head/security/cryptopp/Makefile Sun Mar 11 16:10:19 2018 (r464184)
@@ -5,43 +5,41 @@
# links to the static library, so bump PORTREVISION of dependent
# ports when appropriate.
-PORTNAME= cryptopp
-PORTVERSION= 5.6.5
-PORTREVISION= 3
-CATEGORIES= security
-MASTER_SITES= http://www.cryptopp.com/
-DISTNAME= cryptopp${PORTVERSION:S/.//g}
+PORTNAME= cryptopp
+PORTVERSION= 5.6.5
+PORTREVISION= 4
+CATEGORIES= security
+MASTER_SITES= http://www.cryptopp.com/
+DISTNAME= cryptopp${PORTVERSION:S/.//g}
-MAINTAINER= jhale at FreeBSD.org
-COMMENT= Free C++ class library of Cryptographic Primitives
+MAINTAINER= jhale at FreeBSD.org
+COMMENT= Free C++ class library of Cryptographic Primitives
-LICENSE= BSL
-LICENSE_FILE= ${WRKSRC}/License.txt
+LICENSE= BSL
+LICENSE_FILE= ${WRKSRC}/License.txt
-USES= cpe gmake zip:infozip
-USE_LDCONFIG= yes
+BROKEN_powerpc= does not compile; unrecognized C++ options
-CPE_PRODUCT= crypto++
-CPE_VENDOR= cryptopp
+USES= cpe gmake zip
+USE_LDCONFIG= yes
+CPE_PRODUCT= crypto++
+CPE_VENDOR= cryptopp
-BROKEN_powerpc= does not compile; unrecognized C++ options
-
EXTRACT_BEFORE_ARGS= -aq
NO_WRKSUBDIR= yes
-CXXFLAGS+= -Wno-deprecated-declarations -fPIC
-MAKEFILE= GNUmakefile
-ALL_TARGET= static shared
-TEST_TARGET= test
+CXXFLAGS+= -Wno-deprecated-declarations -fPIC
+MAKEFILE= GNUmakefile
+ALL_TARGET= static shared
-LIBVERSION= ${PORTVERSION:R:R}
-PLIST_SUB+= LIBVERSION=${LIBVERSION} \
- PORTVERSION=${PORTVERSION}
+SOVERSION= ${PORTVERSION:R:R}
+PLIST_SUB+= SOVERSION=${SOVERSION} \
+ PORTVERSION=${PORTVERSION}
-OPTIONS_DEFINE= DEBUG DOCS FULL_DEBUG THREADS
+OPTIONS_DEFINE= DEBUG DOCS FULL_DEBUG THREADS TOOLS
OPTIONS_DEFINE_amd64= SIMD
OPTIONS_DEFINE_i386= SIMD
-OPTIONS_DEFAULT= THREADS
+OPTIONS_DEFAULT= THREADS TOOLS
OPTIONS_SUB= yes
# Always compile with -DNDEBUG for release. Otherwise, sensitive
@@ -52,6 +50,12 @@ FULL_DEBUG_CXXFLAGS= -DCRYPTOPP_DEBUG
FULL_DEBUG_CXXFLAGS_OFF=-DNDEBUG
FULL_DEBUG_IMPLIES= DEBUG
+# Disable this option to run the regression tests.
+TOOLS_DESC= Install encryption/decryption tools
+TOOLS_MAKE_ENV= CRYPTOPP_DATA_DIR=${DATADIR}/
+TOOLS_ALL_TARGET= cryptest.exe
+TOOLS_TEST_TARGET_OFF= test
+
THREADS_LDFLAGS= -lpthread
.include <bsd.port.options.mk>
@@ -97,7 +101,7 @@ pre-configure-FULL_DEBUG-on:
do-install:
${INSTALL_DATA} ${WRKSRC}/libcryptopp.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libcryptopp.so ${STAGEDIR}${PREFIX}/lib/libcryptopp.so.${PORTVERSION}
- ${LN} -fs libcryptopp.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcryptopp.so.${LIBVERSION}
+ ${LN} -fs libcryptopp.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcryptopp.so.${SOVERSION}
${LN} -fs libcryptopp.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcryptopp.so
@${MKDIR} ${STAGEDIR}${PREFIX}/include/cryptopp
(for i in `${FIND} ${WRKSRC}/ -name '*.h' \
@@ -109,5 +113,10 @@ do-install:
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}/README
+
+do-install-TOOLS-on:
+ @${MKDIR} ${STAGEDIR}${DATADIR}/TestData
+ ${INSTALL_PROGRAM} ${WRKSRC}/cryptest.exe ${STAGEDIR}${PREFIX}/bin/cryptest
+ ${INSTALL_DATA} ${WRKSRC}/TestData/usage.dat ${STAGEDIR}${DATADIR}/TestData
.include <bsd.port.post.mk>
Modified: head/security/cryptopp/pkg-plist
==============================================================================
--- head/security/cryptopp/pkg-plist Sun Mar 11 15:49:13 2018 (r464183)
+++ head/security/cryptopp/pkg-plist Sun Mar 11 16:10:19 2018 (r464184)
@@ -1,3 +1,4 @@
+%%TOOLS%%bin/cryptest
include/cryptopp/3way.h
include/cryptopp/adler32.h
include/cryptopp/aes.h
@@ -143,6 +144,7 @@ include/cryptopp/zinflate.h
include/cryptopp/zlib.h
lib/libcryptopp.a
lib/libcryptopp.so
-lib/libcryptopp.so.%%LIBVERSION%%
+lib/libcryptopp.so.%%SOVERSION%%
lib/libcryptopp.so.%%PORTVERSION%%
+%%TOOLS%%%%DATADIR%%/TestData/usage.dat
%%PORTDOCS%%%%DOCSDIR%%/README
More information about the svn-ports-head
mailing list