fusilli-client: add recipe
[openpandora.oe.git] / recipes / fusilli-client / fusilli-client_git.bb
1 DESCRIPTION = "An alternative client for skeezix c4a network"
2 LICENSE = "GPLv3"
3
4 DEPENDS = "virtual/libsdl libsdl-net pandora-libpnd"
5 RDEPENDS = "libsdl-net pandora-libpnd"
6
7 PR = "r0"
8
9 SRC_URI = " \
10   git://github.com/theZiz/fusilli-client.git;protocol=git;branch=master \
11   file://sparrowNet.c \
12   file://sparrowNet.h \
13   file://sparrowDefines.h \
14 "
15
16 SRCREV = "60bb6d2d121eb23a59e6502d33ca1246be033710"
17
18 S = "${WORKDIR}/git"
19
20 CFLAGS += "-g -DPANDORA"
21 # crazy
22 CFLAGS += "-DX86CPU"
23
24 do_compile() {
25         cp ${WORKDIR}/sparrowNet.c ${S}/
26         cp ${WORKDIR}/sparrowNet.h ${S}/
27         cp ${WORKDIR}/sparrowDefines.h ${S}/
28
29         # not everyone knows how to write makefiles..
30         oe_runmake CPP='${CC}' SPARROW_FOLDER=. LIB= STATIC=sparrowNet.c \
31                 DYNAMIC='${LDFLAGS} -lSDL_net -lSDL -lpnd'
32 }
33
34 do_install() {
35         install -d ${D}${bindir}/
36         install -m 0755 fusilli ${D}${bindir}/
37 }