1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

SDL Jewels is a tile-matching 8x8 puzzle game

PR:	ports/167304
Submitted by:	nemysis <nemysis@gmx.ch>
Approved by:	eadler (mentor)
This commit is contained in:
Alex Kozlov 2012-04-27 18:30:32 +00:00
parent 7bd7151d1b
commit a8027b2c9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295618
5 changed files with 87 additions and 1 deletions

View File

@ -784,10 +784,11 @@
SUBDIR += sdb
SUBDIR += sdl-ball
SUBDIR += sdlCC
SUBDIR += sdl_jewels
SUBDIR += sdl_scavenger
SUBDIR += sdlquake2
SUBDIR += sdlroids
SUBDIR += sdlsand
SUBDIR += sdl_scavenger
SUBDIR += sea-defender
SUBDIR += seabattle
SUBDIR += seahaven

50
games/sdl_jewels/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New Ports collection makefile for: SDL_jewels
# Date created: 2012-04-25
# Whom: nemysis@gmx.ch
#
# $FreeBSD$
#
PORTNAME= sdl_jewels
PORTVERSION= 1.1.1
CATEGORIES= games
MASTER_SITES= http://www.linuxmotors.com/gljewel/downloads/
DISTNAME= ${PORTNAME:S/sdl/SDL/}-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= nemysis@gmx.ch
COMMENT= SDL Jewels is a tile-matching 8x8 puzzle game
LICENSE= GPLv2
USE_SDL= sdl image mixer
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/sdljewels
PORTDATA= *
PORTDOCS= ChangeLog README
ALL_TARGET=
do-install:
# Scripts
@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
./gljewel\n" > ${WRKDIR}/sdljewels.sh
@${INSTALL_SCRIPT} ${WRKDIR}/sdljewels.sh ${PREFIX}/bin/sdljewels
# Executable
${MKDIR} ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${DATADIR}
# Data
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
# Documentation
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (SDL_jewels-1.1.1.tgz) = c9a40b7e18fabb03e4065e656bc2c30f595103bf20dc74a10847c3f3aa138ee7
SIZE (SDL_jewels-1.1.1.tgz) = 195366

View File

@ -0,0 +1,11 @@
Index: Makefile
@@ -1,7 +1,7 @@
EXE = gljewel
-CFLAGS = -O2 -Wall $(shell sdl-config --cflags)
-LDFLAGS = $(shell sdl-config --libs) -lGL -lm
+CFLAGS += $(shell sdl-config --cflags)
+LDFLAGS += $(shell sdl-config --libs) -lGL -lm
OBJS = $(EXE).o matrix.o sound.o

View File

@ -0,0 +1,22 @@
The game is very simple. There is an 8x8 array of jewels of 7 types. You
need to get 3 or more in a row horizontally or vertically in order to
score points. You can swap any two jewels that are next to each other
up and down or left and right. The mechanic is to click the mouse on the
first one, then drag in the direction to switch with. Then let up on the
mouse button, but this last isn't so critical.
Jewels can only be swapped if after the swap there is at least one 3 or more
in a row set created. Otherwise the jewels return to their original position.
There is a clock shown on the left. When it counts down to 0 the game is over.
You will probably be able to enter your name into the high score table.
Hit enter when done.
Hit F1 or spacebar to start a new game, or ESC to exit.
This game makes use of OpenGL. Without an OpenGL implementation it won't work.
If you only have software rendering you can still play but the frame rate
will be lower. The GLX module must be present as well.
WWW: http://www.linuxmotors.com/gljewel/