pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/fltk-sudoku Import of the fltk example applicati...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88ad8d260853
branches:  trunk
changeset: 516291:88ad8d260853
user:      reinoud <reinoud%pkgsrc.org@localhost>
date:      Tue Jul 18 17:40:40 2006 +0000

description:
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:

 games/fltk-sudoku/DESCR    |   5 ++++
 games/fltk-sudoku/Makefile |  51 ++++++++++++++++++++++++++++++++++++++++++++++
 games/fltk-sudoku/PLIST    |   2 +
 games/fltk-sudoku/distinfo |   5 ++++
 4 files changed, 63 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r 14ea49063f01 -r 88ad8d260853 games/fltk-sudoku/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/fltk-sudoku/DESCR   Tue Jul 18 17:40:40 2006 +0000
@@ -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 -r 14ea49063f01 -r 88ad8d260853 games/fltk-sudoku/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/fltk-sudoku/Makefile        Tue Jul 18 17:40:40 2006 +0000
@@ -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@localhost
+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 -r 14ea49063f01 -r 88ad8d260853 games/fltk-sudoku/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/fltk-sudoku/PLIST   Tue Jul 18 17:40:40 2006 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/18 17:40:40 reinoud Exp $
+bin/fltk-sudoku
diff -r 14ea49063f01 -r 88ad8d260853 games/fltk-sudoku/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/fltk-sudoku/distinfo        Tue Jul 18 17:40:40 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index