2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libc/libcrypto++/
16 PKG_MD5SUM:=681f830145bf93cbc16113eaf61fbe2a
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libcryptoxx
27 TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
28 URL:=http://packages.debian.org/sid/libcrypto++-dev
31 define Package/package/libcryptoxx
32 Crypto++ is library for creating C++ programs which use cryptographic algorithms.
33 The library uses a Pipes & Filters architecture with heavy use of templates and
34 abstract base classes.
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR); rm -f config.cache GNUmakefile; autoreconf --force --install)
43 $(call Build/Configure/Default,,\
44 LDFLAGS="$(TARGET_LDFLAGS) -lpthread" \
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/crypto++
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/crypto--/* $(1)/usr/include/crypto++/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.{a,so*} $(1)/usr/lib/
55 define Package/libcryptoxx/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
60 $(eval $(call BuildPackage,libcryptoxx))