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.

82 lines
2.3 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=pkgconf
  7. PKG_VERSION:=1.7.3
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
  11. PKG_HASH:=b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0
  12. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. PKG_BUILD_DEPENDS:=meson/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../devel/meson/meson.mk
  19. define Package/libpkgconf
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=libpkgconf
  23. URL:=http://pkgconf.org/
  24. endef
  25. define Package/pkgconf
  26. SECTION:=devel
  27. CATEGORY:=Development
  28. TITLE:=pkgconf
  29. URL:=http://pkgconf.org/
  30. DEPENDS:=+libpkgconf
  31. endef
  32. define Package/libpkgconf/description
  33. libpkgconf is a library which provides access to most of pkgconf’s
  34. functionality, to allow other tooling such as compilers and IDEs to
  35. discover and use frameworks configured by pkgconf. It features a stable
  36. library ABI and API designed for building bindings and other tools.
  37. endef
  38. define Package/pkgconf/description
  39. pkgconf is a program which helps to configure compiler and linker flags
  40. for development frameworks. It is similar to pkg-config from
  41. freedesktop.org, providing additional functionality while also
  42. maintaining compatibility.
  43. endef
  44. MESON_ARGS += \
  45. -Dtests=false
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include/libpkgconf
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/libpkgconf/*.h $(1)/usr/include/libpkgconf/
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  52. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  53. $(1)/usr/share/aclocal/
  54. endef
  55. define Package/libpkgconf/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpkgconf.so* $(1)/usr/lib/
  58. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  59. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/pkg.m4 \
  60. $(1)/usr/share/aclocal/
  61. endef
  62. define Package/pkgconf/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pkgconf $(1)/usr/bin/
  65. endef
  66. $(eval $(call BuildPackage,libpkgconf))
  67. $(eval $(call BuildPackage,pkgconf))