From owner-svn-ports-all@FreeBSD.ORG Wed Feb 5 19:32:01 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7448D811; Wed, 5 Feb 2014 19:32:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F2151FDE; Wed, 5 Feb 2014 19:32:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s15JW18x005405; Wed, 5 Feb 2014 19:32:01 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s15JW1jW005403; Wed, 5 Feb 2014 19:32:01 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201402051932.s15JW1jW005403@svn.freebsd.org> From: Eitan Adler Date: Wed, 5 Feb 2014 19:32:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342821 - in head/security/cryptopp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 19:32:01 -0000 Author: eadler Date: Wed Feb 5 19:32:00 2014 New Revision: 342821 URL: http://svnweb.freebsd.org/changeset/ports/342821 QAT: https://qat.redports.org/buildarchive/r342821/ Log: - Modernize port: - Stagify - USES=gmake instead of USE_GMAKE - Don't build with -march=native as the build box may not be identical to the run box. Modified: head/security/cryptopp/Makefile head/security/cryptopp/files/patch-GNUmakefile Modified: head/security/cryptopp/Makefile ============================================================================== --- head/security/cryptopp/Makefile Wed Feb 5 19:23:44 2014 (r342820) +++ head/security/cryptopp/Makefile Wed Feb 5 19:32:00 2014 (r342821) @@ -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 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 -.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 + ${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 + ${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 +.include Modified: head/security/cryptopp/files/patch-GNUmakefile ============================================================================== --- head/security/cryptopp/files/patch-GNUmakefile Wed Feb 5 19:23:44 2014 (r342820) +++ head/security/cryptopp/files/patch-GNUmakefile Wed Feb 5 19:32:00 2014 (r342821) @@ -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)