From c8ada0df0ddf88a4585fa647be3782a22038748d Mon Sep 17 00:00:00 2001 From: kyak Date: Sun, 19 Jun 2011 17:26:00 +0400 Subject: [PATCH] vitetris: terminal-based Tetris clone --- vitetris/Makefile | 47 ++++++++++++++++++++++++++++++ vitetris/patches/001-systest.patch | 10 +++++++ 2 files changed, 57 insertions(+) create mode 100644 vitetris/Makefile create mode 100644 vitetris/patches/001-systest.patch diff --git a/vitetris/Makefile b/vitetris/Makefile new file mode 100644 index 0000000..d2a40e3 --- /dev/null +++ b/vitetris/Makefile @@ -0,0 +1,47 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. + +include $(TOPDIR)/rules.mk + +PKG_NAME:=vitetris +PKG_VERSION:=0.57 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://victornils.net/tetris +PKG_MD5SUM:=07d02ee03e2edd66a8741729e237f21f + +include $(INCLUDE_DIR)/package.mk + +define Package/vitetris + TITLE:=terminal-based Tetris clone + SECTION:=games + CATEGORY:=Games + URL:=http://victornils.net/tetris +endef + +define Package/vitetris/description + vitetris is a terminal-based Tetris clone by Victor Nilsson. It can also run in graphics mode using the Allegro library +endef + +CONFIGURE_ARGS= \ + --without-xlib \ + --without-joystick \ + --with-2player \ + --with-network \ + --with-curses \ + --without-allegro \ + --with-term_resizing \ + --with-menu \ + --with-blockstyles \ + --with-pctimer + +CONFIGURE_VARS+=HOSTCC="$(HOSTCC)" HOST_CFLAGS="$(HOST_CFLAGS)" HOST_CPPFLAGS="$(HOST_CPPFLAGS)" + +define Package/vitetris/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tetris $(1)/usr/bin/vitetris +endef + +$(eval $(call BuildPackage,vitetris)) diff --git a/vitetris/patches/001-systest.patch b/vitetris/patches/001-systest.patch new file mode 100644 index 0000000..e7ad9b6 --- /dev/null +++ b/vitetris/patches/001-systest.patch @@ -0,0 +1,10 @@ +diff --git a/systest.mk b/systest.mk +index 43df066..4affb36 100644 +--- a/systest.mk ++++ b/systest.mk +@@ -1,4 +1,4 @@ + systest: systest.c +- $(CC) -o systest $(CFLAGS) $(CPPFLAGS) systest.c ++ $(HOSTCC) -o systest $(HOST_CFLAGS) $(HOST_CPPFLAGS) systest.c + clean: + rm -f systest systest.exe