summaryrefslogtreecommitdiff
path: root/games/lpairs
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2002-05-05 22:37:41 +0000
committerrh <rh@pkgsrc.org>2002-05-05 22:37:41 +0000
commit606108d1d4e25ac18d83cc9bd7b157bdbc14d34b (patch)
tree2be84d440e495fac8de6c4667a021e220416acfd /games/lpairs
parentbf2721b251975e04e431839c6e7aab46e982af9d (diff)
downloadpkgsrc-606108d1d4e25ac18d83cc9bd7b157bdbc14d34b.tar.gz
Initial import of lpairs-1.0, an SDL version of the classical memory game.
Provided by <xs@kittenz.org>, thanks! Closes PR pkg/16667.
Diffstat (limited to 'games/lpairs')
-rw-r--r--games/lpairs/DESCR8
-rw-r--r--games/lpairs/Makefile17
-rw-r--r--games/lpairs/PLIST35
-rw-r--r--games/lpairs/distinfo6
-rw-r--r--games/lpairs/patches/patch-aa58
-rw-r--r--games/lpairs/patches/patch-ab151
6 files changed, 275 insertions, 0 deletions
diff --git a/games/lpairs/DESCR b/games/lpairs/DESCR
new file mode 100644
index 00000000000..d881fc5dbf0
--- /dev/null
+++ b/games/lpairs/DESCR
@@ -0,0 +1,8 @@
+LPairs is the classical memory game.
+This means you have to find pairs of identical cards which will then
+be removed. Your time and tries needed will be counted but there is no
+highscore chart or limit to this. I wrote this game to improve my
+memory a bit as I have some problems in remembering things.
+Of course, LPairs provides a menu like all other Lgames to configure
+graphics, sounds and gameplay (number of cards, preview of all cards
+before game starts).
diff --git a/games/lpairs/Makefile b/games/lpairs/Makefile
new file mode 100644
index 00000000000..47fe927a466
--- /dev/null
+++ b/games/lpairs/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $
+#
+
+DISTNAME= lpairs-1.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lgames/}
+
+MAINTAINER= xs@nitric.net
+HOMEPAGE= http://lgames.sourceforge.net/
+COMMENT= memory game matching pairs of cards
+
+USE_BUILDLINK_ONLY= YES
+GNU_CONFIGURE= YES
+
+.include "../../devel/SDL/buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/lpairs/PLIST b/games/lpairs/PLIST
new file mode 100644
index 00000000000..95661fbd244
--- /dev/null
+++ b/games/lpairs/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $
+bin/lpairs
+share/games/lpairs/gfx/0.bmp
+share/games/lpairs/gfx/1.bmp
+share/games/lpairs/gfx/10.bmp
+share/games/lpairs/gfx/11.bmp
+share/games/lpairs/gfx/12.bmp
+share/games/lpairs/gfx/13.bmp
+share/games/lpairs/gfx/14.bmp
+share/games/lpairs/gfx/15.bmp
+share/games/lpairs/gfx/16.bmp
+share/games/lpairs/gfx/17.bmp
+share/games/lpairs/gfx/18.bmp
+share/games/lpairs/gfx/19.bmp
+share/games/lpairs/gfx/2.bmp
+share/games/lpairs/gfx/3.bmp
+share/games/lpairs/gfx/4.bmp
+share/games/lpairs/gfx/5.bmp
+share/games/lpairs/gfx/6.bmp
+share/games/lpairs/gfx/7.bmp
+share/games/lpairs/gfx/8.bmp
+share/games/lpairs/gfx/9.bmp
+share/games/lpairs/gfx/back.bmp
+share/games/lpairs/gfx/button.bmp
+share/games/lpairs/gfx/f_white.bmp
+share/games/lpairs/gfx/f_yellow.bmp
+share/games/lpairs/gfx/logo.bmp
+share/games/lpairs/gfx/stan_font.bmp
+share/games/lpairs/gfx/title.bmp
+share/games/lpairs/sound/click.wav
+share/games/lpairs/sound/fail.wav
+share/games/lpairs/sound/remove.wav
+@dirrm share/games/lpairs/sound
+@dirrm share/games/lpairs/gfx
+@dirrm share/games/lpairs
diff --git a/games/lpairs/distinfo b/games/lpairs/distinfo
new file mode 100644
index 00000000000..c28e4aa2c34
--- /dev/null
+++ b/games/lpairs/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $
+
+SHA1 (lpairs-1.0.tar.gz) = 6b49034ba1af2468034921ea46473267f82ac672
+Size (lpairs-1.0.tar.gz) = 415321 bytes
+SHA1 (patch-aa) = a86973e5cb69750fc8d3ed90c945aefbcc230aac
+SHA1 (patch-ab) = 1ca6c292d1b1cfcaf6dcc6d5c52a299e5e431c4c
diff --git a/games/lpairs/patches/patch-aa b/games/lpairs/patches/patch-aa
new file mode 100644
index 00000000000..c1833b106d8
--- /dev/null
+++ b/games/lpairs/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $
+
+--- configure.in.orig Fri Apr 19 16:47:41 2002
++++ configure.in
+@@ -17,29 +17,30 @@
+ LIBS="$LIBS $SDL_LIBS"
+ AM_PATH_SDL(1.1.5, CFLAGS="$CFLAGS -DSDL_1_1_5",)
+
+-dnl check for pthread
+-ac_save_LIBS="$LIBS"
+-thread_flag=""
+-dnl first look for -pthread
+-LIBS="$LIBS -pthread"
+-AC_TRY_LINK(
+- [#include <pthread.h>],
+- [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ],
+- AC_MSG_RESULT("-pthread used...")
+- thread_flag="-pthread",
+- dnl now look for -lpthread
+- AC_MSG_RESULT("checking for -lpthread...")
+- LIBS="$ac_save_LIBS"
+- AC_CHECK_LIB(
+- pthread,
+- pthread_create,
+- thread_flag="-lpthread"
+- AC_MSG_RESULT(yes),
+- AC_MSG_ERROR([lib pthread is needed])
+- )
+-)
+-LIBS="$ac_save_LIBS"
+-AC_SUBST(thread_flag)
++dnl SDL picks all this stuff up
++dnl dnl check for pthread
++dnl ac_save_LIBS="$LIBS"
++dnl thread_flag=""
++dnl dnl first look for -pthread
++dnl LIBS="$LIBS -pthread"
++dnl AC_TRY_LINK(
++dnl [#include <pthread.h>],
++dnl [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ],
++dnl AC_MSG_RESULT("-pthread used...")
++dnl thread_flag="-pthread",
++dnl dnl now look for -lpthread
++dnl AC_MSG_RESULT("checking for -lpthread...")
++dnl LIBS="$ac_save_LIBS"
++dnl AC_CHECK_LIB(
++dnl pthread,
++dnl pthread_create,
++dnl thread_flag="-lpthread"
++dnl AC_MSG_RESULT(yes),
++dnl AC_MSG_ERROR([lib pthread is needed])
++dnl )
++dnl )
++dnl LIBS="$ac_save_LIBS"
++dnl AC_SUBST(thread_flag)
+
+ dnl check sound
+ sound_flag="-DSOUND"
diff --git a/games/lpairs/patches/patch-ab b/games/lpairs/patches/patch-ab
new file mode 100644
index 00000000000..9837b183a64
--- /dev/null
+++ b/games/lpairs/patches/patch-ab
@@ -0,0 +1,151 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $
+
+--- configure.orig Fri Apr 19 16:47:41 2002
++++ configure
+@@ -1515,76 +1515,76 @@
+
+ rm -f conf.sdltest
+
+-
+-ac_save_LIBS="$LIBS"
+-thread_flag=""
+-LIBS="$LIBS -pthread"
+-cat > conftest.$ac_ext <<EOF
+-#line 1524 "configure"
+-#include "confdefs.h"
+-#include <pthread.h>
+-int main() {
+- pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
+-; return 0; }
+-EOF
+-if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- echo "$ac_t"""-pthread used..."" 1>&6
+- thread_flag="-pthread"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- echo "$ac_t"""checking for -lpthread..."" 1>&6
+- LIBS="$ac_save_LIBS"
+- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
+-echo "configure:1542: checking for pthread_create in -lpthread" >&5
+-ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-lpthread $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 1550 "configure"
+-#include "confdefs.h"
+-/* Override any gcc2 internal prototype to avoid an error. */
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char pthread_create();
+-
+-int main() {
+-pthread_create()
+-; return 0; }
+-EOF
+-if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- thread_flag="-lpthread"
+- echo "$ac_t""yes" 1>&6
+-else
+- echo "$ac_t""no" 1>&6
+-{ echo "configure: error: lib pthread is needed" 1>&2; exit 1; }
+-
+-fi
+-
+-
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
++# unneeded
++#ac_save_LIBS="$LIBS"
++#thread_flag=""
++#LIBS="$LIBS -pthread"
++#cat > conftest.$ac_ext <<EOF
++##line 1524 "configure"
++##include "confdefs.h"
++##include <pthread.h>
++#int main() {
++# pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
++#; return 0; }
++#EOF
++#if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++# rm -rf conftest*
++# echo "$ac_t"""-pthread used..."" 1>&6
++# thread_flag="-pthread"
++#else
++# echo "configure: failed program was:" >&5
++# cat conftest.$ac_ext >&5
++# rm -rf conftest*
++# echo "$ac_t"""checking for -lpthread..."" 1>&6
++# LIBS="$ac_save_LIBS"
++# echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
++#echo "configure:1542: checking for pthread_create in -lpthread" >&5
++#ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
++#if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++# echo $ac_n "(cached) $ac_c" 1>&6
++#else
++# ac_save_LIBS="$LIBS"
++#LIBS="-lpthread $LIBS"
++#cat > conftest.$ac_ext <<EOF
++##line 1550 "configure"
++##include "confdefs.h"
++#/* Override any gcc2 internal prototype to avoid an error. */
++#/* We use char because int might match the return type of a gcc2
++# builtin and then its argument prototype would still apply. */
++#char pthread_create();
++#
++#int main() {
++#pthread_create()
++#; return 0; }
++#EOF
++#if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++# rm -rf conftest*
++# eval "ac_cv_lib_$ac_lib_var=yes"
++#else
++# echo "configure: failed program was:" >&5
++# cat conftest.$ac_ext >&5
++# rm -rf conftest*
++# eval "ac_cv_lib_$ac_lib_var=no"
++#fi
++#rm -f conftest*
++#LIBS="$ac_save_LIBS"
++#
++#fi
++#if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++# echo "$ac_t""yes" 1>&6
++# thread_flag="-lpthread"
++# echo "$ac_t""yes" 1>&6
++#else
++# echo "$ac_t""no" 1>&6
++#{ echo "configure: error: lib pthread is needed" 1>&2; exit 1; }
++#
++#fi
++#
++#
++#fi
++#rm -f conftest*
++#LIBS="$ac_save_LIBS"
++#
+
+ sound_flag="-DSOUND"
+ # Check whether --enable-sound or --disable-sound was given.