Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libgpg-error
  9. PKG_VERSION:=1.12
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error
  13. PKG_MD5SUM:=8f0eb41a344d19ac2aa9bd101dfb9ce6
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libgpg-error
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=GnuPG error handling helper library
  22. URL:=http://www.gnupg.org/related_software/libgpg-error/
  23. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  24. endef
  25. define Package/libgpg-error/description
  26. An helper library for common error codes and descriptions.
  27. This is a library that defines common error values for all GnuPG
  28. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  29. Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
  30. future.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static \
  36. --disable-rpath
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  39. $(INSTALL_BIN) \
  40. $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
  41. $(2)/bin/
  42. $(SED) \
  43. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  44. $(2)/bin/gpg-error-config
  45. ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
  53. $(1)/usr/lib/
  54. $(INSTALL_DIR) $(1)/usr/share/aclocal
  55. $(INSTALL_DATA) \
  56. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
  57. $(1)/usr/share/aclocal/
  58. endef
  59. define Package/libgpg-error/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
  63. $(1)/usr/lib/
  64. endef
  65. $(eval $(call BuildPackage,libgpg-error))