4597c502677040342588ef1f13fccce0da6c4f34
[vuplus_openembedded] / brickout / brickout_2002.06.09.oe
1 DESCRIPTION = "Clone of the classic arcade game Asteroids for Qtopia/Opie - based on SDL"
2 SECTION = "base"
3 PRIORITY = "optional"
4 MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
5 LICENSE = "GPL"
6 RDEPENDS = "libqpe1 libsdl"
7 DEPENDS = "virtual/libc virtual/libqpe virtual/libsdl"
8
9 SRC_URI = "ftp://ftp.sonic.net/pub/users/nbs/unix/agenda/brickout/src/brickout-${PV}.tar.gz \
10            file://${FILESDIR}/directories.patch;patch=1"
11
12 inherit palmtop
13
14 EXTRA_QMAKEVARS_POST = " INCLUDEPATH+=${STAGING_INCDIR}/SDL LIBS+=-lSDL LIBS+=-lSDL_mixer LIBS+=-lSDL_image LIBS+=-lpthread CONFIG+=qte TARGET=brickout DEFINES+=USE_SDL "
15
16 do_configure_prepend() {
17         qmake -project -o brickout.pro
18 }
19
20 do_install() {
21         install -d ${D}${palmtopdir}{bin,apps/Games,pics,share/brickout/{sounds,music,images}}
22         install -D -m 0755 brickout ${D}${palmtopdir}bin/brickout
23         install -D -m 0644 brickout.png ${D}${palmtopdir}pics/brickout.png
24
25         cp -a sounds/* ${D}${palmtopdir}share/brickout/sounds/
26         cp -a music/* ${D}${palmtopdir}share/brickout/music/
27         cp -a images-sdl/* ${D}${palmtopdir}share/brickout/images/
28
29         echo "[Desktop Entry]" >${D}${palmtopdir}apps/Games/brickout.desktop
30         echo "Comment=Arkanoid game" >>${D}${palmtopdir}apps/Games/brickout.desktop
31         echo "Exec=brickout" >>${D}${palmtopdir}apps/Games/brickout.desktop
32         echo "Icon=brickout" >>${D}${palmtopdir}apps/Games/brickout.desktop
33         echo "Type=Application" >>${D}${palmtopdir}apps/Games/brickout.desktop
34         echo "Name=Brickout" >>${D}${palmtopdir}apps/Games/brickout.desktop
35 }