CC: tools/pkg-config: update to 0.29
[15.05/openwrt.git] / tools / pkg-config / Makefile
1
2 # Copyright (C) 2006-2015 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
9 PKG_NAME:=pkg-config
10 PKG_VERSION:=0.29
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://pkgconfig.freedesktop.org/releases/
14 PKG_MD5SUM:=77f27dce7ef88d0634d0d6f90e03a77f
15
16 HOST_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 unexport PKG_CONFIG
21
22 HOST_CONFIGURE_ARGS += --with-internal-glib
23
24 ifeq ($(HOST_OS),Darwin)
25 HOST_LDFLAGS += -framework CoreFoundation -framework Carbon
26 endif
27
28 define Host/Install
29         $(MAKE) -C $(HOST_BUILD_DIR) install
30         mv $(STAGING_DIR_HOST)/bin/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config.real
31         $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
32 endef
33
34 define Host/Clean
35         -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
36         $(call Host/Clean/Default)
37 endef
38
39 $(eval $(call HostBuild))