8826d09613700f252dc504cc7bcbc58622a0646a
[openwrt/svn-archive/archive.git] / libs / libcrypto++ / Makefile
1 #
2 # Copyright (C) 2009-2010 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 PKG_RELEASE:=2
13
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
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libcryptoxx
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+libpthread
27 TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
28 URL:=http://packages.debian.org/sid/libcrypto++-dev
29 endef
30
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.
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-static \
39 --enable-shared
40
41 TARGET_LDFLAGS += \
42 -lpthread
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/crypto++
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/crypto--/* $(1)/usr/include/crypto++/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/libcryptoxx/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libcryptoxx))