1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/games/nibbles/Makefile
Emanuel Haupt f88fe53411 - Support staging
- Define DOCS option
2014-04-11 21:41:16 +00:00

31 lines
841 B
Makefile

# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
# $FreeBSD$
PORTNAME= nibbles
PORTVERSION= 1.2
CATEGORIES= games
MASTER_SITES= http://freebsd.unixfreunde.de/sources/
MAINTAINER= mich@FreeBSD.org
COMMENT= Nibbles is a simple ncurses-based console game
LDFLAGS+= -L${LOCALBASE}/lib -lncurses
CFLAGS+= -Wall
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o main.o main.c)
(cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o misc.o misc.c)
(cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o screen.o screen.c)
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} main.o misc.o screen.o)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>