55117848a5c01e6691545fd75e36f2322eacb481
[openwrt/svn-archive/archive.git] / libs / libgpg-error / Makefile
1 #
2 # Copyright (C) 2005-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libgpg-error
12 PKG_VERSION:=1.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error/ \
17 http://mirrors.rootmode.com/ftp.gnupg.org/libgpg-error/ \
18 http://gulus.usherbrooke.ca/pub/appl/GnuPG/libgpg-error/ \
19 http://gnupg.unixmexico.org/ftp/libgpg-error/
20 PKG_MD5SUM:=f3e9870e213518b407a959f8d29cd554
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
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 define Build/Configure
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 --disable-rpath \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config $(1)/usr/bin/
58 mkdir -p $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/gpg-error.h $(1)/usr/include/
60 mkdir -p $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{a,so*} $(1)/usr/lib/
62 mkdir -p $(1)/usr/share/aclocal
63 $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 $(1)/usr/share/aclocal/
64 endef
65
66 define Package/libgpg-error/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libgpg-error))