pkgsrc/games/sudoku-cli/Makefile
heinz b29db15f32 Initial import of sudoku-cli 1.0.1.
This is a commandline version of the sudoku board game.

The sudoku board game is played on a 9x9 grid, divided into rows, columns,
and 9 blocks of 3x3 squares. The objective is to fill the empty squares
with the digits 1-9, so that each row, column, and block contains each
of the digits 1-9 (and hence, it is  not  possible  for  any digit to
appear twice in the same row, column or block).
2007-05-19 01:10:17 +00:00

43 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2007/05/19 01:10:17 heinz Exp $
#
DISTNAME= sudoku-1.0.1
PKGNAME= ${DISTNAME:S/sudoku/sudoku-cli/}
CATEGORIES= games
MASTER_SITES= http://www.laurasia.com.au/downloads/
EXTRACT_SUFX= .tgz
MAINTAINER= heinz@NetBSD.org
HOMEPAGE= http://www.laurasia.com.au/downloads/
COMMENT= Commandline version of sudoku board game
PKG_DESTDIR_SUPPORT= user-destdir
BUILD_TARGET= sudoku
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man6 ${SHARE_SUBDIR}
SHARE_SUBDIR= share/sudoku-cli
SHARE_DIR= ${PREFIX}/${SHARE_SUBDIR}
MAKE_FLAGS+= INSTALL_BIN=${INSTALL_PROGRAM:Q}
MAKE_FLAGS+= INSTALL_DATADIR=${INSTALL_DATA_DIR:Q}
MAKE_FLAGS+= INSTALL_DATA=${INSTALL_DATA:Q}
MAKE_FLAGS+= INSTALL_MAN=${INSTALL_MAN:Q}
MAKE_FLAGS+= BINDIR=${PREFIX:Q}/bin
MAKE_FLAGS+= LIBDIR=${SHARE_DIR:Q}
MAKE_FLAGS+= MAN6DIR=${PREFIX:Q}/${PKGMANDIR:Q}/man6
MAKE_FLAGS+= DEFS=${CFLAGS:Q}
MAKE_FLAGS+= SUDOKUNAME=sudoku-cli
CFLAGS+= -DTEMPLATE="${SHARE_DIR:Q}/template"
CFLAGS+= -DPRECANNED="${SHARE_DIR:Q}/precanned"
SUBST_CLASSES+= sudoku-cli
SUBST_STAGE.sudoku-cli= pre-build
SUBST_MESSAGE.sudoku-cli=Correcting path names in man page
SUBST_FILES.sudoku-cli+=sudoku.6
SUBST_SED.sudoku-cli+= -e s,/usr/lib/sudoku,${SHARE_DIR:Q},
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"