Makefile 963 B

123456789101112131415161718192021222324252627282930313233343536373839
  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:=pkg-config
  9. PKG_VERSION:=0.29.2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://pkgconfig.freedesktop.org/releases/
  12. PKG_HASH:=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
  13. HOST_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/host-build.mk
  15. unexport PKG_CONFIG
  16. HOST_CONFIGURE_ARGS += --with-internal-glib
  17. ifeq ($(HOST_OS),Darwin)
  18. HOST_LDFLAGS += -framework CoreFoundation -framework Carbon
  19. endif
  20. define Host/Install
  21. $(MAKE) -C $(HOST_BUILD_DIR) install
  22. mv $(STAGING_DIR_HOST)/bin/pkg-config $(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. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  27. $(call Host/Clean/Default)
  28. endef
  29. $(eval $(call HostBuild))