Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / busybox / slingbox_1.00.oe
1 DESCRIPTION = "SlingBox version ${PV}. \
2 SlingBox is a minimal version of BusyBox with just enough functionality \
3 to enable ipkg to run on an Unslung NSLU2 device."
4 HOMEPAGE = "http://www.busybox.net"
5 LICENSE = "GPL"
6 SECTION = "base"
7 PRIORITY = "required"
8 PR = "r1"
9
10 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
11            file://defconfig \
12            file://slingbox.patch;patch=1"
13            
14 S = "${WORKDIR}/busybox-${PV}"
15
16 python () {
17         # Don't build slingbox unless we're targeting an nslu2
18         if oe.data.getVar("MACHINE", d, 1) != "nslu2":
19                 raise oe.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
20 }
21
22 export EXTRA_CFLAGS = "${CFLAGS}"
23 EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
24
25 PACKAGES = "${PN}"
26 FILES_${PN} = "/bin /sbin"
27 FILES_${PN}-doc = ""
28 FILES_${PN}-dev = ""
29 FILES_${PN}-locale = ""
30
31 inherit cml1
32
33 do_configure () {
34         install -m 0644 ${WORKDIR}/defconfig ${S}/.config
35         cml1_do_configure
36 }
37
38 do_compile () {
39         unset CFLAGS
40         base_do_compile
41 }
42
43 do_install () {
44         oe_runmake 'PREFIX=${D}' install
45 }