install madwifi headers in staging_dir (needed for hostapd)
[openwrt.git] / obsolete-buildroot / make / wshaper.mk
1 ######################################################
2 #
3 # An example makefile to fetch a package from sources
4 # then fetch the ipkg updates required to the base package
5 # extract the archives into the build tree
6 # and then build the source
7 #
8 ######################################################
9
10
11 # For this example we'll use a fairly simple package that compiles easily
12 # and has sources available for download at sourceforge
13 WSHAPER=wondershaper-1.1a
14 WSHAPER_TARGET=wondershaper-1.1a_mipsel.ipk
15 WSHAPER_SITE=http://lartc.org/wondershaper
16 WSHAPER_SOURCE=wondershaper-1.1a.tar.gz
17 WSHAPERIPK_SITE=http://openwrt.rozeware.bc.ca/ipkg-dev
18 WSHAPERIPK_SRC=wondershaper-1.1a-pkg.tgz
19
20
21
22 # define a target for the master makefile
23 wshaper-ipk: $(BUILD_DIR)/$(WSHAPER_TARGET)
24
25 # We need to download sources if we dont have them
26 $(DL_DIR)/$(WSHAPER_SOURCE) :
27 $(WGET) -P $(DL_DIR) $(WSHAPER_SITE)/$(WSHAPER_SOURCE)
28
29 # As well as the upstream package sources, we need the updates
30 # for ipkg packaging
31 $(DL_DIR)/$(WSHAPERIPK_SRC) :
32 $(WGET) -P $(DL_DIR) $(WSHAPERIPK_SITE)/$(WSHAPERIPK_SRC)
33
34 # if we have the sources, they do no good unless they are unpacked
35 $(BUILD_DIR)/$(WSHAPER)/.unpacked: $(DL_DIR)/$(WSHAPER_SOURCE)
36 tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(WSHAPER_SOURCE)
37 touch $(BUILD_DIR)/$(WSHAPER)/.unpacked
38
39 # with the upstream sources unpacked, they still dont do much good without
40 # the ipkg control and rule files
41 $(BUILD_DIR)/$(WSHAPER)/ipkg/control : $(BUILD_DIR)/$(WSHAPER)/.unpacked $(DL_DIR)/$(WSHAPERIPK_SRC)
42 tar -C $(BUILD_DIR)/$(WSHAPER) -zxf $(DL_DIR)/$(WSHAPERIPK_SRC)
43
44 # now that we have it all in place, just build it
45 $(BUILD_DIR)/$(WSHAPER_TARGET): $(BUILD_DIR)/$(WSHAPER)/ipkg/control
46 cd $(BUILD_DIR)/$(WSHAPER); $(IPKG_BUILDPACKAGE)
47
48
49
50
This page took 0.05537 seconds and 5 git commands to generate.