neon: moved to github
[packages.git] / libs / libcrypto++ / Makefile
1 #
2 # Copyright (C) 2009-2012 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:=3
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_REMOVE_FILES:=aclocal.m4 GNUmakefile
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libcryptoxx
25   SECTION:=libs
26   CATEGORY:=Libraries
27   DEPENDS:=+libpthread +libstdcpp
28   TITLE:=Crypto++ is library for creating C++ programs which use cryptographic algorithms
29   URL:=http://packages.debian.org/sid/libcrypto++-dev
30 endef
31
32 define Package/package/libcryptoxx
33   Crypto++ is library for creating C++ programs which use cryptographic algorithms.
34   The library uses a Pipes & Filters architecture with heavy use of templates and
35   abstract base classes.
36 endef
37
38 CONFIGURE_ARGS += \
39         --enable-static \
40         --enable-shared
41
42 TARGET_LDFLAGS += \
43         -lpthread
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/include/crypto++
47         $(CP) $(PKG_INSTALL_DIR)/usr/include/crypto--/* $(1)/usr/include/crypto++/
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.{a,so*} $(1)/usr/lib/
50 endef
51
52 define Package/libcryptoxx/install
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libcryptoxx))