2 # Copyright (C) 2009 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
13 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
14 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libc/libcrypto++/
19 include $(INCLUDE_DIR)/package.mk
21 define Package/libcryptoxx
25 TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
26 URL:=http://packages.debian.org/sid/libcrypto++-dev
29 define Package/package/libcryptoxx
30 Crypto++ is library for creating C++ programs which use cryptographic algorithms.
31 The library uses a Pipes & Filters architecture with heavy use of templates and
32 abstract base classes.
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -f config.cache GNUmakefile; autoreconf --force --install)
41 $(call Build/Configure/Default,,\
42 LDFLAGS="$(TARGET_LDFLAGS) -lpthread" \
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include/crypto++
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/crypto--/* $(1)/usr/include/crypto++/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.{a,so*} $(1)/usr/lib/
53 define Package/libcryptoxx/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
58 $(eval $(call BuildPackage,libcryptoxx))