summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorreinoud <reinoud@pkgsrc.org>2006-07-18 17:40:40 +0000
committerreinoud <reinoud@pkgsrc.org>2006-07-18 17:40:40 +0000
commit3dd85c0c9a3617997c67115c33e277783e84b6af (patch)
tree4e40930e1425878f2f025c3f382803c2631b6eab /games
parent6a808e98f064a95636068b29d76af88ab3f32a05 (diff)
downloadpkgsrc-3dd85c0c9a3617997c67115c33e277783e84b6af.tar.gz
Import of the fltk example application sudoku that can generate sudoku
games and solve them. Sudoku (pronounced soo-dough-coo with the emphasis on the first syllable) is a simple number-based puzzle/game played on a 9x9 grid that is divided into 3x3 subgrids. The goal is to enter a number from 1 to 9 in each cell so that each number appears only once in each column and row. In addition, each 3x3 subgrid may only contain one of each number.
Diffstat (limited to 'games')
-rw-r--r--games/fltk-sudoku/DESCR5
-rw-r--r--games/fltk-sudoku/Makefile51
-rw-r--r--games/fltk-sudoku/PLIST2
-rw-r--r--games/fltk-sudoku/distinfo5
4 files changed, 63 insertions, 0 deletions
diff --git a/games/fltk-sudoku/DESCR b/games/fltk-sudoku/DESCR
new file mode 100644
index 00000000000..0cef8876cfa
--- /dev/null
+++ b/games/fltk-sudoku/DESCR
@@ -0,0 +1,5 @@
+Sudoku (pronounced soo-dough-coo with the emphasis on the first syllable) is a
+simple number-based puzzle/game played on a 9x9 grid that is divided into 3x3
+subgrids. The goal is to enter a number from 1 to 9 in each cell so that each
+number appears only once in each column and row. In addition, each 3x3 subgrid
+may only contain one of each number.
diff --git a/games/fltk-sudoku/Makefile b/games/fltk-sudoku/Makefile
new file mode 100644
index 00000000000..4d2290e4aa4
--- /dev/null
+++ b/games/fltk-sudoku/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/18 17:40:40 reinoud Exp $
+
+DISTNAME= fltk-1.1.7-source
+PKGNAME= fltk-sudoku-1.1.7
+VERS= ${DISTNAME:S/fltk-//:S/-source//}
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fltk/} \
+ ftp://ftp2.easysw.com/pub/fltk/${VERS}/ \
+ ftp://ftp3.easysw.com/pub/fltk/${VERS}/ \
+ http://ftp.easysw.com/pub/fltk/${VERS}/ \
+ http://mirror.nu6.org/ftp.easysw.com/pub/fltk/${VERS}/ \
+ ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/${VERS}/ \
+ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/${VERS}/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.easysw.com/~mike/sudoku/index.html
+COMMENT= FLTK example Sudoku game creator and solver
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
+USE_LANGUAGES= c++
+USE_TOOLS+= gmake
+USE_LIBTOOL= yes
+
+PTHREAD_OPTS+= require
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-libtool=${LIBTOOL:Q}
+CONFIGURE_ARGS+= --enable-threads
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-configure
+SUBST_MESSAGE.config= Adjusting paths to fltk libraries in configure result
+SUBST_FILES.config= makeinclude fltk-config
+SUBST_SED.config= -e "s|../lib/|${PREFIX}/lib/|g"
+
+SUBST_CLASSES+= config2
+SUBST_STAGE.config2= post-configure
+SUBST_MESSAGE.config2= Adjusting paths to fltk libraries in Sudoku's Makefile
+SUBST_FILES.config2= test/Makefile
+SUBST_SED.config2= -e "s|../lib/||g"
+
+BUILD_DIRS= test
+BUILD_TARGET= sudoku
+
+do-install:
+ ${INSTALL_GAME} ${WRKSRC}/test/sudoku ${PREFIX}/bin/fltk-sudoku
+
+.include "../../x11/fltk/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/fltk-sudoku/PLIST b/games/fltk-sudoku/PLIST
new file mode 100644
index 00000000000..f908b3161f8
--- /dev/null
+++ b/games/fltk-sudoku/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/18 17:40:40 reinoud Exp $
+bin/fltk-sudoku
diff --git a/games/fltk-sudoku/distinfo b/games/fltk-sudoku/distinfo
new file mode 100644
index 00000000000..65b46f92b63
--- /dev/null
+++ b/games/fltk-sudoku/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/18 17:40:40 reinoud Exp $
+
+SHA1 (fltk-1.1.7-source.tar.bz2) = 16b174522920403af1e4ccddd36daaefda3765c8
+RMD160 (fltk-1.1.7-source.tar.bz2) = a539a1c6bb3363e54bc82c7995037c5d8ede9dd7
+Size (fltk-1.1.7-source.tar.bz2) = 2060757 bytes