Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master games grimoire by Dale E. Edmons (4e9ab758ae7d516d7d63c37c8088ef6f797e5798)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: "Dale E. Edmons" <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master games grimoire by Dale E. Edmons (4e9ab758ae7d516d7d63c37c8088ef6f797e5798)
  • Date: Sun, 10 Feb 2008 02:21:20 -0600

GIT changes to master games grimoire by Dale E. Edmons
<linuxfan AT sourcemage.org>:

ChangeLog | 3
games-arcade-2d/atris/DEPENDS | 2
games-arcade-2d/atris/DETAILS | 13 ++
games-arcade-2d/atris/HISTORY | 7 +
games-arcade-2d/atris/PRE_BUILD | 5
games-arcade-2d/atris/atris-1.0.7.dfsg.1.orig.patch | 106
++++++++++++++++++++
6 files changed, 136 insertions(+)

New commits:
commit 4e9ab758ae7d516d7d63c37c8088ef6f797e5798
Author: Dale E. Edmons <linuxfan AT sourcemage.org>
Commit: Dale E. Edmons <linuxfan AT sourcemage.org>

Added new spell in games-arcade-2d/atris.

diff --git a/ChangeLog b/ChangeLog
index e4c9e82..6e244c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-02-10 Dale E. Edmons <linuxfan AT sourcemage.org>
+ * games-arcade-2d/atris: Added new atris game.
+
2008-02-09 Dale E. Edmons <linuxfan AT sourcemage.org>
* games-strategy-rts/lgeneral: Added new lgeneral game.

