You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2020 Lucian Cristian
  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:=libcap-ng
  9. PKG_VERSION:=0.7.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://people.redhat.com/sgrubb/libcap-ng
  13. PKG_HASH:=85815c711862d01a440db471f12fba462c9949e923966f5859607e652d9c0ae9
  14. PKG_MAINTAINER:=Lucian CRISTIAN <lucian.cristian@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=License
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libcap-ng/Default
  22. TITLE:=POSIX capabilities library
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. URL:=https://people.redhat.com/sgrubb/libcap-ng/index.html
  26. endef
  27. define Package/libcap-ng/description/Default
  28. POSIX capabilities library
  29. endef
  30. define Package/libcap-ng
  31. $(call Package/libcap-ng/Default)
  32. TITLE += library
  33. endef
  34. define Package/libcap-ng-bin
  35. $(call Package/libcap-ng/Default)
  36. TITLE += binaries
  37. DEPENDS += libcap-ng
  38. endef
  39. define Package/libcap-ng-bin/description
  40. $(call Package/libcap-ng/description/Default)
  41. .
  42. This package contains the libcap-ng utilities.
  43. endef
  44. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
  45. TARGET_CFLAGS += -flto
  46. CONFIGURE_VARS += \
  47. ac_cv_prog_swig_found=no
  48. CONFIGURE_ARGS += \
  49. --prefix=/usr \
  50. --without-python \
  51. --without-python3
  52. define Build/InstallDev
  53. $(INSTALL_DIR) $(1)/usr/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.{so*,a} $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcap-ng.pc $(1)/usr/lib/pkgconfig/
  59. $(INSTALL_DIR) $(1)/usr/share/aclocal
  60. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/cap-ng.m4\
  61. $(1)/usr/share/aclocal
  62. endef
  63. define Package/libcap-ng/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.so* $(1)/usr/lib/
  66. endef
  67. define Package/libcap-ng-bin/install
  68. $(INSTALL_DIR) $(1)/usr/sbin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/sbin/
  70. endef
  71. $(eval $(call BuildPackage,libcap-ng))
  72. $(eval $(call BuildPackage,libcap-ng-bin))