nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=opencdk
11 PKG_VERSION:=0.6.6
12 PKG_RELEASE:=2
13
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
21 PKG_FIXUP:=libtool
22
23 include $(INCLUDE_DIR)/package.mk
24
25 PKG_INSTALL=1
26
27 define Package/libopencdk
28   SECTION:=libs
29   CATEGORY:=Libraries
30   DEPENDS:=+libgcrypt zlib
31   TITLE:=The Open Crypto Development Kit library
32   URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/
33 endef
34
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.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
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/InstallDev
54         $(INSTALL_DIR) $(2)/bin
55         $(INSTALL_BIN) \
56                 $(PKG_INSTALL_DIR)/usr/bin/opencdk-config \
57                 $(2)/bin/
58         $(SED) \
59                 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60                 $(2)/bin/opencdk-config
61
62         $(INSTALL_DIR) $(1)/usr/include
63         $(INSTALL_DATA) \
64                 $(PKG_INSTALL_DIR)/usr/include/opencdk.h \
65                 $(1)/usr/include/
66
67         $(INSTALL_DIR) $(1)/usr/lib
68         $(CP) \
69                 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{la,so*} \
70                 $(1)/usr/lib/
71 endef
72
73 define Package/libopencdk/install
74         $(INSTALL_DIR) $(1)/usr/lib
75         $(CP) \
76                 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* \
77                 $(1)/usr/lib/
78 endef
79
80 $(eval $(call BuildPackage,libopencdk))