[PATCH] Upgrade libgpg-error from v1.6 to v1.7.
[openwrt/svn-archive/archive.git] / libs / libgpg-error / Makefile
1 #
2 # Copyright (C) 2005-2009 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:=libgpg-error
11 PKG_VERSION:=1.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error/ \
16 http://mirrors.rootmode.com/ftp.gnupg.org/libgpg-error/ \
17 http://gulus.usherbrooke.ca/pub/appl/GnuPG/libgpg-error/ \
18 http://gnupg.unixmexico.org/ftp/libgpg-error/
19 PKG_MD5SUM:=62c0d09d1e76c5b6da8fff92314c4665
20 PKG_FIXUP:=libtool
21
22 include $(INCLUDE_DIR)/package.mk
23
24 PKG_INSTALL=1
25
26 define Package/libgpg-error
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=GnuPG error handling helper library
30 URL:=http://www.gnupg.org/related_software/libgpg-error/
31 endef
32
33 define Package/libgpg-error/description
34 An helper library for common error codes and descriptions.
35 This is a library that defines common error values for all GnuPG
36 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
37 Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
38 future.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 define Build/Configure
44 $(call Build/Configure/Default, \
45 --enable-shared \
46 --enable-static \
47 --disable-rpath \
48 )
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
53 $(INSTALL_BIN) \
54 $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
55 $(2)/bin/
56 $(SED) \
57 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
58 $(2)/bin/gpg-error-config
59 ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
60
61 $(INSTALL_DIR) $(1)/usr/include
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
64 $(1)/usr/include/
65
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
69 $(1)/usr/lib/
70
71 $(INSTALL_DIR) $(1)/usr/share/aclocal
72 $(INSTALL_DATA) \
73 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
74 $(1)/usr/share/aclocal/
75 endef
76
77 define Package/libgpg-error/install
78 $(INSTALL_DIR) $(1)/usr/lib
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
81 $(1)/usr/lib/
82 endef
83
84 $(eval $(call BuildPackage,libgpg-error))