[net] Telephony: Yate: Added conffiles. Fixes overwriting of configuration on reinst...
[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:=libtool
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 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" \
45 )
46 endef
47
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/
53 endef
54
55 define Package/libcryptoxx/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypto++.so* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libcryptoxx))