Makefile 987 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2006-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:=pkgconf
  9. PKG_VERSION:=1.9.5
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
  12. PKG_HASH:=1ac1656debb27497563036f7bffc281490f83f9b8457c0d60bcfb638fb6b6171
  13. PKG_CPE_ID:=cpe:/a:pkgconf:pkgconf
  14. include $(INCLUDE_DIR)/host-build.mk
  15. include $(INCLUDE_DIR)/meson.mk
  16. unexport PKG_CONFIG
  17. HOSTCC := $(HOSTCC_NOCACHE)
  18. MESON_HOST_ARGS += \
  19. -Ddefault_library=static \
  20. -Dtests=disabled
  21. define Host/Install
  22. $(call Host/Install/Meson)
  23. mv $(STAGING_DIR_HOST)/bin/pkgconf $(STAGING_DIR_HOST)/bin/pkg-config.real
  24. $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
  25. endef
  26. define Host/Clean
  27. rm -f $(STAGING_DIR_HOST)/bin/pkg-config.real $(STAGING_DIR_HOST)/bin/pkg-config
  28. $(call Host/Clean/Meson)
  29. endef
  30. $(eval $(call HostBuild))