1 #############################################################
5 #############################################################
7 BOA_VERSION
=0.94.14rc21
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
12 BOA_SOURCE
=boa-
$(BOA_VERSION
).
tar.gz
14 BOA_SITE
=http
://www.boa.org
/
15 BOA_DIR
=$(BUILD_DIR
)/${shell basename $(BOA_SOURCE
) .
tar.gz
}
16 BOA_WORKDIR
=$(BUILD_DIR
)/boa_workdir
18 $(DL_DIR
)/$(BOA_SOURCE
):
19 $(call DOWNLOAD
,$(BOA_SITE
),$(BOA_SOURCE
))
21 $(BOA_DIR
)/.unpacked
: $(DL_DIR
)/$(BOA_SOURCE
)
22 $(BOA_CAT
) $(DL_DIR
)/$(BOA_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
23 touch
$(BOA_DIR
)/.unpacked
25 $(BOA_WORKDIR
)/Makefile
: $(BOA_DIR
)/.unpacked
26 rm -f
$(BOA_WORKDIR
)/Makefile
27 mkdir
-p
$(BOA_WORKDIR
)
28 #CONFIG_SITE=package/boa/boa-config.site-$(ARCH)
29 (cd
$(BOA_WORKDIR
); rm -rf config.cache
; \
30 $(TARGET_CONFIGURE_OPTS
) \
31 $(TARGET_CONFIGURE_ARGS
) \
32 $(BOA_DIR
)/configure \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --libexecdir
=/usr
/lib \
43 --datadir=/usr
/share \
44 --localstatedir
=/var \
49 touch
$(BOA_WORKDIR
)/Makefile
51 $(BOA_WORKDIR
)/src
/boa
$(BOA_WORKDIR
)/src
/boa_indexer
: $(BOA_WORKDIR
)/Makefile
53 $(MAKE
) -C
$(BOA_WORKDIR
)
55 $(BOA_WORKDIR
)/.installed
: $(BOA_WORKDIR
)/src
/boa
$(BOA_WORKDIR
)/src
/boa_indexer
56 mkdir
-p
$(TARGET_DIR
)/usr
/sbin
57 cp
-f
$(BOA_WORKDIR
)/src
/boa
$(TARGET_DIR
)/usr
/sbin
/boa
58 mkdir
-p
$(TARGET_DIR
)/usr
/lib
/boa
59 cp
-f
$(BOA_WORKDIR
)/src
/boa_indexer
$(TARGET_DIR
)/usr
/lib
/boa
/boa_indexer
60 mkdir
-p
$(TARGET_DIR
)/etc
/boa
61 cp
-f package
/boa
/boa.conf
$(TARGET_DIR
)/etc
/boa
62 cp
-f package
/boa
/mime.types
$(TARGET_DIR
)/etc
/mime.types
63 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $(TARGET_DIR
)/usr
/sbin
/boa
$(TARGET_DIR
)/usr
/lib
/boa
/boa_indexer
64 touch
$(BOA_WORKDIR
)/.installed
66 boa
: uclibc
$(BOA_WORKDIR
)/.installed
68 boa-source
: $(DL_DIR
)/$(BOA_SOURCE
)
71 -$(MAKE
) -C
$(BOA_WORKDIR
) clean
72 rm -rf
$(TARGET_DIR
)/usr
/sbin
/boa \
73 $(TARGET_DIR
)/usr
/lib
/boa
/boa_indexer \
74 $(TARGET_DIR
)/etc
/mime.types
$(TARGET_DIR
)/etc
/boa
77 rm -rf
$(BOA_DIR
) $(BOA_WORKDIR
)
79 #############################################################
81 # Toplevel Makefile options
83 #############################################################
84 ifeq ($(BR2_PACKAGE_BOA
),y
)