blob: 552135c43cdc4ea510cc1f79636ee73773c2f7c7 (
plain) (
blame)
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
44
45
46
|
# ex:ts=8
# Ports collection makefile for: sudoku
# Date created: Feb 27, 2006
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= sudoku
PORTVERSION= 1.0.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.laurasia.com.au/downloads/
EXTRACT_SUFX= .tgz
MAINTAINER= ijliao@FreeBSD.org
COMMENT= Console based sudoku games
PLIST_FILES= bin/sudoku \
share/sudoku/template
PLIST_DIRS= share/sudoku
MAN6= sudoku.6
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${GREP} -lR "/usr/lib/sudoku" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e "s,/usr/lib/sudoku,${DATADIR},"
do-build:
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} sudoku.c -lcurses
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/template ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/sudoku.html ${DOCSDIR}
.endif
.include <bsd.port.mk>
|