update to 2.2.3
[openwrt.git] / obsolete-buildroot / make / boa.mk
1 #############################################################
2 #
3 # boa
4 #
5 #############################################################
6
7 BOA_VERSION=0.94.14rc4
8
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
11
12 BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
13 BOA_SITE=http://www.boa.org/
14 BOA_DIR=$(BUILD_DIR)/${shell basename $(BOA_SOURCE) .tar.gz}
15 BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
16
17 $(DL_DIR)/$(BOA_SOURCE):
18 $(WGET) -P $(DL_DIR) $(BOA_SITE)/$(BOA_SOURCE)
19
20 $(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
21 gzip -d -c $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
22 touch $(BOA_DIR)/.unpacked
23
24 $(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
25 rm -f $(BOA_WORKDIR)/Makefile
26 mkdir -p $(BOA_WORKDIR)
27 (cd $(BOA_WORKDIR) && CONFIG_SITE=$(SOURCE_DIR)/boa-config.site-$(ARCH) \
28 CC=$(TARGET_CC) $(BOA_DIR)/configure)
29 touch $(BOA_WORKDIR)/.depend
30
31 $(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer: $(BOA_WORKDIR)/Makefile
32 rm -f $@
33 $(MAKE) VPATH=$(BOA_DIR)/src/ -C $(BOA_WORKDIR)
34
35 $(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/boa $(BOA_WORKDIR)/boa_indexer
36 mkdir -p $(TARGET_DIR)/usr/sbin
37 cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa
38 mkdir -p $(TARGET_DIR)/usr/lib/boa
39 cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
40 mkdir -p $(TARGET_DIR)/etc/boa
41 cp -f $(SOURCE_DIR)/boa.conf $(TARGET_DIR)/etc/boa
42 cp -f $(SOURCE_DIR)/mime.types $(TARGET_DIR)/etc/mime.types
43 strip --strip-all $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
44 touch $(BOA_WORKDIR)/.installed
45
46 boa: uclibc $(BOA_WORKDIR)/.installed
47
48 boa-source: $(DL_DIR)/$(BOA_SOURCE)
49
50 boa-clean:
51 @if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
52 $(MAKE) -C $(BOA_WORKDIR) clean ; \
53 fi;
54
55 boa-dirclean:
56 rm -rf $(BOA_DIR) $(BOA_WORKDIR)
57
This page took 0.052586 seconds and 5 git commands to generate.