summaryrefslogtreecommitdiff
path: root/recipes/duke3d/duke3d_svn.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/duke3d/duke3d_svn.bb')
-rw-r--r--recipes/duke3d/duke3d_svn.bb27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/duke3d/duke3d_svn.bb b/recipes/duke3d/duke3d_svn.bb
new file mode 100644
index 0000000000..36e46df513
--- /dev/null
+++ b/recipes/duke3d/duke3d_svn.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Duke Nukem 3D game engine"
+LICENSE = "GPLv2"
+DEPENDS = "virtual/libsdl libsdl-mixer"
+
+SRCREV = "185"
+PV = "0.0+svnr${SRCREV}"
+
+SRC_URI = "svn://svn.icculus.org/duke3d/;module=trunk \
+ file://duke3d.desktop"
+
+S = "${WORKDIR}/trunk/source"
+
+PARALLEL_MAKE = ""
+
+do_compile() {
+ for i in $(find ${S} -name 'Makefile') ; do
+ sed -i s:\ gcc:\ '${CC}': $i
+ done
+ make
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/duke3d ${D}${bindir}/
+ install -d ${D}${datadir}/applications
+ install -m 0644 ${WORKDIR}/duke3d.desktop ${D}${datadir}/applications/
+}