diff --git a/dev-libs/crypto++/crypto++-5.6.5.recipe b/dev-libs/crypto++/crypto++-5.6.5.recipe new file mode 100644 index 000000000..25d1329aa --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.6.5.recipe @@ -0,0 +1,77 @@ +SUMMARY="A free C++ class library of cryptographic schemes" +DESCRIPTION="Crypto++ is a C++ Class Library of Cryptographic Schemes \ +The library contains the following algorithms: +* Authenticated encryption schemes: (GCM, CCM, EAX) +* High speed stream ciphers: ChaCha (ChaCha8/12/20), Panama +* AES and AES candidates: AES (Rijndael), RC6, MARS, Twofish, Serpent +* Other block ciphers: IDEA, DES, Camellia, SEED, RC5, Blowfish, +* Block cipher modes of operation: ECB, CBC, CBC (CTS), CFB, OFB +* Message authentication codes: VMAC, HMAC, GMAC, CMAC, CBC-MAC, DMAC +* Hash functions: BLAKE2 (BLAKE2b, BLAKE2s), SHA-1, SHA-2, SHA-3 +* Public-key cryptography: RSA, DSA, ElGamal, Nyberg-Rueppel (NR) +* Padding schemes for public-key systems: PKCS#1 v2.0, OAEP, PSS, +* Key agreement schemes: Diffie-Hellman (DH), Unified Diffie-Hellman (DH2), +* Elliptic curve cryptography: ECDSA, ECNR, ECIES, ECDH, ECMQV +* Insecure or obsolescent algorithms: MD2, MD4, MD5 +* And many more other algorithms." +HOMEPAGE="https://cryptopp.com" +COPYRIGHT="2015-2017 Wei Dai" +LICENSE="Boost v1.0" +REVISION="1" +SOURCE_URI="https://www.cryptopp.com/cryptopp565.zip" +CHECKSUM_SHA256="a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34" +SOURCE_DIR="" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + crypto++$secondaryArchSuffix = $portVersion compat >= 5 + lib:libcryptopp$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + crypto++${secondaryArchSuffix}_devel = $portVersion + devel:libcryptopp$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + crypto++$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:nasm + " + +BUILD() +{ + make shared dynamic static $jobArgs +} + +INSTALL() +{ + make install PREFIX=$prefix INCLUDEDIR=$includeDir + + mv $libDir/libcryptopp.so $libDir/libcryptopp.so.$portVersion + ln -s $libDir/libcryptopp.so.$portVersion $libDir/libcryptopp.so.5 + ln -s $libDir/libcryptopp.so.5 $libDir/libcryptopp.so + + prepareInstalledDevelLib libcryptopp + + packageEntries devel \ + $relativeDevelopDir +} + +TEST() +{ + make test +} diff --git a/dev-libs/crypto++/licenses/Boost v1.0 b/dev-libs/crypto++/licenses/Boost v1.0 new file mode 100644 index 000000000..36b7cd93c --- /dev/null +++ b/dev-libs/crypto++/licenses/Boost v1.0 @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.