blob: ea24ea50acd7d355875a6f5aa2d3db97f399c0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile,v 1.5 2013/10/17 16:24:11 roy Exp $
#
DISTNAME= sudoku-1.0.1
PKGREVISION= 1
PKGNAME= ${DISTNAME:S/sudoku/sudoku-cli/}
CATEGORIES= games
MASTER_SITES= http://www.laurasia.com.au/downloads/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.laurasia.com.au/downloads/
COMMENT= Commandline version of sudoku board game
LICENSE= public-domain
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 "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|