replace libcgi with some code extracted from haserl - libcgi is too inflexible and...
[openwrt.git] / package / busybox / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=busybox
12 PKG_VERSION:=1.4.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.busybox.net/downloads \
17 http://distfiles.gentoo.org/distfiles/
18 PKG_MD5SUM:=5728403bce309cdabcffa414e2e64052
19 PKG_CAT:=bzcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_BUILD_DEPENDS:=gcgi
23
24 include $(INCLUDE_DIR)/package.mk
25
26 init-y :=
27 init-$(CONFIG_BUSYBOX_CONFIG_HTTPD) += httpd
28 init-$(CONFIG_BUSYBOX_CONFIG_CROND) += cron
29 init-$(CONFIG_BUSYBOX_CONFIG_TELNETD) += telnet
30
31 define Package/busybox
32 SECTION:=base
33 CATEGORY:=Base system
34 TITLE:=Core utilities for embedded Linux
35 URL:=http://busybox.net/
36 MENU:=1
37 endef
38
39 define Package/busybox/description
40 The Swiss Army Knife of embedded Linux.
41 It slices, it dices, it makes Julian Fries.
42 endef
43
44 define Package/busybox/config
45 source "$(SOURCE)/target-config.in"
46 menu "Configuration"
47 depends on PACKAGE_busybox
48 source "$(SOURCE)/config/Config.in"
49 endmenu
50 endef
51
52 define Build/Configure
53 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
54 yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
55 CC="$(TARGET_CC)" \
56 CROSS_COMPILE="$(TARGET_CROSS)" \
57 ARCH="$(ARCH)" \
58 oldconfig
59 endef
60
61 define Build/Compile
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 CC="$(TARGET_CC)" \
64 CROSS_COMPILE="$(TARGET_CROSS)" \
65 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
66 ARCH="$(ARCH)" \
67 IPKG_ARCH="$(ARCH)" \
68 all
69 endef
70
71 define Package/busybox/install
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 CC="$(TARGET_CC)" \
74 CROSS_COMPILE="$(TARGET_CROSS)" \
75 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
76 ARCH="$(ARCH)" \
77 IPKG_ARCH="$(ARCH)" \
78 CONFIG_PREFIX="$(1)" \
79 install
80 $(INSTALL_DIR) $(1)/etc/init.d
81 for tmp in $(init-y); do \
82 $(INSTALL_BIN) ./files/$$$$tmp $(1)/etc/init.d/$$$$tmp; \
83 done
84 -rm -rf $(1)/lib64
85 endef
86
87 $(eval $(call BuildPackage,busybox))
This page took 0.041301 seconds and 5 git commands to generate.