41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2009/09/10 22:17:52 jasper Exp $
|
|
|
|
COMMENT= console based sudoku
|
|
|
|
DISTNAME= sudoku-1.0.1
|
|
PKGNAME= ${DISTNAME}p0
|
|
CATEGORIES= games
|
|
|
|
HOMEPAGE= http://www.laurasia.com.au/sudoku/
|
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# Public Domain
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c curses
|
|
|
|
MASTER_SITES= http://www.phil.uu.nl/~lievisse/distfiles/ \
|
|
http://www.laurasia.com.au/downloads/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
do-configure:
|
|
@perl -i -pe 's,!!PREFIX!!,${PREFIX},' ${WRKSRC}/sudoku.6 \
|
|
${WRKSRC}/sudoku.c
|
|
|
|
do-build:
|
|
${CC} ${CFLAGS} -o ${WRKSRC}/sudoku ${WRKSRC}/sudoku.c -lcurses
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sudoku ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/sudoku.6 ${PREFIX}/man/man6
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/sudoku
|
|
${INSTALL_DATA} ${WRKSRC}/template ${PREFIX}/share/sudoku
|
|
${INSTALL_DATA} ${WRKSRC}/sudoku.html ${PREFIX}/share/sudoku
|
|
|
|
.include <bsd.port.mk>
|