fix rrdcollect selection
[openwrt.git] / package / iproute2 / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=iproute2
6 PKG_VERSION:=2.6.11-050330
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=e705f26b5ae93e0332e46a3ff15d934
9
10 PKG_SOURCE_URL:=http://developer.osdl.org/dev/iproute2/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/iproute2-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,IPROUTE2_IP,ip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18 $(eval $(call PKG_template,IPROUTE2_TC,tc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(PKG_BUILD_DIR)/Makefile
22 $(SED) "s,-I/usr/include/db3,," $(PKG_BUILD_DIR)/Makefile
23 $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
24 $(PKG_BUILD_DIR)/Makefile
25 $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
26 $(PKG_BUILD_DIR)/Makefile
27 # For now disable compiling of the misc directory because it seems to fail
28 rm -rf $(PKG_BUILD_DIR)/misc
29 $(SED) "s, misc,," $(PKG_BUILD_DIR)/Makefile
30 touch $@
31
32 $(PKG_BUILD_DIR)/.built:
33 $(MAKE) -j1 -C $(PKG_BUILD_DIR)/netem HOSTCC=$(HOSTCC) CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
34 $(MAKE) -j1 -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
35 touch $@
36
37 $(IPKG_IPROUTE2_IP):
38 mkdir -p $(IDIR_IPROUTE2_IP)/usr/sbin
39 cp $(PKG_BUILD_DIR)/ip/ip $(IDIR_IPROUTE2_IP)/usr/sbin/
40 $(STRIP) $(IDIR_IPROUTE2_IP)/usr/sbin/*
41 $(IPKG_BUILD) $(IDIR_IPROUTE2_IP) $(PACKAGE_DIR)
42
43 $(IPKG_IPROUTE2_TC):
44 mkdir -p $(IDIR_IPROUTE2_TC)/usr/sbin
45 cp $(PKG_BUILD_DIR)/tc/tc $(IDIR_IPROUTE2_TC)/usr/sbin/
46 $(STRIP) $(IDIR_IPROUTE2_TC)/usr/sbin/*
47 $(IPKG_BUILD) $(IDIR_IPROUTE2_TC) $(PACKAGE_DIR)
48
This page took 0.048951 seconds and 5 git commands to generate.