]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/upslug/upslug2.inc
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / upslug / upslug2.inc
1 # This package builds the 'upslug2' binary upload/flash tool
2 # for the NSLU2.  It is not useful for anything else.
3 PR = "r0"
4 DESCRIPTION = "NSLU2 binary upload tool (version 2)"
5 HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug2"
6 MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
7 SECTION = "console/network"
8 PRIORITY = "optional"
9 LICENSE = "MIT"
10
11 # On Linux libpcap does not work.  Using libpcap is sub-optimal - it
12 # is intended for packet capture not management of a new protocol
13 # stream - so you may want to try the linux options on other operating
14 # systems.
15 LIBPCAP_OECONF = "--with-libpcap"
16 LIBPCAP_OECONF_linux = ""
17 LIBPCAP_OECONF_linux-uclibc = ""
18 LIBPCAP_RDEPENDS = "libpcap"
19 LIBPCAP_RDEPENDS_linux = ""
20 LIBPCAP_RDEPENDS_linux-uclibc = ""
21
22 RDEPENDS += "${LIBPCAP_RDEPENDS}"
23
24 SRC_URI = "${SOURCEFORGE_MIRROR}/nslu/upslug2-${PV}.tar.gz"
25
26 inherit autotools
27
28 S = "${WORKDIR}/upslug2-${PV}"
29
30 PACKAGES = "${PN}"
31 EXTRA_OECONF += "${LIBPCAP_OECONF}"
32
33 python () {
34         # Don't build upslug2 unless we're targeting an nslu2
35         mach = bb.data.getVar("MACHINE", d, 1)
36         if mach != 'nslu2':
37                 raise bb.parse.SkipPackage("upslug2 only builds for the Linksys NSLU2")
38 }