DESCRIPTION:= is obselete
[packages.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.4
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:=7bfc820bcdc08f0c31f860710368071e
22 PKG_CAT:=bzcat
23
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
25 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libopencdk
30   SECTION:=libs
31   CATEGORY:=Libraries
32   DEPENDS:=+libgcrypt zlib
33   TITLE:=The Open Crypto Development Kit library
34   URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/
35 endef
36
37 define Package/libopencdk/description
38         This library provides basic parts of the OpenPGP message format.
39         For reference, please read the rfc2440.txt in the doc/ directory.
40         Due to some possible security problems, the library also implements 
41         parts of draft-ietf-openpgp-rfc2440bis-08.txt. If you want to exchange 
42         messages with earlier PGP version < 7, you should use the compat mode.
43 endef
44
45 define Build/Configure
46         $(call Build/Configure/Default, \
47                 --enable-shared \
48                 --enable-static \
49                 --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
50         )
51 endef
52
53 define Build/Compile
54         $(MAKE) -C $(PKG_BUILD_DIR) \
55                 DESTDIR="$(PKG_INSTALL_DIR)" \
56                 all install
57 endef
58
59 define Build/InstallDev
60         mkdir -p $(1)/usr/bin
61         $(CP) $(PKG_INSTALL_DIR)/usr/bin/opencdk-config $(1)/usr/bin/
62         mkdir -p $(1)/usr/include
63         $(CP) $(PKG_INSTALL_DIR)/usr/include/opencdk.h $(1)/usr/include/
64         mkdir -p $(1)/usr/lib
65         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{a,so*} $(1)/usr/lib/
66 endef
67
68 define Build/UninstallDev
69         rm -rf \
70                 $(STAGING_DIR)/usr/bin/opencdk-config \
71                 $(STAGING_DIR)/usr/include/opencdk.h \
72                 $(STAGING_DIR)/usr/lib/libopencdk.{a,so*}
73 endef
74
75 define Package/libopencdk/install
76         $(INSTALL_DIR) $(1)/usr/lib
77         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(1)/usr/lib/
78 endef
79
80 $(eval $(call BuildPackage,libopencdk))