1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/sudoku/Makefile
Pawel Pekala 2f57165548 - Add staging support
- Convert to USES=tar:bzip2
- Unmute build/install commands
2014-04-12 18:41:38 +00:00

38 lines
936 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= sudoku
PORTVERSION= 1.0.2
CATEGORIES= games
MASTER_SITES= http://chipstips.com/download/
EXTRACT_SUFX= .tbz
MAINTAINER= ports@FreeBSD.org
COMMENT= Console based Sudoku games
USES= ncurses tar:bzip2
PLIST_FILES= bin/sudoku \
man/man6/sudoku.6.gz \
share/sudoku/template
PLIST_DIRS= share/sudoku
PORTDOCS= *
OPTIONS_DEFINE= DOCS
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} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sudoku.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/template ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/sudoku.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>