# $Id: Portfile,v 1.1 2004/05/04 15:14:05 mww Exp $

PortSystem 1.0

name		libcryptopp
version		5.1
categories	devel security
platforms	darwin
maintainers	mww@opendarwin.org
description	C++ class library of cryptographic schemes
long_description	Crypto++ Library is a free C++ class library of \
			cryptographic schemes.

homepage	http://www.eskimo.com/~weidai/cryptlib.html
master_sites	http://gd.tuwien.ac.at/privacy/crypto/libs/cryptlib/
distname	crypto51
checksums	md5 f4bfd4ac39dc1b7f0764d61a1ec4df16
use_zip		yes

worksrcdir

use_configure	no

build.type	gnu
build.args	-f GNUmakefile

test.run	yes
test.cmd	./cryptest.exe
test.target

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/include/cryptopp \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/libcryptopp.a ${destroot}${prefix}/lib
	xinstall -m 644 -W ${worksrcpath} 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 \
		${destroot}${prefix}/include/cryptopp/
	xinstall -m 644 -W ${worksrcpath} Readme.txt License.txt \
		${destroot}${prefix}/share/doc/${name}/
}
