summaryrefslogtreecommitdiffstats
path: root/package/games/prboom
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-09-24 13:03:22 +0000
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-09-24 13:03:22 +0000
commit005d15ae78f33e39ef3355e49ee9f0702e612af8 (patch)
treec237ae650e676b3fe9cf37afd338f31e2b3983e9 /package/games/prboom
parent7108decafe79ff862837a1a7a8f447eed90eb28f (diff)
downloadbuildroot-novena-005d15ae78f33e39ef3355e49ee9f0702e612af8.tar.gz
buildroot-novena-005d15ae78f33e39ef3355e49ee9f0702e612af8.zip
prboom: add new games package PrBoom
This patch adds a new package PrBoom. PrBoom is a Doom and Doom ][ client which uses the SDL library for graphics, sound and network. It also supports OpenGL, but this has not been enabled in this package since few embedded platforms support OpenGL. PrBoom allows you to play the good old game on newer hardware. It even supports higher resolution and better rendring, while still keeping the old style alive. http://prboom.sourceforge.net/ Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'package/games/prboom')
-rw-r--r--package/games/prboom/Config.in11
-rw-r--r--package/games/prboom/prboom.mk50
2 files changed, 61 insertions, 0 deletions
diff --git a/package/games/prboom/Config.in b/package/games/prboom/Config.in
new file mode 100644
index 000000000..2835929ca
--- /dev/null
+++ b/package/games/prboom/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PRBOOM
+ bool "PrBoom"
+ select BR2_PACKAGE_SDL
+ select BR2_PACKAGE_SDL_MIXER
+ select BR2_PACKAGE_SDL_NET
+ help
+ PrBoom is a Doom client which allows you to play the good old game on
+ newer hardware. It even supports higher resolution and better
+ rendring, while still keeping the old style alive.
+
+ http://prboom.sourceforge.net/
diff --git a/package/games/prboom/prboom.mk b/package/games/prboom/prboom.mk
new file mode 100644
index 000000000..1b9594c0f
--- /dev/null
+++ b/package/games/prboom/prboom.mk
@@ -0,0 +1,50 @@
+#############################################################
+#
+# PrBoom
+#
+#############################################################
+PRBOOM_VERSION:=2.4.7
+
+PRBOOM_DEPENDENCIES = sdl SDL_net sdl_mixer
+
+$(eval $(call AUTOTARGETS,package/games,prboom))
+
+$(PRBOOM_TARGET_EXTRACT):
+ $(ZCAT) $(DL_DIR)/$(PRBOOM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(CONFIG_UPDATE) $(PRBOOM_DIR)/autotools
+ touch $@
+
+$(PRBOOM_TARGET_CONFIGURE):
+ (cd $(PRBOOM_DIR); \
+ $(TARGET_CONFIGURE_ARGS) \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --oldincludedir=$(STAGING_DIR)/usr/include \
+ --with-sdl-prefix=$(STAGING_DIR)/usr \
+ --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
+ --disable-cpu-opt \
+ --disable-sdltest \
+ --disable-gl \
+ --without-x \
+ )
+ifeq ($(BR2_ENDIAN),"BIG")
+ $(SED) 's,.*#undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' $(PRBOOM_DIR)/config.h
+endif
+ touch $@
+
+$(PRBOOM_TARGET_INSTALL_TARGET):
+ $(INSTALL) -D $(PRBOOM_DIR)/src/prboom $(TARGET_DIR)/usr/games/prboom
+ $(INSTALL) -D $(PRBOOM_DIR)/src/prboom-game-server $(TARGET_DIR)/usr/games/prboom-game-server
+ $(INSTALL) -D $(PRBOOM_DIR)/data/prboom.wad $(TARGET_DIR)/usr/share/games/doom/prboom.wad
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/games/prboom
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/games/prboom-game-server
+
+$(PRBOOM_TARGET_CLEAN):
+ rm -rf $(TARGET_DIR)/usr/share/games/doom/prboom.wad
+ rm -rf $(TARGET_DIR)/usr/games/prboom-game-server
+ rm -rf $(TARGET_DIR)/usr/games/prboom
+ -$(MAKE) -C $(PRBOOM_DIR) clean