diff --git a/games-arcade-2d/atris/DEPENDS b/games-arcade-2d/atris/DEPENDS
new file mode 100755
index 0000000..6b25605
--- /dev/null
+++ b/games-arcade-2d/atris/DEPENDS
@@ -0,0 +1,2 @@
+depends sdl_ttf &&
+depends ttf-bitstream-vera
diff --git a/games-arcade-2d/atris/DETAILS b/games-arcade-2d/atris/DETAILS
new file mode 100755
index 0000000..c6dcbb1
--- /dev/null
+++ b/games-arcade-2d/atris/DETAILS
@@ -0,0 +1,13 @@
+ SPELL=atris
+ VERSION=1.0.7.dfsg.1.orig
+ SOURCE="${SPELL}_${VERSION}.tar.gz"
+ SOURCE_URL[0]=http://ftp.debian.org/debian/pool/main/a/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:9203257a899323102aba8b3620879aa71a173619b199533d2f8aa6c43ac96b5c677fd6bc8e11d82d0fde6a2855b3dc40c1da835c07a9a3278071b9862d98f7d7
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-1.0.7"
+ WEB_SITE="http://www.wkiri.com/projects/atris";
+ LICENSE[0]=GPL
+ ENTERED=20071207
+ SHORT="*tris clone"
+cat << EOF
+Another *tris clone.
+EOF
diff --git a/games-arcade-2d/atris/HISTORY b/games-arcade-2d/atris/HISTORY
new file mode 100644
index 0000000..36b19e6
--- /dev/null
+++ b/games-arcade-2d/atris/HISTORY
@@ -0,0 +1,7 @@
+2007-12-07 linuxfan <demaillists AT comcast.net>
+ * PRE_BUILD: wrote patch to make atis SMGL compliant
+2007-12-07 linuxfan <demaillists AT comcast.net>
+ * BUILD, DEPENDS, DETAILS, INSTALL: Package not well-behaved.
+2007-12-07 linuxfan <demaillists AT comcast.net>
+ * BUILD, DEPENDS, DETAILS, , INSTALL: spell created
+
diff --git a/games-arcade-2d/atris/PRE_BUILD b/games-arcade-2d/atris/PRE_BUILD
new file mode 100755
index 0000000..e284ec1
--- /dev/null
+++ b/games-arcade-2d/atris/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd /usr/src &&
+patch -p0 < $SCRIPT_DIRECTORY/${SPELL}-${VERSION}.patch &&
+cd $SOURCE_DIRECTORY &&
+autoreconf -i
diff --git a/games-arcade-2d/atris/atris-1.0.7.dfsg.1.orig.patch
b/games-arcade-2d/atris/atris-1.0.7.dfsg.1.orig.patch
new file mode 100644
index 0000000..94ff3f8
--- /dev/null
+++ b/games-arcade-2d/atris/atris-1.0.7.dfsg.1.orig.patch
@@ -0,0 +1,106 @@
+diff -uraN atris-1.0.7-orig//Makefile.am atris-1.0.7//Makefile.am
+--- atris-1.0.7-orig//Makefile.am 2003-07-14 16:28:54.000000000 -0700
++++ atris-1.0.7//Makefile.am 2007-12-07 21:31:00.902142444 -0800
+@@ -50,22 +50,21 @@
+ SUBDIRS = .protos graphics styles Docs
+
+ # Special install rule for the game
+-install: install-am
+- make install_gamedata target=@GAME_INSTALLDIR@
+-
+-install_gamedata:
+- sh mkinstalldirs $(target)/
++#install: install-am
++install:
++ install $(PACKAGE) $(prefix)/games
++ sh mkinstalldirs @SHAREDIR@/
+ cp -rv graphics \
+ styles \
+ Atris.Players \
+ Atris.Scores \
+- $(target)/
+- chmod 666 $(target)/Atris.Players
+- chmod 666 $(target)/Atris.Scores
++ @SHAREDIR@/
++ chmod 666 @SHAREDIR@/Atris.Players
++ chmod 666 @SHAREDIR@/Atris.Scores
+
+ install_gamedocs:
+- sh mkinstalldirs $(target)/
+- cp -rv README* COPYING* Docs* $(target)/
++ sh mkinstalldirs @SHAREDIR@/docs
++ cp -rv README* COPYING* Docs* @SHAREDIR@/docs
+
+ # Rule to build tar-gzipped distribution package
+ $(PACKAGE)-$(VERSION).tar.gz: dist
+diff -uraN atris-1.0.7-orig//atris.c atris-1.0.7//atris.c
+--- atris-1.0.7-orig//atris.c 2005-01-20 14:18:19.000000000 -0800
++++ atris-1.0.7//atris.c 2007-12-07 21:31:00.906142669 -0800
+@@ -976,11 +976,16 @@
+ Debug("Changing directory to [%s]\n",ATRIS_LIBDIR);
+
+ /* Set up the font */
+- sfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",18);
++/* sfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",18);
+ font = TTF_OpenFont("graphics/NewMediumNormal.ttf",24);
+ lfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",36);
+- hfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",96);
+- if ( font == NULL ) PANIC("Couldn't open
[graphics/NewMediumNormal.ttf].", ATRIS_LIBDIR);
++ hfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",96);*/
++#define USERFONT "/usr/share/fonts/TTF/Vera.ttf"
++ sfont = TTF_OpenFont(USERFONT,18);
++ font = TTF_OpenFont(USERFONT,24);
++ lfont = TTF_OpenFont(USERFONT,36);
++ hfont = TTF_OpenFont(USERFONT,96);
++ if ( font == NULL ) PANIC("Couldn't open " USERFONT, ATRIS_LIBDIR);
+ TTF_SetFontStyle(font, renderstyle);
+ TTF_SetFontStyle(sfont, renderstyle);
+ /* Initialize scores */
+diff -uraN atris-1.0.7-orig//configure.in atris-1.0.7//configure.in
+--- atris-1.0.7-orig//configure.in 2005-01-20 13:46:09.000000000 -0800
++++ atris-1.0.7//configure.in 2007-12-07 21:30:46.913345266 -0800
+@@ -51,17 +51,19 @@
+
+ case "$target" in
+ *-*-mingw32*)
+- GAME_INSTALLDIR="C:/Program\\ Files/$PACKAGE"
++ GAME_BINDIR="C:/Program\\ Files/$PACKAGE"
+ CFLAGS="$CFLAGS -s"
+ ;;
+ *)
+- GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
++ SHAREDIR="\$(prefix)/share/games/\$(PACKAGE)"
++ GAME_BINDIR="\$(prefix)/games"
+ ;;
+ esac
+
+
+
+-AC_SUBST(GAME_INSTALLDIR)
++AC_SUBST(GAME_BINDIR)
++AC_SUBST(SHAREDIR)
+
+ dnl Check for SDL
+ SDL_VERSION=1.1.6
+@@ -69,7 +71,8 @@
+ :,
+ AC_MSG_ERROR([*** SDL version $SDL_VERSION not found! Get it from
http://www.libsdl.org ])
+ )
+-CFLAGS="$CFLAGS -Wall -Wimplicit -Wsign-compare -Wpointer-arith $SDL_CFLAGS
-DATRIS_LIBDIR=\\\"$GAME_INSTALLDIR\\\""
++CFLAGS="$CFLAGS -Wall -Wimplicit -Wsign-compare -Wpointer-arith $SDL_CFLAGS
\
++ -DATRIS_LIBDIR=\\\"${SHAREDIR}\\\""
+ LIBS="$LIBS $SDL_LIBS"
+
+ # Finally create all the generated files
+@@ -91,8 +94,9 @@
+ Compiler: ${CC}
+ Host System Type: ${host}
+ Libraries: ${LIBS}
+- Install path: ${prefix}
+- Game files: ${GAME_INSTALLDIR}
++ Install \$(prefix): ${prefix}
++ Bin files: ${GAME_BINDIR}
++ Game files: ${SHAREDIR}
+
+ Now type 'make' to build $PACKAGE $VERSION.
+ "




Archive powered by MHonArc 2.6.24.

Top of Page