2010-02-19 00:14:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2009-09-27 21:05:00 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libcrypto++
|
|
|
|
PKG_VERSION:=5.6.0
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-09-27 21:05:00 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libc/libcrypto++/
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=681f830145bf93cbc16113eaf61fbe2a
|
2009-09-27 21:05:00 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2009-09-27 21:05:00 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libcryptoxx
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libpthread
|
|
|
|
TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
|
|
|
|
URL:=http://packages.debian.org/sid/libcrypto++-dev
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/package/libcryptoxx
|
|
|
|
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
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -f config.cache GNUmakefile; autoreconf --force --install)
|
|
|
|
$(call Build/Configure/Default,,\
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lpthread" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/crypto++
|
2009-09-27 21:05:00 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/crypto--/* $(1)/usr/include/crypto++/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-09-27 21:05:00 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.{a,so*} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcryptoxx/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libcryptoxx))
|