diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2014-02-05 19:32:00 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2014-02-05 19:32:00 +0000 |
commit | e376724077f69a9360449e9f401f883088aeb108 (patch) | |
tree | c42a3e54d1d807f6467be950bb749edc1c0fa74a /security/cryptopp | |
parent | 84deb27d0876eb84fc2296fc0fadb1c726f08577 (diff) | |
download | ports-e376724077f69a9360449e9f401f883088aeb108.tar.gz ports-e376724077f69a9360449e9f401f883088aeb108.zip |
Notes
Diffstat (limited to 'security/cryptopp')
-rw-r--r-- | security/cryptopp/Makefile | 30 | ||||
-rw-r--r-- | security/cryptopp/files/patch-GNUmakefile | 15 |
2 files changed, 25 insertions, 20 deletions
diff --git a/security/cryptopp/Makefile b/security/cryptopp/Makefile index ca215b55220d..6bf3de48dd7f 100644 --- a/security/cryptopp/Makefile +++ b/security/cryptopp/Makefile @@ -3,6 +3,7 @@ PORTNAME= cryptopp PORTVERSION= 5.6.2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF \ http://www.cryptopp.com/ @@ -16,13 +17,12 @@ OPTIONS_DEFAULT= STATIC THREADS STATIC_DESC= Build static version only (no shared libs) GCC_DESC= Build with current GCC -NO_STAGE= yes .include <bsd.port.options.mk> NO_WRKSUBDIR= yes USE_ZIP= yes EXTRACT_BEFORE_ARGS= -aq -USE_GMAKE= yes +USES= gmake MAKEFILE= GNUmakefile LIBVERSION= 0 @@ -52,29 +52,25 @@ LDFLAGS+= ${PTHREAD_LIBS} .endif do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/cryptest.exe ${PREFIX}/bin/cryptest - ${INSTALL_DATA} ${WRKSRC}/libcryptopp.a ${PREFIX}/lib - ${MKDIR} ${PREFIX}/include/cryptopp + ${INSTALL_PROGRAM} ${WRKSRC}/cryptest.exe ${STAGEDIR}${PREFIX}/bin/cryptest + ${INSTALL_DATA} ${WRKSRC}/libcryptopp.a ${STAGEDIR}${PREFIX}/lib + ${MKDIR} ${STAGEDIR}${PREFIX}/include/cryptopp (for i in `${FIND} ${WRKSRC}/ -name '*.h' \ -and -not -name 'dll.h' \ -and -not -name 'resource.h'`; do \ - ${INSTALL_DATA} $$i ${PREFIX}/include/cryptopp; \ + ${INSTALL_DATA} $$i ${STAGEDIR}${PREFIX}/include/cryptopp; \ done) .if !${PORT_OPTIONS:MSTATIC} - ${INSTALL_LIB} ${WRKSRC}/libcryptopp.so ${PREFIX}/lib/libcryptopp.so.${PORTVERSION} - ${LN} -fs libcryptopp.so.${PORTVERSION} ${PREFIX}/lib/libcryptopp.so.${LIBVERSION} - ${LN} -fs libcryptopp.so.${LIBVERSION} ${PREFIX}/lib/libcryptopp.so + ${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.${LIBVERSION} ${STAGEDIR}${PREFIX}/lib/libcryptopp.so .endif -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${PREFIX}/share/doc/cryptopp - ${CP} ${WRKSRC}/Readme.txt ${PREFIX}/share/doc/cryptopp/README - ${CP} ${WRKSRC}/License.txt ${PREFIX}/share/doc/cryptopp/License -.endif - -.include <bsd.port.pre.mk> + ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/cryptopp + ${CP} ${WRKSRC}/Readme.txt ${STAGEDIR}${PREFIX}/share/doc/cryptopp/README + ${CP} ${WRKSRC}/License.txt ${STAGEDIR}${PREFIX}/share/doc/cryptopp/License .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64: unrecognized C++ options .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/cryptopp/files/patch-GNUmakefile b/security/cryptopp/files/patch-GNUmakefile index 1a8d60ec4520..82a7ad452030 100644 --- a/security/cryptopp/files/patch-GNUmakefile +++ b/security/cryptopp/files/patch-GNUmakefile @@ -1,12 +1,21 @@ ---- GNUmakefile.orig 2013-02-20 15:30:52.000000000 -0800 -+++ GNUmakefile 2013-05-22 15:43:40.000000000 -0700 +--- ./GNUmakefile.orig 2013-02-20 15:30:52.000000000 -0500 ++++ ./GNUmakefile 2014-02-05 14:26:22.994957010 -0500 @@ -1,4 +1,4 @@ -CXXFLAGS = -DNDEBUG -g -O2 +#CXXFLAGS = -DNDEBUG -g -O2 # -O3 fails to link on Cygwin GCC version 4.5.3 # -fPIC is supported. Please report any breakage of -fPIC as a bug. # CXXFLAGS += -fPIC -@@ -165,7 +165,7 @@ +@@ -38,8 +38,6 @@ + ifneq ($(GCC42_OR_LATER),0) + ifeq ($(UNAME),Darwin) + CXXFLAGS += -arch x86_64 -arch i386 +-else +-CXXFLAGS += -march=native + endif + endif + +@@ -165,7 +163,7 @@ $(RANLIB) $@ libcryptopp.so: $(LIBOBJS) |