[packages] lzo: update to version 2.06
[openwrt/svn-archive/archive.git] / libs / opencdk / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/attic/opencdk
16 PKG_MD5SUM:=813d62d7afe7b2c2d8f3df0a6c9d9331
17 PKG_FIXUP:=autoreconf
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/libopencdk
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+libgcrypt zlib
27 TITLE:=The Open Crypto Development Kit library
28 URL:=ftp://ftp.gnutls.org/pub/gnutls/attic/opencdk/
29 endef
30
31 define Package/libopencdk/description
32 This library provides basic parts of the OpenPGP message format.
33 For reference, please read the rfc2440.txt in the doc/ directory.
34 Due to some possible security problems, the library also implements
35 parts of draft-ietf-openpgp-rfc2440bis-08.txt. If you want to exchange
36 messages with earlier PGP version < 7, you should use the compat mode.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
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/InstallDev
50 $(INSTALL_DIR) $(2)/bin
51 $(INSTALL_BIN) \
52 $(PKG_INSTALL_DIR)/usr/bin/opencdk-config \
53 $(2)/bin/
54 $(SED) \
55 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
56 $(2)/bin/opencdk-config
57
58 $(INSTALL_DIR) $(1)/usr/include
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/include/opencdk.h \
61 $(1)/usr/include/
62
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{la,so*} \
66 $(1)/usr/lib/
67 endef
68
69 define Package/libopencdk/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* \
73 $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,libopencdk))