move curl back to packages
[openwrt/svn-archive/archive.git] / libs / opencdk / Makefile
1 #
2 # Copyright (C) 2006, 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=opencdk
12 PKG_VERSION:=0.6.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \
17 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/ \
18 http://www.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ \
19 ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/opencdk/ \
20 http://josefsson.org/gnutls/releases/opencdk/
21 PKG_MD5SUM:=813d62d7afe7b2c2d8f3df0a6c9d9331
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libopencdk
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libgcrypt zlib
29 TITLE:=The Open Crypto Development Kit library
30 URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/
31 endef
32
33 define Package/libopencdk/description
34 This library provides basic parts of the OpenPGP message format.
35 For reference, please read the rfc2440.txt in the doc/ directory.
36 Due to some possible security problems, the library also implements
37 parts of draft-ietf-openpgp-rfc2440bis-08.txt. If you want to exchange
38 messages with earlier PGP version < 7, you should use the compat mode.
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opencdk-config $(1)/usr/bin/
58 mkdir -p $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/opencdk.h $(1)/usr/include/
60 mkdir -p $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{a,so*} $(1)/usr/lib/
62 endef
63
64 define Package/libopencdk/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libopencdk))