treewide: remove AUTORELEASE
[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.46
12 PKG_RELEASE:=3
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:=b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d
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 --enable-install-gpg-error-config \
49 --disable-doc \
50 --disable-languages \
51 --disable-rpath \
52 --disable-tests
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
56 $(INSTALL_BIN) \
57 $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
58 $(2)/bin/
59 $(SED) \
60 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
61 $(2)/bin/gpg-error-config
62 $(LN) $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
63
64 $(INSTALL_BIN) \
65 $(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
66 $(2)/bin/
67 $(SED) \
68 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
69 $(2)/bin/gpgrt-config
70 $(LN) $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
71
72 $(INSTALL_DIR) $(1)/usr/include
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
75 $(1)/usr/include/
76
77 $(INSTALL_DATA) \
78 $(PKG_INSTALL_DIR)/usr/include/gpgrt.h \
79 $(1)/usr/include/
80
81 $(INSTALL_DIR) $(1)/usr/lib
82 $(CP) \
83 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
84 $(1)/usr/lib/
85
86 $(INSTALL_DIR) $(1)/usr/share/aclocal
87 $(INSTALL_DATA) \
88 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
89 $(1)/usr/share/aclocal/
90
91 $(INSTALL_DATA) \
92 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgrt.m4 \
93 $(1)/usr/share/aclocal/
94
95 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
96 $(CP) \
97 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpg-error.pc \
98 $(1)/usr/lib/pkgconfig
99 endef
100
101 define Package/libgpg-error/install
102 $(INSTALL_DIR) $(1)/usr/lib
103 $(CP) \
104 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
105 $(1)/usr/lib/
106 endef
107
108 $(eval $(call BuildPackage,libgpg-error))