head	1.32;
access;
symbols
	RELEASE_8_3_0:1.29
	RELEASE_9_0_0:1.29
	RELEASE_7_4_0:1.26
	RELEASE_8_2_0:1.26
	RELEASE_6_EOL:1.25
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.25
	RELEASE_8_0_0:1.23
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.21
	RELEASE_6_4_0:1.21
	RELEASE_5_EOL:1.21
	RELEASE_7_0_0:1.21
	RELEASE_6_3_0:1.21
	PRE_XORG_7:1.20
	RELEASE_4_EOL:1.20
	RELEASE_6_2_0:1.18
	RELEASE_6_1_0:1.17
	RELEASE_5_5_0:1.17
	RELEASE_6_0_0:1.17
	RELEASE_5_4_0:1.15
	RELEASE_4_11_0:1.14
	RELEASE_5_3_0:1.12
	RELEASE_4_10_0:1.8
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.32
date	2012.11.17.06.01.02;	author svnexp;	state Exp;
branches;
next	1.31;

1.31
date	2012.10.08.21.55.37;	author delphij;	state Exp;
branches;
next	1.30;

1.30
date	2012.07.23.22.44.33;	author delphij;	state Exp;
branches;
next	1.29;

1.29
date	2011.11.10.05.38.32;	author linimon;	state Exp;
branches;
next	1.28;

1.28
date	2011.09.06.20.01.05;	author delphij;	state Exp;
branches;
next	1.27;

1.27
date	2011.07.16.05.39.43;	author linimon;	state Exp;
branches;
next	1.26;

1.26
date	2011.01.22.23.21.52;	author delphij;	state Exp;
branches;
next	1.25;

1.25
date	2010.01.30.02.56.45;	author delphij;	state Exp;
branches;
next	1.24;

1.24
date	2010.01.30.02.55.37;	author delphij;	state Exp;
branches;
next	1.23;

1.23
date	2009.08.22.00.34.51;	author amdmi3;	state Exp;
branches;
next	1.22;

1.22
date	2009.03.27.00.02.32;	author delphij;	state Exp;
branches;
next	1.21;

1.21
date	2007.10.04.06.00.20;	author edwin;	state Exp;
branches;
next	1.20;

1.20
date	2007.01.15.17.14.38;	author delphij;	state Exp;
branches;
next	1.19;

1.19
date	2007.01.13.18.41.37;	author delphij;	state Exp;
branches;
next	1.18;

1.18
date	2006.10.02.05.35.32;	author delphij;	state Exp;
branches;
next	1.17;

1.17
date	2005.06.12.07.33.40;	author pat;	state Exp;
branches;
next	1.16;

1.16
date	2005.04.10.20.56.05;	author kris;	state Exp;
branches;
next	1.15;

1.15
date	2005.01.30.13.05.17;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2005.01.02.00.49.22;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2004.12.23.09.42.36;	author clement;	state Exp;
branches;
next	1.12;

1.12
date	2004.09.28.02.07.03;	author kris;	state Exp;
branches;
next	1.11;

1.11
date	2004.09.28.01.42.41;	author kris;	state Exp;
branches;
next	1.10;

1.10
date	2004.09.27.23.44.03;	author kris;	state Exp;
branches;
next	1.9;

1.9
date	2004.07.17.19.35.54;	author krion;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.07.12.42.58;	author kris;	state Exp;
branches;
next	1.7;

1.7
date	2004.02.04.05.08.43;	author marcus;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.03.07.28.43;	author linimon;	state Exp;
branches;
next	1.5;

1.5
date	2003.09.24.09.36.57;	author osa;	state Exp;
branches;
next	1.4;

1.4
date	2003.04.21.12.47.38;	author foxfair;	state Exp;
branches;
next	1.3;

1.3
date	2003.04.12.03.23.03;	author foxfair;	state Exp;
branches;
next	1.2;

1.2
date	2003.03.07.06.10.39;	author ade;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.05.06.58.27;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.32
log
@Switch exporter over
@
text
@# Created by: George Reid <greid@@ukug.uk.freebsd.org>
# $FreeBSD: head/security/cryptopp/Makefile 305557 2012-10-08 21:55:37Z delphij $

