219c4392f0c3acab6c74279c6e1fbbd7370bb3d1
[packages.git] / libs / libcrypto++ / Makefile
1
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libcrypto++
11 PKG_VERSION:=5.6.0
12
13 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
14 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libc/libcrypto++/
15 PKG_MD5SUM:=
16
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libcryptoxx
22   SECTION:=libs
23   CATEGORY:=Libraries
24   DEPENDS:=+libpthread
25   TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
26   URL:=http://packages.debian.org/sid/libcrypto++-dev
27 endef
28
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.
33 endef
34
35 CONFIGURE_ARGS += \
36         --enable-static \
37         --enable-shared
38
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" \
43         )
44 endef
45
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/
51 endef
52
53 define Package/libcryptoxx/install
54         $(INSTALL_DIR) $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libcryptoxx))