diff options
author | reinoud <reinoud> | 2006-07-18 17:40:40 +0000 |
---|---|---|
committer | reinoud <reinoud> | 2006-07-18 17:40:40 +0000 |
commit | 603adb348f127323270a62f33e801310983036d4 (patch) | |
tree | 4e40930e1425878f2f025c3f382803c2631b6eab | |
parent | 659af165f7009f6da8ed6226269c1857de2314ba (diff) | |
download | pkgsrc-603adb348f127323270a62f33e801310983036d4.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.
-rw-r--r-- | games/fltk-sudoku/DESCR | 5 | ||||
-rw-r--r-- | games/fltk-sudoku/Makefile | 51 | ||||
-rw-r--r-- | games/fltk-sudoku/PLIST | 2 | ||||
-rw-r--r-- | games/fltk-sudoku/distinfo | 5 |
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 |