2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.cryptopp.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="A free C++ class library of cryptographic schemes"
|
2022-03-20 12:21:34 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSL-1.0, BSD 3-Clause"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="License.txt"
|
2022-01-31 19:18:51 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-24 20:12:46 +02:00
|
|
|
TERMUX_PKG_VERSION=8.6.0
|
2022-03-20 12:21:34 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2021-05-12 16:51:51 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/weidai11/cryptopp/archive/refs/tags/CRYPTOPP_${TERMUX_PKG_VERSION//./_}.tar.gz
|
2021-09-24 20:12:46 +02:00
|
|
|
TERMUX_PKG_SHA256=9304625f4767a13e0a5f26d0f019d78cf9375604a33e5391c3bf2e81399dfeb8
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
TERMUX_PKG_AUTO_UPDATE_TAG_REGEXP="\d+.\d+.\d+"
|
2022-03-20 12:21:34 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libc++"
|
2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_BREAKS="cryptopp-dev"
|
|
|
|
TERMUX_PKG_REPLACES="cryptopp-dev"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2021-05-12 16:51:51 +02:00
|
|
|
TERMUX_PKG_MAKE_INSTALL_TARGET="install-lib"
|
2019-09-08 15:04:48 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
bin/
|
|
|
|
share/cryptopp/
|
|
|
|
"
|
|
|
|
|
2021-05-12 16:51:51 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
export CXXFLAGS+=" -fPIC -DCRYPTOPP_DISABLE_ASM"
|
2021-05-12 16:58:47 +02:00
|
|
|
export TERMUX_PKG_EXTRA_MAKE_ARGS+=" dynamic libcryptopp.pc CC=$CC CXX=$CXX"
|
2019-09-08 15:04:48 +02:00
|
|
|
}
|