2 # Copyright (C) 2006, 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \
16 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/ \
17 http://www.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ \
18 ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/opencdk/ \
19 http://josefsson.org/gnutls/releases/opencdk/
20 PKG_MD5SUM:=813d62d7afe7b2c2d8f3df0a6c9d9331
23 include $(INCLUDE_DIR)/package.mk
27 define Package/libopencdk
30 DEPENDS:=+libgcrypt zlib
31 TITLE:=The Open Crypto Development Kit library
32 URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/
35 define Package/libopencdk/description
36 This library provides basic parts of the OpenPGP message format.
37 For reference, please read the rfc2440.txt in the doc/ directory.
38 Due to some possible security problems, the library also implements
39 parts of draft-ietf-openpgp-rfc2440bis-08.txt. If you want to exchange
40 messages with earlier PGP version < 7, you should use the compat mode.
43 TARGET_CFLAGS += $(FPIC)
45 define Build/Configure
46 $(call Build/Configure/Default, \
49 --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
53 define Build/InstallDev
54 $(INSTALL_DIR) $(2)/bin
56 $(PKG_INSTALL_DIR)/usr/bin/opencdk-config \
59 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60 $(2)/bin/opencdk-config
62 $(INSTALL_DIR) $(1)/usr/include
64 $(PKG_INSTALL_DIR)/usr/include/opencdk.h \
67 $(INSTALL_DIR) $(1)/usr/lib
69 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{la,so*} \
73 define Package/libopencdk/install
74 $(INSTALL_DIR) $(1)/usr/lib
76 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* \
80 $(eval $(call BuildPackage,libopencdk))