1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/games/nibbles/Makefile
Ollivier Robert 2b52e8bd72 Nibbles is a simple ncurses-based console game in which you control a snake.
Your objective is to eat as many dots as possible before you crash into
yourself or the wall.

PR:		ports/40643
Submitted by:	Michael L. Hostbaek (mich@freebsdcluster.org)
2002-07-19 14:27:30 +00:00

39 lines
931 B
Makefile

# ex:ts=8
# Ports collection makefile for: nibbles
# Date created: Tue Jul 15, 2002
# Whom: Michael L. Hostbaek (mich@freebsdcluster.org)
#
# $FreeBSD$
#
PORTNAME= nibbles
PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://download.nmee.net/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mich@freebsdcluster.org
LDFLAGS+= -L${LOCALBASE}/lib -lncurses
CFLAGS+= -Wall
USE_GCC= yes
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
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} ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
.endif
.include <bsd.port.mk>