build system refactoring in preparation for allowing packages to do host-build steps
[openwrt/openwrt.git] / toolchain / glibc-ports / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=glibc-ports
10 PKG_VERSION:=$(call qstrip,$(CONFIG_GLIBC_VERSION))
11
12 ifeq ($(PKG_VERSION),2.3.6)
13 PKG_MD5SUM:=40dce745d34ff80401da2fdfe58f6d53
14 endif
15 ifeq ($(PKG_VERSION),2.6.1)
16 PKG_MD5SUM:=53d88ca624642dd267752ccce77b19d0
17 endif
18 ifeq ($(PKG_VERSION),2.7)
19 PKG_MD5SUM:=eaeb8527b8fa286c2d887157214f9998
20 endif
21
22 PKG_SOURCE_URL:=@GNU/glibc/
23 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
24
25 PATCH_DIR:=./patches/$(PKG_VERSION)
26
27 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
28 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
29
30 override CONFIG_AUTOREBUILD=
31
32 include $(INCLUDE_DIR)/host-build.mk
33
34 STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_built
35 STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_installed
36
37 define Host/Prepare
38 $(call Host/Prepare/Default)
39 ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
40 endef
41
42 define Host/Configure
43 endef
44
45 define Host/Compile
46 endef
47
48 define Host/Install
49 endef
50
51 define Host/Clean
52 rm -rf \
53 $(HOST_BUILD_DIR) \
54 $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
55 endef
56
57 $(eval $(call HostBuild))