immortalwrt/package/lean/libcryptopp/Makefile

59 lines
1.6 KiB
Makefile
Raw Normal View History

2019-11-08 22:57:22 +08:00
#
# Copyright (C) 2021 ImmortalWrt
# <https://immortalwrt.org>
2019-11-08 22:57:22 +08:00
#
# This is free software, licensed under the GNU General Public License v3.
2019-11-08 22:57:22 +08:00
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libcryptopp
2020-12-20 16:20:01 +08:00
PKG_VERSION:=8.3.0
PKG_RELEASE:=2
2019-11-08 22:57:22 +08:00
PKG_SOURCE:=cryptopp$(subst .,,$(PKG_VERSION)).zip
2020-08-03 02:55:44 +08:00
PKG_SOURCE_URL:=https://www.cryptopp.com/
2020-12-20 16:20:01 +08:00
PKG_HASH:=db38a15a6b1c337c665e2ebeb731dd0754b05e45504897d0f2fe4ae9f5ee589a
2019-11-08 22:57:22 +08:00
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
2019-11-08 22:57:22 +08:00
include $(INCLUDE_DIR)/package.mk
UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
2019-11-08 22:57:22 +08:00
define Package/libcryptopp
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
2020-08-03 02:55:44 +08:00
URL:=https://packages.debian.org/sid/libcrypto++-dev
DEPENDS:=+libpthread +libstdcpp
2019-11-08 22:57:22 +08:00
endef
define Package/package/libcryptopp
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
define Build/Prepare
$(Build/Prepare/Default)
cd $(PKG_BUILD_DIR); rm -f GNUmakefile GNUmakefile-cross
2019-11-08 22:57:22 +08:00
endef
2019-11-08 22:57:22 +08:00
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/cryptopp
$(CP) $(PKG_INSTALL_DIR)/usr/include/cryptopp/* $(1)/usr/include/cryptopp/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptopp.{a,so*} $(1)/usr/lib/
endef
define Package/libcryptopp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptopp.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcryptopp))