Add vsftpd package
[openwrt.git] / openwrt / package / iproute2 / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=iproute2
6 PKG_VERSION:=2.6.9
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4b3f335b0139cb909c6a2ae8bf72e548
9
10 PKG_SOURCE_URL:=http://developer.osdl.org/dev/iproute2/download/
11 PKG_SOURCE:=$(PKG_NAME)-2.6.9-041019.tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/iproute2-2.6.9
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) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
34 touch $@
35
36 $(IPKG_IPROUTE2_IP):
37 mkdir -p $(IDIR_IPROUTE2_IP)/usr/sbin
38 cp $(PKG_BUILD_DIR)/ip/ip $(IDIR_IPROUTE2_IP)/usr/sbin/
39 $(STRIP) $(IDIR_IPROUTE2_IP)/usr/sbin/*
40 $(IPKG_BUILD) $(IDIR_IPROUTE2_IP) $(PACKAGE_DIR)
41
42 $(IPKG_IPROUTE2_TC):
43 mkdir -p $(IDIR_IPROUTE2_TC)/usr/sbin
44 cp $(PKG_BUILD_DIR)/ip/ip $(IDIR_IPROUTE2_TC)/usr/sbin/
45 $(STRIP) $(IDIR_IPROUTE2_TC)/usr/sbin/*
46 $(IPKG_BUILD) $(IDIR_IPROUTE2_TC) $(PACKAGE_DIR)
47
This page took 0.043704 seconds and 5 git commands to generate.