blob: 05dd8ff207a5695b8573d5ac993b6ee1d353c7a6 (
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
35
|
DESCRIPTION = "GameBoy Emulator based on SDL, QtE based Palmtop Environments Edition"
SECTION = "base"
PRIORITY = "optional"
RDEPENDS = "libc6 libsdl-qpe"
DEPENDS = "virtual/libc libsdl-qpe"
SRC_URI = "http://www.warmi.net/zaurus/files/gnuboy-${PV}-qtopia3.tar.gz \
file://${FILESDIR}/qtopiagnuboyl-hwkeys.patch;patch=1 \
file://${FILESDIR}/gcc3.patch;patch=1"
S = "${WORKDIR}/gnuboy"
FILES = ""
FILES_${PN} = "${palmtopdir}"
QMAKE = "${STAGING_BINDIR}/qmake"
QMAKESPEC = "${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++"
EXTRA_QMAKEVARS_POST = "QMAKE_UIC=${STAGING_BINDIR}/uic QMAKE_MOC=${STAGING_BINDIR}/moc QMAKE_RPATH=-Wl,-rpath-link,"
qtopiadir = "${S}/gnuboy-${PV}-qtopia2"
do_compile() {
cd ${qtopiadir}
oe_runmake -f Makefile.qtopia SYS_INCS="-DQWS -I${qtopiadir}/sys/nix" CXXFLAGS="${CXXFLAGS} -DQWS -fno-rtti -fno-exceptions" \
QTOPIA_LIBS="-L${STAGING_LIBDIR} -Wl,-rpath-link,${STAGING_LIBDIR} -lqpe -lqte" LD="${CC}"
cd ${S}/qtopiagnuboyl
${QMAKE} -spec ${QMAKESPEC} -after ${EXTRA_QMAKEVARS_POST} qtopiagnuboyl.pro
oe_runmake CXXFLAGS="${CXXFLAGS} -DQWS -fno-rtti -fno-exceptions"
}
do_install() {
install -m 755 -d ${D}${palmtopdir}
install -m 755 -D qpe/bin/qtopiagnuboy ${D}${palmtopdir}bin/qtopiagnuboy
install -m 755 -D qpe/bin/qtopiagnuboyl ${D}${palmtopdir}bin/qtopiagnuboyl
install -m 644 -D qpe/pics/Gnuboy.png ${D}${palmtopdir}pics/Gnuboy.png
install -m 644 -D qpe/apps/Games/qtopiagnuboy.desktop ${D}${palmtopdir}apps/Games/qtopiagnuboy.desktop
}
|