[packages] libgpg-error: purge private libtool copy and force full autoreconf
[packages.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
21 PKG_FIXUP:=libtool
22 PKG_REMOVE_FILES:=m4/libtool.m4 ltmain.sh autogen.sh
23
24 include $(INCLUDE_DIR)/package.mk
25
26 PKG_INSTALL=1
27
28 define Package/libgpg-error
29   SECTION:=libs
30   CATEGORY:=Libraries
31   TITLE:=GnuPG error handling helper library
32   URL:=http://www.gnupg.org/related_software/libgpg-error/
33 endef
34
35 define Package/libgpg-error/description
36         An helper library for common error codes and descriptions.
37         This is a library that defines common error values for all GnuPG 
38         components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, 
39         Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the 
40         future.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 define Build/Configure
46         $(call Build/Configure/Default, \
47                 --enable-shared \
48                 --enable-static \
49                 --disable-rpath \
50         )
51 endef
52
53 define Build/InstallDev
54         $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
55         $(INSTALL_BIN) \
56                 $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
57                 $(2)/bin/
58         $(SED) \
59                 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60                 $(2)/bin/gpg-error-config
61         ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
62
63         $(INSTALL_DIR) $(1)/usr/include
64         $(INSTALL_DATA) \
65                 $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
66                 $(1)/usr/include/
67
68         $(INSTALL_DIR) $(1)/usr/lib
69         $(CP) \
70                 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
71                 $(1)/usr/lib/
72
73         $(INSTALL_DIR) $(1)/usr/share/aclocal
74         $(INSTALL_DATA) \
75                 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
76                 $(1)/usr/share/aclocal/
77 endef
78
79 define Package/libgpg-error/install
80         $(INSTALL_DIR) $(1)/usr/lib
81         $(CP) \
82                 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
83                 $(1)/usr/lib/
84 endef
85
86 $(eval $(call BuildPackage,libgpg-error))