aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratheesh Gangadhar <pratheesh.gangadhar@gmail.com>2009-05-25 02:33:52 +0530
committerKoen Kooi <koen@openembedded.org>2009-05-25 13:11:04 +0200
commitdd8aab1a3728f1300f913bae5de15df1034dda0a (patch)
treefed503e583d5360965f5340e82a43629a4eceb06
parent8ce0d1274b868674c997ef52b1c8753c033a8a08 (diff)
downloadopenembedded-dd8aab1a3728f1300f913bae5de15df1034dda0a.tar.gz
openembedded-dd8aab1a3728f1300f913bae5de15df1034dda0a.tar.bz2
openembedded-dd8aab1a3728f1300f913bae5de15df1034dda0a.zip
quake3: Add pandora (actually omap3) quake3 gles port
-rw-r--r--recipes/quake/files/quake3_makefile.patch29
-rw-r--r--recipes/quake/quake3-pandora-gles_git.bb39
2 files changed, 68 insertions, 0 deletions
diff --git a/recipes/quake/files/quake3_makefile.patch b/recipes/quake/files/quake3_makefile.patch
new file mode 100644
index 0000000000..b9e94577b2
--- /dev/null
+++ b/recipes/quake/files/quake3_makefile.patch
@@ -0,0 +1,29 @@
+--- /tmp/Makefile 2009-05-25 14:59:16.000000000 +0530
++++ git/pandora/Makefile 2009-05-25 15:07:46.000000000 +0530
+@@ -64,14 +64,14 @@ ARFLAGS=ar rv
+ DLL_ONLY=true
+ ARCH=arm
+ VENDOR=dec
+- BASE_CFLAGS = -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -mfloat-abi=softfp \
+- -mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer \
++ BASE_CFLAGS = -O3 -mtune=cortex-a8 -march=armv7-a -mfloat-abi=softfp \
++ -mfpu=neon -ffast-math -fomit-frame-pointer \
+ -fno-strict-aliasing -fsingle-precision-constant \
+ -I$(PNDSDK)/usr/include -DIPHONE -DBOTLIB -DDLL_ONLY -DC_ONLY -D__arm__ -DSHLIB_SUFFIX="\"so\"" -D_PANDORA_
+
+ THREAD_LDFLAGS=-lpthread
+
+-LDFLAGS=-L$(PNDSDK)/usr/lib -ldl -lm -lX11 -lXau -lXdmcp -lXxf86vm -lXext
++LDFLAGS+=-L$(PNDSDK)/usr/lib -ldl -lm -lX11 -lXau -lXdmcp -lXxf86vm -lXext
+
+ GL_CFAGS = -I$(PNDSDK)/usr/X11R6/include
+
+@@ -126,7 +126,7 @@ DO_NASM=nasm -f elf -o $@ $<
+ DO_DED_CC=$(CC) -DDEDICATED -DC_ONLY $(CFLAGS) -o $@ -c $<
+
+ #### DEFAULT TARGET
+-default:build_debug
++default:build_release
+
+ debug: build_debug
+ release: build_release
diff --git a/recipes/quake/quake3-pandora-gles_git.bb b/recipes/quake/quake3-pandora-gles_git.bb
new file mode 100644
index 0000000000..d468d34a44
--- /dev/null
+++ b/recipes/quake/quake3-pandora-gles_git.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "OpenGL ES quake3 port to the omap3-pandora"
+LICENSE = "GPL"
+
+SRCREV = "39d08bf6e81f7cdc29380858dfe671b0722332a3"
+PR_append = "+gitr${SRCREV}"
+PV = "0.0"
+
+DEPENDS = "virtual/libsdl libgles-omap3"
+
+SRC_URI = "git://github.com/Cpasjuste/quake3_pandora_gles.git;branch=master;protocol=git \
+ file://quake3_makefile.patch;patch=1 \
+"
+S = "${WORKDIR}/git"
+
+export PNDSDK="${STAGING_DIR}"
+
+do_compile() {
+ cd pandora
+ sed -i -e s:=arm-none-linux-gnueabi-:=${TARGET_PREFIX}:g Makefile
+ oe_runmake
+}
+
+do_install() {
+ install -d ${D}/${bindir}
+ install -d ${D}/${libdir}/quake3/baseq3/
+
+ install -m 0755 ${S}/pandora/release${TARGET_ARCH}/baseq3/*.so ${D}/${libdir}/quake3/baseq3
+ install -m 0755 ${S}/pandora/release${TARGET_ARCH}/quake3 ${D}/${libdir}/quake3
+
+ install -m 0755 ${S}/pandora/autoexec.cfg ${D}/${libdir}/quake3/baseq3
+ install -m 0755 ${S}/pandora/autoexec_high_detail.cfg ${D}/${libdir}/quake3
+ install -m 0755 ${S}/pandora/autoexec_medium_detail.cfg ${D}/${libdir}/quake3
+ install -m 0755 ${S}/pandora/autoexec_low_detail.cfg ${D}/${libdir}/quake3
+ install -m 0755 ${S}/pandora/run.sh ${D}/${libdir}/quake3
+}
+
+FILES_${PN} += "${libdir}"
+FILES_${PN}-dbg += "${libdir}/quake3/.debug ${libdir}/quake3/baseq3/.debug"
+