allow parallel downloading for make download
[openwrt.git] / tools / pkg-config / Makefile
1 #
2 # Copyright (C) 2006 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.22
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://pkgconfig.freedesktop.org/releases/
14 PKG_MD5SUM:=fd5c547e9d66ba49bc735ccb8c791f2a
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 define Build/Compile
19 $(MAKE) -C $(PKG_BUILD_DIR)
20 endef
21
22 define Build/Install
23 $(MAKE) -C $(PKG_BUILD_DIR) \
24 install
25 mv $(STAGING_DIR_HOST)/bin/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config.real
26 $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
27 endef
28
29 define Build/Clean
30 $(MAKE) -C $(PKG_BUILD_DIR) uninstall
31 $(MAKE) -C $(PKG_BUILD_DIR) clean
32 $(call Build/Clean/Default)
33 endef
34
35 $(eval $(call HostBuild))
This page took 0.039996 seconds and 5 git commands to generate.