Reduce portmap priority, so that nfs shares specified in fstab can be mouted without...
[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 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/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 endef
56
57 define Build/InstallDev
58 mkdir -p $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config $(1)/usr/bin/
60 mkdir -p $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/gpg-error.h $(1)/usr/include/
62 mkdir -p $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{a,so*} $(1)/usr/lib/
64 mkdir -p $(1)/usr/share/aclocal
65 $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 $(1)/usr/share/aclocal/
66 endef
67
68 define Package/libgpg-error/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libgpg-error))