Skip to content

Commit

Permalink
libcryptopp: update to 8.5.0 (coolsnowwolf#8960)
Browse files Browse the repository at this point in the history
Co-authored-by: AmadeusGhost <[email protected]>
  • Loading branch information
aakkll and aiamadeus authored Feb 27, 2022
1 parent f6c30c9 commit 6fc2927
Show file tree
Hide file tree
Showing 4 changed files with 3,387 additions and 30 deletions.
48 changes: 18 additions & 30 deletions package/lean/libcryptopp/Makefile
Original file line number Diff line number Diff line change
@@ -1,58 +1,46 @@
#
# Copyright (C) 2009-2012 OpenWrt.org
# Copyright (C) 2021 ImmortalWrt
# <https://immortalwrt.org>
#
# This is free software, licensed under the GNU General Public License v2.
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libcryptopp
PKG_VERSION:=5.6.4
PKG_RELEASE:=2
PKG_VERSION:=8.5.0
PKG_RELEASE:=1

PKG_SOURCE:=cryptopp$(subst .,,$(PKG_VERSION)).zip
PKG_SOURCE_URL:=http://www.cryptopp.com/
PKG_MD5SUM:=4ee7e5cdd4a45a14756c169eaf2a77fc
PKG_SOURCE_URL:=https://www.cryptopp.com/
PKG_HASH:=95fc50d59488ebf61a735cce2b2ec2c2561fc682077c7b496273d65a1ed93d9e

PKG_USE_NINJA:=0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)

CMAKE_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)

define Package/libcryptopp
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libpthread +libstdcpp
TITLE:=Free C++ class library of cryptographic schemes
URL:=http://packages.debian.org/sid/libcrypto++-dev
URL:=https://packages.debian.org/sid/libcrypto++-dev
DEPENDS:=+libpthread +libstdcpp
endef

define Package/libcryptopp/description
Crypto++ is library for creating C++ programs which use cryptographic algorithms.
The library uses a Pipes & Filters architecture with heavy use of templates and
abstract base classes.
Crypto++ is library for creating C++ programs which use cryptographic
algorithms. The library uses a Pipes & Filters architecture with heavy
use of templates and abstract base classes.
endef

#CONFIGURE_ARGS += \
# --enable-static \
# --enable-shared

#TARGET_LDFLAGS += \
# -lpthread

CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(FPIC)"
CMAKE_OPTIONS += -DBUILD_STATIC=ON
CMAKE_OPTIONS += -DBUILD_SHARED=ON

UNPACK_CMD=cd $(PKG_BUILD_DIR) && unzip "$(DL_DIR)/$(PKG_SOURCE)"

define Build/Prepare
$(Build/Prepare/Default)
cd $(PKG_BUILD_DIR) && rm -f GNUmakefile GNUmakefile-cross
cd $(PKG_BUILD_DIR); rm -f GNUmakefile GNUmakefile-cross
endef

define Build/InstallDev
Expand Down
Loading

0 comments on commit 6fc2927

Please sign in to comment.