1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=cvs
.2006.02.27
6 PKG_MD5SUM
:=0479c7e50547cc8fdbfcc60f6eea30b4
10 PKG_SOURCE_URL
:=http
://pdos.csail.mit.edu
/~jbicket
/click_snapshots
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,CLICK
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,ROOFNET
,roofnet
,$(ROOFNET_VERSION
),$(ARCH
)))
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" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
35 --disable-linuxmodule \
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)" \
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
)
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
)