Merge pull request #17303 from CarlosDerSeher/feature_bt_agent
[feed/packages.git] / libs / libgpg-error / Makefile
1 #
2 # Copyright (C) 2005-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:=libgpg-error
11 PKG_VERSION:=1.43
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://mirrors.dotsrc.org/gcrypt/libgpg-error \
16 http://ring.ksc.gr.jp/archives/net/gnupg/libgpg-error \
17 https://www.gnupg.org/ftp/gcrypt/libgpg-error
18 PKG_HASH:=a9ab83ca7acc442a5bd846a75b920285ff79bdb4e3d34aa382be88ed2c3aebaf
19
20 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
21 PKG_LICENSE:=LGPL-2.1-or-later
22 PKG_LICENSE_FILES:=COPYING
23
24 PKG_FIXUP:=autoreconf
25 PKG_INSTALL:=1
26 PKG_BUILD_PARALLEL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libgpg-error
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=GnuPG error handling helper library
34 URL:=https://www.gnupg.org/related_software/libgpg-error/
35 endef
36
37 define Package/libgpg-error/description
38 An helper library for common error codes and descriptions.
39 This is a library that defines common error values for all GnuPG
40 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
41 Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
42 future.
43 endef
44
45 CONFIGURE_ARGS += \
46 --enable-shared \
47 --enable-static \
48 --disable-doc \
49 --disable-languages \
50 --disable-rpath \
51 --disable-tests
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_BIN) \
64 $(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
65 $(2)/bin/
66 $(SED) \
67 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
68 $(2)/bin/gpgrt-config
69 ln -sf $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
70
71 $(INSTALL_DIR) $(1)/usr/include
72 $(INSTALL_DATA) \
73 $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
74 $(1)/usr/include/
75
76 $(INSTALL_DATA) \
77 $(PKG_INSTALL_DIR)/usr/include/gpgrt.h \
78 $(1)/usr/include/
79
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
83 $(1)/usr/lib/
84
85 $(INSTALL_DIR) $(1)/usr/share/aclocal
86 $(INSTALL_DATA) \
87 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
88 $(1)/usr/share/aclocal/
89
90 $(INSTALL_DATA) \
91 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgrt.m4 \
92 $(1)/usr/share/aclocal/
93 endef
94
95 define Package/libgpg-error/install
96 $(INSTALL_DIR) $(1)/usr/lib
97 $(CP) \
98 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
99 $(1)/usr/lib/
100 endef
101
102 $(eval $(call BuildPackage,libgpg-error))