blob: 840cb45db7d0be5339822152b5d41ae9adfd8e47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
DESCRIPTION = "Clone of the classic arcade game Asteroids for Qtopia/Opie - based on SDL"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
DEPENDS = "virtual/libqpe virtual/libsdl libsdl-image libsdl-mixer"
SRC_URI = "ftp://ftp.sonic.net/pub/users/nbs/unix/x/vectoroids/src/vectoroids-${PV}.tar.gz"
inherit palmtop
EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${STAGING_INCDIR}/SDL LIBS+=-lSDL LIBS+=-lSDL_mixer \
LIBS+=-lSDLmain LIBS+=-lSDL_image LIBS+=-lpthread CONFIG+=qte"
do_configure_prepend() {
qmake -project vectoroids.pro
}
do_install() {
install -d ${D}/${palmtopdir}/apps/Games \
${D}/${palmtopdir}/pics \
${D}/${palmtopdir}/share/vectoroids \
${D}/${palmtopdir}/bin
install -m 0755 vectoroids-${PV} ${D}/${palmtopdir}/bin/vectoroids
install -m 0644 data/images/icon.png ${D}/${palmtopdir}/pics/vectoroids.png
cp -a data/* ${D}/${palmtopdir}/share/vectoroids
echo "[Desktop Entry]" >${D}/${palmtopdir}/apps/Games/vectoroids.desktop
echo "Comment=Asteroids game" >>${D}/${palmtopdir}/apps/Games/vectoroids.desktop
echo "Exec=vectoroids" >>${D}/${palmtopdir}/apps/Games/vectoroids.desktop
echo "Icon=vectoroids" >>${D}/${palmtopdir}/apps/Games/vectoroids.desktop
echo "Type=Application" >>${D}/${palmtopdir}/apps/Games/vectoroids.desktop
echo "Name=Vectoroids" >>${D}/${palmtopdir}/apps/Games/vectoroids.desktop
}
|