Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 1 | ############################################################# |
| 2 | # |
| 3 | # boa |
| 4 | # |
| 5 | ############################################################# |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 6 | |
Eric Andersen | d9d199a | 2006-04-14 18:28:35 +0000 | [diff] [blame^] | 7 | BOA_VERSION=0.94.14rc21 |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 8 | |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 9 | # Don't alter below this line unless you (think) you know |
| 10 | # what you are doing! Danger, Danger! |
| 11 | |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 12 | BOA_SOURCE=boa-$(BOA_VERSION).tar.gz |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 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 |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 16 | |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 17 | $(DL_DIR)/$(BOA_SOURCE): |
Eric Andersen | 8a2597e | 2002-11-20 23:16:10 +0000 | [diff] [blame] | 18 | $(WGET) -P $(DL_DIR) $(BOA_SITE)/$(BOA_SOURCE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 19 | |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 20 | $(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE) |
Eric Andersen | bb05a9a | 2004-10-09 21:19:47 +0000 | [diff] [blame] | 21 | gzip -d -c $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 22 | touch $(BOA_DIR)/.unpacked |
| 23 | |
Eric Andersen | a9bfe85 | 2003-01-19 06:07:22 +0000 | [diff] [blame] | 24 | $(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked |
Jon Nelson | c79e998 | 2002-01-05 20:26:15 +0000 | [diff] [blame] | 25 | rm -f $(BOA_WORKDIR)/Makefile |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 26 | mkdir -p $(BOA_WORKDIR) |
Eric Andersen | 042bb97 | 2004-10-13 19:42:34 +0000 | [diff] [blame] | 27 | #CONFIG_SITE=package/boa/boa-config.site-$(ARCH) |
| 28 | (cd $(BOA_WORKDIR); rm -rf config.cache; \ |
| 29 | $(TARGET_CONFIGURE_OPTS) \ |
| 30 | CFLAGS="$(TARGET_CFLAGS)" \ |
| 31 | CPPFLAGS="$(SED_CFLAGS)" \ |
| 32 | $(BOA_DIR)/configure \ |
| 33 | --target=$(GNU_TARGET_NAME) \ |
| 34 | --host=$(GNU_TARGET_NAME) \ |
| 35 | --build=$(GNU_HOST_NAME) \ |
| 36 | --prefix=/usr \ |
| 37 | --exec-prefix=/usr \ |
| 38 | --bindir=/usr/bin \ |
| 39 | --sbindir=/usr/sbin \ |
| 40 | --libexecdir=/usr/lib \ |
| 41 | --sysconfdir=/etc \ |
| 42 | --datadir=/usr/share \ |
| 43 | --localstatedir=/var \ |
| 44 | --mandir=/usr/man \ |
| 45 | --infodir=/usr/info \ |
| 46 | $(DISABLE_NLS) \ |
| 47 | ); |
Mike Frysinger | dfebda0 | 2005-11-24 06:53:24 +0000 | [diff] [blame] | 48 | touch $(BOA_WORKDIR)/Makefile |
Eric Andersen | 44eedc5 | 2004-10-09 02:49:33 +0000 | [diff] [blame] | 49 | |
Eric Andersen | 184e186 | 2004-10-18 22:16:28 +0000 | [diff] [blame] | 50 | $(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer: $(BOA_WORKDIR)/Makefile |
Jon Nelson | e1be1ea | 2002-01-06 18:54:35 +0000 | [diff] [blame] | 51 | rm -f $@ |
Eric Andersen | 042bb97 | 2004-10-13 19:42:34 +0000 | [diff] [blame] | 52 | $(MAKE) -C $(BOA_WORKDIR) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 53 | |
Eric Andersen | c3da0d8 | 2004-10-14 09:39:25 +0000 | [diff] [blame] | 54 | $(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 55 | mkdir -p $(TARGET_DIR)/usr/sbin |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 56 | cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 57 | mkdir -p $(TARGET_DIR)/usr/lib/boa |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 58 | cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 59 | mkdir -p $(TARGET_DIR)/etc/boa |
Eric Andersen | 44eedc5 | 2004-10-09 02:49:33 +0000 | [diff] [blame] | 60 | cp -f package/boa/boa.conf $(TARGET_DIR)/etc/boa |
| 61 | cp -f package/boa/mime.types $(TARGET_DIR)/etc/mime.types |
Ned Ludd | feb2dd9 | 2004-10-27 16:41:19 +0000 | [diff] [blame] | 62 | $(STRIP) --strip-all $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer |
Jon Nelson | 4d1404f | 2002-01-05 20:06:55 +0000 | [diff] [blame] | 63 | touch $(BOA_WORKDIR)/.installed |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 64 | |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 65 | boa: uclibc $(BOA_WORKDIR)/.installed |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 66 | |
Eric Andersen | 0fee9e9 | 2003-11-12 09:31:12 +0000 | [diff] [blame] | 67 | boa-source: $(DL_DIR)/$(BOA_SOURCE) |
| 68 | |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 69 | boa-clean: |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 70 | @if [ -d $(BOA_WORKDIR)/Makefile ] ; then \ |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 71 | $(MAKE) -C $(BOA_WORKDIR) clean ; \ |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 72 | fi; |
| 73 | |
Eric Andersen | 173c607 | 2002-11-18 22:12:38 +0000 | [diff] [blame] | 74 | boa-dirclean: |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 75 | rm -rf $(BOA_DIR) $(BOA_WORKDIR) |
| 76 | |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 77 | ############################################################# |
| 78 | # |
| 79 | # Toplevel Makefile options |
| 80 | # |
| 81 | ############################################################# |
| 82 | ifeq ($(strip $(BR2_PACKAGE_BOA)),y) |
| 83 | TARGETS+=boa |
| 84 | endif |