1
0

Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # Copyright (C) 2014-2016 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:=attr
  9. PKG_REV:=315af30d0c1a198dc662a90e6e6ae2456abf2489
  10. PKG_VERSION:=20160302
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://git.savannah.gnu.org/r/attr.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  18. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  19. PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
  20. PKG_INSTALL:=1
  21. PKG_FIXUP:=autoreconf
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/attr/Default
  24. TITLE:=Extended attributes (xattr) manipulation
  25. URL:=http://savannah.nongnu.org/projects/attr
  26. SUBMENU:=Filesystem
  27. endef
  28. define Package/attr/Default/description
  29. Extended attributes support
  30. endef
  31. define Package/attr
  32. $(call Package/attr/Default)
  33. SECTION:=utils
  34. CATEGORY:=Utilities
  35. TITLE+=utils
  36. DEPENDS:=+libattr
  37. endef
  38. define Package/libattr
  39. $(call Package/attr/Default)
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. TITLE+=library
  43. endef
  44. define Package/libattr/description
  45. $(call Package/attr/Default/description)
  46. This package provides libattr
  47. endef
  48. define Package/attr/description
  49. $(call Package/attr/Default/description)
  50. This package provides xattr manipulation utilities
  51. - attr
  52. - getfattr
  53. - setfattr
  54. endef
  55. CONFIGURE_ARGS += --enable-static --enable-shared
  56. define Package/attr/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  59. endef
  60. define Package/libattr/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(INSTALL_DIR) $(1)/etc
  63. $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  65. endef
  66. define Package/attr/conffiles
  67. /etc/xattr.conf
  68. endef
  69. define Build/InstallDev
  70. mkdir -p $(1)/usr/include
  71. mkdir -p $(1)/usr/lib/pkgconfig
  72. $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  73. endef
  74. $(eval $(call BuildPackage,attr))
  75. $(eval $(call BuildPackage,libattr))