Makefile 948 B

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