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.

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