diff options
Diffstat (limited to 'games/sudoku-cli/Makefile')
-rw-r--r-- | games/sudoku-cli/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/games/sudoku-cli/Makefile b/games/sudoku-cli/Makefile new file mode 100644 index 00000000000..8c14f297aaf --- /dev/null +++ b/games/sudoku-cli/Makefile @@ -0,0 +1,43 @@ +# $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" |