mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
crypto++: new recipe (#1298)
This commit is contained in:
committed by
waddlesplash
parent
6a53599c2a
commit
29de5fb89d
77
dev-libs/crypto++/crypto++-5.6.5.recipe
Normal file
77
dev-libs/crypto++/crypto++-5.6.5.recipe
Normal file
@@ -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
|
||||
}
|
||||
23
dev-libs/crypto++/licenses/Boost v1.0
Normal file
23
dev-libs/crypto++/licenses/Boost v1.0
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user