PORTNAME=		cryptopp
PORTVERSION=		5.6.1
PORTREVISION=		2
CATEGORIES=		security
MASTER_SITES=		SF \
			http://www.cryptopp.com/
DISTNAME=		cryptopp${PORTVERSION:S/.//g}

MAINTAINER=		delphij@@FreeBSD.org
COMMENT=		A free C++ class library of Cryptographic Primitives

OPTIONS_DEFINE=		DEBUG DOCS GCC46 STATIC THREADS
OPTIONS_DEFAULT=	STATIC THREADS
STATIC_DESC=		Build static version only (no shared libs)
GCC46_DESC=		Build with GCC 4.6+

.include <bsd.port.options.mk>

NO_WRKSUBDIR=		yes
USE_ZIP=		yes
EXTRACT_BEFORE_ARGS=	-aq
USE_GMAKE=		yes
MAKE_JOBS_SAFE=		yes
MAKEFILE=		GNUmakefile

LIBVERSION=		0
PLIST_SUB+=		LIBVERSION=${LIBVERSION}
PLIST_SUB+=		PORTVERSION=${PORTVERSION}

.if !${PORT_OPTIONS:MDEBUG}
CXXFLAGS+=		-DNDEBUG
.endif

.if ${PORT_OPTIONS:MGCC46}
USE_GCC=		4.6+
.endif

.if ${PORT_OPTIONS:MSTATIC}
PLIST_SUB+=		DYNAMIC_ENABLED="@@comment "
.else
PLIST_SUB+=		DYNAMIC_ENABLED=""
MAKE_ARGS=		all libcryptopp.so
CXXFLAGS+=		-fPIC
USE_LDCONFIG=		yes
.endif

.if ${PORT_OPTIONS:MTHREADS}
CXXFLAGS+=		${PTHREAD_CFLAGS}
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
	(for i in `${FIND} ${WRKSRC}/ -name '*.h' \
			-and -not -name 'dll.h' \
			-and -not -name 'resource.h'`; do \
		${INSTALL_DATA} $$i ${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 <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64: unrecognized C++ options
.endif

.include <bsd.port.post.mk>
@


1.31
log
@SVN rev 305557 on 2012-10-08 21:55:37Z by delphij

Add a few casts to initializer of int array when the constant is greater
than 0x7fffffff, as they have exceeded the range of standard int.  This
makes the code to compile when -std=c++11.

The resulting binary was not changed by this commit.  PORTREVISION
not bumped intentionally as this is a build fix.

While I'm there, also convert the header to new style.

PR:		ports/171525
Submitted by:	Michael Gmelin <freebsd grem de>
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.30
log
@SVN rev 301416 on 2012-07-23 22:44:33Z by delphij

Make it possible to build and install shared library of crypto++, and
convert to use OPTIONSng [1].

While I'm there, also add an option to build with GCC 4.6.x and newer
binutils, which enables use of AES-NI.

PR:		ports/170045
Submitted by:	Michael Gmelin <freebsd grem.de>
@
text
@d1 1
a1 4
# New ports collection makefile for:   cryptopp
# Date created:        18 January 2001
# Whom:                George Reid <greid@@ukug.uk.freebsd.org>
#
a2 1
#
@


1.29
log
@Mark broken on powerpc as well as sparc64.  (In fact, on all the tier-2s.)

Hat:		portmgr
@
text
@d10 1
a10 1
PORTREVISION=		1
d19 7
d33 24
a56 2
.if !defined(WITH_DEBUG)
CXXFLAGS+=	-DNDEBUG
d68 6
a73 1
.if !defined(NOPORTDOCS)
@


1.28
log
@Fix clang build.

PR:		ports/160509
Submitted by:	h h <aakuusta gmail.com>
@
text
@d47 1
a47 1
.if ${ARCH} == "sparc64"
@


1.27
log
@Does not compile on sparc64: unrecognized C++ options.
@
text
@d10 1
@


1.26
log
@Update to 5.6.1.

Submitted by:	Michael Richards <hackish gmail.com>
Feature safe:	yes
@
text
@d44 7
a50 1
.include <bsd.port.mk>
@


1.25
log
@Apply a vendor fix to sha256 which prevents cryptopp from generating
correct hash if input is not properly aligned. (r470).
@
text
@d9 1
a9 2
PORTVERSION=		5.6.0
PORTREVISION=		1
@


1.24
log
@Pet portlint.

Pointy hat to:	amdmi3
@
text
@d10 1
@


1.23
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@a12 1

@


1.22
log
@Update to 5.6.0 and mark MAKE_JOBS_SAFE.
@
text
@d13 1
@


1.21
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d9 1
a9 1
PORTVERSION=		5.4
d11 2
a12 4
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE} \
			http://www.cryptopp.com/ \
			http://www.mirrors.wiretapped.net/security/cryptography/libraries/cryptolib/
MASTER_SITE_SUBDIR=	${PORTNAME}
d22 1
d25 3
a27 2
pre-install:
	${STRIP_CMD} ${WRKSRC}/cryptest
d30 1
a30 1
	${INSTALL_PROGRAM} ${WRKSRC}/cryptest ${PREFIX}/bin
@


1.20
log
@Replace outdated master sites with new ones.

Submitted by:	Wei Dai <weidai at weidai dot com>
@
text
@a15 1
EXTRACT_SUFX=		.zip
a25 6
.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
BROKEN=		Internal compiler error on alpha 4.x
.endif

d28 1
d44 1
a44 1
.include <bsd.port.post.mk>
@


1.19
log
@Update to 5.4
@
text
@d12 1
a12 2
			http://www.eskimo.com/~weidai/ \
			http://gd.tuwien.ac.at/privacy/crypto/libs/cryptlib/ \
@


1.18
log
@Add a patch from vendor which will hopefully fix gcc 4.1 build.

Spotted by:	pointyhat via portsmon
@
text
@d9 1
a9 2
PORTVERSION=		5.2.1
PORTREVISION=		2
a26 1
CXXFLAGS+=		-fPIC -O0
@


1.17
log
@Disable optimization

PR:		ports/76875
Submitted by:	Thomas Melzer <tmelzer@@tomesoft.de>
Reviewed by:	pav
Approved by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=		1
d33 1
a33 1
BROKEN=		"Internal compiler error on alpha 4.x"
@


1.16
log
@Now builds on sparc64 and (presumably) ia64
@
text
@d28 1
a28 1
CXXFLAGS+=		-fPIC
@


1.15
log
@- Make static library relocatable

Approved by:	Xin LI <delphij@@frontfree.net> (maintainer)
@
text
@a31 4
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN=		"Does not compile on ia64 or sparc64"
.endif

@


1.14
log
@BROKEN on alpha 4.x: Internal compiler error

Approved by:    portmgr (self)
@
text
@d10 1
d28 1
@


1.13
log
@- Update to 5.2.1

PR:		75392
Submitted by:	delphij
@
text
@d34 4
@


1.12
log
@Correct another typo.  :-(

Spotted by:	eik
Approved by:	portmgr (self)
XL pointy hat to: self
@
text
@d9 1
a9 1
PORTVERSION=		5.2
d16 1
a16 1
DISTNAME=		crypto${PORTVERSION:S/.//g}
d19 1
a19 1
MAINTAINER=		delphij@@FreeBSD.org.cn
@


1.11
log
@Correct typo in previous

Approved by:	portmgr (self)
Pointy hat to:	self
@
text
@d30 1
a30 1
.if ${ARCH} == "ia64" && ${ARCH} == "sparc64"
@


1.10
log
@Now builds on amd64

Approved by:	portmgr (self)
@
text
@d30 1
a30 1
.if ${ARCH} == "ia64 && ${ARCH} == "sparc64"
@


1.9
log
@Update to 5.2
Fix build with gcc-3.4
Assign maintainership to submitter.

PR:		ports/69204
Submitted by:	Xin LI <delphij@@frontfree.net>
@
text
@d30 2
a31 2
.if ${ARCH} != "i386" && ${ARCH} != "alpha"
BROKEN=		"Does not compile on !i386 and !alpha"
@


1.8
log
@BROKEN on !i386 and !alpha: Does not compile
@
text
@d9 1
a9 2
PORTVERSION=		5.1
PORTREVISION=		2
d19 1
a19 1
MAINTAINER=		ports@@FreeBSD.org
a27 21
HEADERFILES=		3way.h adler32.h aes.h algebra.h algparam.h arc4.h \
			argnames.h asn.h base64.h basecode.h bench.h \
			blowfish.h blumshub.h cast.h cbcmac.h channels.h \
			config.h crc.h cryptlib.h default.h des.h dh.h dh2.h \
			diamond.h dmac.h dsa.h ec2n.h eccrypto.h ecp.h \
			elgamal.h eprecomp.h esign.h factory.h files.h \
			filters.h fips140.h fltrimpl.h gf256.h gf2_32.h gf2n.h \
			gfpcrypt.h gost.h gzip.h haval.h hex.h hmac.h \
			hrtimer.h ida.h idea.h integer.h iterhash.h lubyrack.h \
			luc.h mars.h md2.h md4.h md5.h md5mac.h mdc.h misc.h \
			modarith.h modes.h modexppc.h mqueue.h mqv.h \
			nbtheory.h network.h nr.h oaep.h oids.h osrng.h \
			panama.h pch.h pkcspad.h polynomi.h pssr.h pubkey.h \
			pwdbased.h queue.h rabin.h randpool.h rc2.h rc5.h \
			rc6.h rijndael.h ripemd.h rng.h rsa.h rw.h safer.h \
			seal.h secblock.h seckey.h serpent.h sha.h shark.h \
			simple.h skipjack.h smartptr.h socketft.h square.h \
			strciphr.h tea.h tiger.h trdlocal.h trunhash.h \
			twofish.h validate.h wait.h wake.h winpipes.h words.h \
			xormac.h xtr.h xtrcrypt.h zdeflate.h zinflate.h zlib.h

d40 5
a44 3
.for H in ${HEADERFILES}
	${INSTALL_DATA} ${WRKSRC}/$H ${PREFIX}/include/cryptopp
.endfor
@


1.7
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d50 6
d71 1
a71 1
.include <bsd.port.mk>
@


1.6
log
@Reset maintainer to ports@@FreeBSD.org.  Requested by: kris.
@
text
@d10 1
a10 1
PORTREVISION=		1
@


1.5
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d20 1
a20 1
MAINTAINER=		greid@@ukug.uk.freebsd.org
@


1.4
log
@PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Fix bento `make package', then bump PORTREVISION.

Noticed by: kris the portsguardian.
@
text
@d51 1
a51 1
	strip ${WRKSRC}/cryptest
@


1.3
log
@Upgrade cryptopp to 5.1, patch review timeout by MAINTAINER since March 26.
@
text
@d10 1
d61 1
a61 1
	${CP} ${WRKSRC}/README.txt ${PREFIX}/share/doc/cryptopp/README
@


1.2
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d9 1
a9 1
PORTVERSION=		4.1
d12 3
a14 1
			http://www.eskimo.com/~weidai/
d17 1
d20 1
a20 1
COMMENT=	A free C++ class library of cryptographic schemes
d28 11
a38 9
HEADERFILES=		3way.h adler32.h aes.h algebra.h arc4.h asn.h base64.h \
			bench.h blowfish.h blumgold.h blumshub.h cast.h cbc.h \
			cbcmac.h channels.h config.h crc.h cryptlib.h des.h \
			default.h dh.h dh2.h diamond.h dmac.h dsa.h ec2n.h \
			eccrypto.h ecp.h elgamal.h eprecomp.h files.h gf256.h \
			filters.h gf2_32.h gf2n.h gost.h gzip.h haval.h hex.h \
			hmac.h hrtimer.h ida.h idea.h integer.h iterhash.h \
			lubyrack.h luc.h mars.h md2.h md5.h md5mac.h mdc.h \
			misc.h modarith.h modes.h modexppc.h mqueue.h mqv.h \
d41 6
a46 5
			queue.h rabin.h randpool.h rc2.h rc5.h rc6.h \
			rijndael.h ripemd.h rng.h rsa.h rw.h safer.h \
			sapphire.h seal.h secshare.h serpent.h sha.h shark.h \
			skipjack.h smartptr.h socketft.h square.h tea.h \
			tiger.h twofish.h validate.h wake.h winpipes.h words.h \
d49 2
d61 1
@


1.1
log
@add cryptopp, a free C++ class library of cryptographic schemes

PR:		24432
Submitted by:	George Reid <greid@@ukug.uk.freebsd.org>
@
text
@d17 1
@

