2002-11-18 23:12:38 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# boa
|
|
|
|
#
|
|
|
|
#############################################################
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2006-04-14 20:28:35 +02:00
|
|
|
BOA_VERSION=0.94.14rc21
|
2002-01-05 21:06:55 +01:00
|
|
|
|
2001-12-22 01:56:11 +01:00
|
|
|
# Don't alter below this line unless you (think) you know
|
|
|
|
# what you are doing! Danger, Danger!
|
|
|
|
|
2002-01-05 21:06:55 +01:00
|
|
|
BOA_SOURCE=boa-$(BOA_VERSION).tar.gz
|
2006-11-17 16:43:51 +01:00
|
|
|
BOA_CAT:=$(ZCAT)
|
2002-11-18 23:12:38 +01:00
|
|
|
BOA_SITE=http://www.boa.org/
|
|
|
|
BOA_DIR=$(BUILD_DIR)/${shell basename $(BOA_SOURCE) .tar.gz}
|
|
|
|
BOA_WORKDIR=$(BUILD_DIR)/boa_workdir
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
$(DL_DIR)/$(BOA_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(BOA_SITE),$(BOA_SOURCE))
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
$(BOA_DIR)/.unpacked: $(DL_DIR)/$(BOA_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(BOA_CAT) $(DL_DIR)/$(BOA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2001-12-22 01:56:11 +01:00
|
|
|
touch $(BOA_DIR)/.unpacked
|
|
|
|
|
2003-01-19 07:07:22 +01:00
|
|
|
$(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
|
2002-01-05 21:26:15 +01:00
|
|
|
rm -f $(BOA_WORKDIR)/Makefile
|
2001-12-22 01:56:11 +01:00
|
|
|
mkdir -p $(BOA_WORKDIR)
|
2004-10-13 21:42:34 +02:00
|
|
|
#CONFIG_SITE=package/boa/boa-config.site-$(ARCH)
|
|
|
|
(cd $(BOA_WORKDIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
$(BOA_DIR)/configure $(QUIET) \
|
2004-10-13 21:42:34 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2004-10-13 21:42:34 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(BOA_WORKDIR)/Makefile
|
2004-10-09 04:49:33 +02:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
$(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer: $(BOA_WORKDIR)/Makefile
|
2002-01-06 19:54:35 +01:00
|
|
|
rm -f $@
|
2004-10-13 21:42:34 +02:00
|
|
|
$(MAKE) -C $(BOA_WORKDIR)
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2004-10-14 11:39:25 +02:00
|
|
|
$(BOA_WORKDIR)/.installed: $(BOA_WORKDIR)/src/boa $(BOA_WORKDIR)/src/boa_indexer
|
2002-01-05 21:06:55 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/sbin
|
2002-11-18 23:12:38 +01:00
|
|
|
cp -f $(BOA_WORKDIR)/src/boa $(TARGET_DIR)/usr/sbin/boa
|
2002-01-05 21:06:55 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib/boa
|
2002-11-18 23:12:38 +01:00
|
|
|
cp -f $(BOA_WORKDIR)/src/boa_indexer $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
2002-01-05 21:06:55 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/boa
|
2004-10-09 04:49:33 +02:00
|
|
|
cp -f package/boa/boa.conf $(TARGET_DIR)/etc/boa
|
|
|
|
cp -f package/boa/mime.types $(TARGET_DIR)/etc/mime.types
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/sbin/boa $(TARGET_DIR)/usr/lib/boa/boa_indexer
|
2002-01-05 21:06:55 +01:00
|
|
|
touch $(BOA_WORKDIR)/.installed
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
boa: $(BOA_WORKDIR)/.installed
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
boa-source: $(DL_DIR)/$(BOA_SOURCE)
|
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
boa-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(BOA_WORKDIR) clean
|
|
|
|
rm -rf $(TARGET_DIR)/usr/sbin/boa \
|
|
|
|
$(TARGET_DIR)/usr/lib/boa/boa_indexer \
|
|
|
|
$(TARGET_DIR)/etc/mime.types $(TARGET_DIR)/etc/boa
|
2001-12-22 01:56:11 +01:00
|
|
|
|
2002-11-18 23:12:38 +01:00
|
|
|
boa-dirclean:
|
2001-12-22 01:56:11 +01:00
|
|
|
rm -rf $(BOA_DIR) $(BOA_WORKDIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BOA),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=boa
|
|
|
|
endif
|