add the 'click' package with roofnet scripts (thanks to John Bicket)
[openwrt.git] / package / click / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=click
4 PKG_VERSION:=cvs.2006.02.27
5 PKG_RELEASE:=0
6 PKG_MD5SUM:=0479c7e50547cc8fdbfcc60f6eea30b4
7
8 ROOFNET_VERSION:=0.0.1
9
10 PKG_SOURCE_URL:=http://pdos.csail.mit.edu/~jbicket/click_snapshots/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,CLICK,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,ROOFNET,roofnet,$(ROOFNET_VERSION),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CXXFLAGS="-static -O2 -MD" \
26 CFLAGS="-static -MD" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --prefix=/usr \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --enable-wifi \
35 --disable-linuxmodule \
36 --enable-tools=host \
37 );
38 touch $@
39
40 $(PKG_BUILD_DIR)/.built:
41 rm -rf $(PKG_INSTALL_DIR)
42 mkdir -p $(PKG_INSTALL_DIR)
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all
47 touch $@
48
49 $(IPKG_CLICK):
50 install -d -m0755 $(IDIR_CLICK)/usr/bin
51 $(CP) $(PKG_BUILD_DIR)/userlevel/click $(IDIR_CLICK)/usr/bin/click
52 $(CP) $(PKG_BUILD_DIR)/tools/click-align/click-align $(IDIR_CLICK)/usr/bin/click-align
53 $(CP) $(PKG_BUILD_DIR)/conf/wifi/read_handler $(IDIR_CLICK)/usr/bin
54 $(CP) $(PKG_BUILD_DIR)/conf/wifi/write_handler $(IDIR_CLICK)/usr/bin
55 $(CP) $(PKG_BUILD_DIR)/conf/wifi/srcr.click $(IDIR_CLICK)/usr/bin
56 $(RSTRIP) $(IDIR_CLICK)
57 $(IPKG_BUILD) $(IDIR_CLICK) $(PACKAGE_DIR)
58
59
60 $(IPKG_ROOFNET):
61 install -d -m0755 $(IDIR_ROOFNET)/usr/bin
62 $(CP) $(PKG_BUILD_DIR)/conf/wifi/gen_config_roofnet.sh $(IDIR_ROOFNET)/usr/bin
63 mkdir -p $(IDIR_ROOFNET)/etc/init.d
64 install -m 755 ./files/S50roofnet $(IDIR_ROOFNET)/etc/init.d/
65 $(IPKG_BUILD) $(IDIR_ROOFNET) $(PACKAGE_DIR)
This page took 0.090176 seconds and 5 git commands to generate.