blob: 81023b46de8dff2e1cec93b640f802ee1c9d24db [file] [log] [blame]
Eric Andersen173c6072002-11-18 22:12:38 +00001#############################################################
2#
3# boa
4#
5#############################################################
Eric Andersenffde94b2001-12-22 00:56:11 +00006
Eric Andersend9d199a2006-04-14 18:28:35 +00007BOA_VERSION=0.94.14rc21
Jon Nelson4d1404f2002-01-05 20:06:55 +00008
Eric Andersenffde94b2001-12-22 00:56:11 +00009# Don't alter below this line unless you (think) you know
10# what you are doing! Danger, Danger!
11
Jon Nelson4d1404f2002-01-05 20:06:55 +000012BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
Eric Andersen173c6072002-11-18 22:12:38 +000013BOA_SITE=http://www.boa.org/
14BOA_DIR=$(BUILD_DIR)/${shell basename $(BOA_SOURCE) .tar.gz}
15BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
Eric Andersenffde94b2001-12-22 00:56:11 +000016
Eric Andersen173c6072002-11-18 22:12:38 +000017$(DL_DIR)/$(BOA_SOURCE):
Eric Andersen8a2597e2002-11-20 23:16:10 +000018 $(WGET) -P $(DL_DIR) $(BOA_SITE)/$(BOA_SOURCE)
Eric Andersenffde94b2001-12-22 00:56:11 +000019
Eric Andersen173c6072002-11-18 22:12:38 +000020$(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
Eric Andersenbb05a9a2004-10-09 21:19:47 +000021 gzip -d -c $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
Eric Andersenffde94b2001-12-22 00:56:11 +000022 touch $(BOA_DIR)/.unpacked
23
Eric Andersena9bfe852003-01-19 06:07:22 +000024$(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
Jon Nelsonc79e9982002-01-05 20:26:15 +000025 rm -f $(BOA_WORKDIR)/Makefile
Eric Andersenffde94b2001-12-22 00:56:11 +000026 mkdir -p $(BOA_WORKDIR)
Eric Andersen042bb972004-10-13 19:42:34 +000027 #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 Frysingerdfebda02005-11-24 06:53:24 +000048 touch $(BOA_WORKDIR)/Makefile
Eric Andersen44eedc52004-10-09 02:49:33 +000049
Eric Andersen184e1862004-10-18 22:16:28 +000050$(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer: $(BOA_WORKDIR)/Makefile
Jon Nelsone1be1ea2002-01-06 18:54:35 +000051 rm -f $@
Eric Andersen042bb972004-10-13 19:42:34 +000052 $(MAKE) -C $(BOA_WORKDIR)
Eric Andersenffde94b2001-12-22 00:56:11 +000053
Eric Andersenc3da0d82004-10-14 09:39:25 +000054$(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer
Jon Nelson4d1404f2002-01-05 20:06:55 +000055 mkdir -p $(TARGET_DIR)/usr/sbin
Eric Andersen173c6072002-11-18 22:12:38 +000056 cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa
Jon Nelson4d1404f2002-01-05 20:06:55 +000057 mkdir -p $(TARGET_DIR)/usr/lib/boa
Eric Andersen173c6072002-11-18 22:12:38 +000058 cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
Jon Nelson4d1404f2002-01-05 20:06:55 +000059 mkdir -p $(TARGET_DIR)/etc/boa
Eric Andersen44eedc52004-10-09 02:49:33 +000060 cp -f package/boa/boa.conf $(TARGET_DIR)/etc/boa
61 cp -f package/boa/mime.types $(TARGET_DIR)/etc/mime.types
Ned Luddfeb2dd92004-10-27 16:41:19 +000062 $(STRIP) --strip-all $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
Jon Nelson4d1404f2002-01-05 20:06:55 +000063 touch $(BOA_WORKDIR)/.installed
Eric Andersenffde94b2001-12-22 00:56:11 +000064
Eric Andersen173c6072002-11-18 22:12:38 +000065boa: uclibc $(BOA_WORKDIR)/.installed
Eric Andersenffde94b2001-12-22 00:56:11 +000066
Eric Andersen0fee9e92003-11-12 09:31:12 +000067boa-source: $(DL_DIR)/$(BOA_SOURCE)
68
Eric Andersen173c6072002-11-18 22:12:38 +000069boa-clean:
Eric Andersenffde94b2001-12-22 00:56:11 +000070 @if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
Eric Andersen173c6072002-11-18 22:12:38 +000071 $(MAKE) -C $(BOA_WORKDIR) clean ; \
Eric Andersenffde94b2001-12-22 00:56:11 +000072 fi;
73
Eric Andersen173c6072002-11-18 22:12:38 +000074boa-dirclean:
Eric Andersenffde94b2001-12-22 00:56:11 +000075 rm -rf $(BOA_DIR) $(BOA_WORKDIR)
76
Eric Andersend06645d2005-02-10 03:06:39 +000077#############################################################
78#
79# Toplevel Makefile options
80#
81#############################################################
82ifeq ($(strip $(BR2_PACKAGE_BOA)),y)
83TARGETS+=boa
84endif