Makefile 935 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright (C) 2006-2013 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.28
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://pkgconfig.freedesktop.org/releases/
  12. PKG_MD5SUM:=aa3c86e67551adc3ac865160e34a2a0d
  13. HOST_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_LDFLAGS += $(HOST_STATIC_LINKING)
  16. unexport PKG_CONFIG
  17. HOST_CONFIGURE_ARGS += --with-internal-glib
  18. define Host/Install
  19. $(MAKE) -C $(HOST_BUILD_DIR) install \
  20. AM_LDFLAGS="$(if $(HOST_STATIC_LINKING),-all-static)"
  21. mv $(STAGING_DIR_HOST)/bin/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config.real
  22. $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
  23. endef
  24. define Host/Clean
  25. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  26. $(call Host/Clean/Default)
  27. endef
  28. $(eval $(call HostBuild))