2001-04-07 01:24:31 -04:00
|
|
|
# New ports collection makefile for: greed
|
|
|
|
# Date created: Apr 2, 2001
|
2007-08-03 02:42:12 -04:00
|
|
|
# Whom: Mark Pulford <mark@kyne.com.au>
|
2001-04-07 01:24:31 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= greed
|
2012-02-26 13:46:45 -05:00
|
|
|
PORTVERSION= 3.8
|
2001-04-07 01:24:31 -04:00
|
|
|
CATEGORIES= games
|
2007-08-03 02:42:12 -04:00
|
|
|
MASTER_SITES= http://catb.org/~esr/greed/ CENKES
|
2001-04-07 04:52:11 -04:00
|
|
|
PKGNAMESUFFIX= -game
|
2001-04-07 01:24:31 -04:00
|
|
|
|
2012-02-26 13:46:45 -05:00
|
|
|
MAINTAINER= culot@FreeBSD.org
|
2003-02-22 11:04:35 -05:00
|
|
|
COMMENT= A text puzzle game with the aim of clearing the game field
|
2001-04-07 01:24:31 -04:00
|
|
|
|
|
|
|
MAN6= greed.6
|
2004-02-06 08:12:53 -05:00
|
|
|
PLIST_FILES= bin/greed
|
2007-08-03 02:42:12 -04:00
|
|
|
SCOREFILE?= /var/games/greed.hs
|
|
|
|
CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${PORTVERSION}\"
|
2011-09-23 18:26:39 -04:00
|
|
|
LDFLAGS+= -lcurses
|
2007-08-03 02:42:12 -04:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC}&&${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS}
|
2001-04-07 01:24:31 -04:00
|
|
|
|
|
|
|
do-install:
|
2007-08-03 02:42:12 -04:00
|
|
|
${INSTALL_PROGRAM} -m 2555 -o root -g games ${WRKSRC}/greed ${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/greed.6 ${MAN6PREFIX}/man/man6/
|
|
|
|
@a=${SCOREFILE};[ -f $$a ]||:>$$a&&${CHOWN} root:games $$a&&${CHMOD} 664 $$a
|
|
|
|
@${ECHO_CMD} '@exec a=${SCOREFILE};[ -f $$a ]||:>$$a&&\
|
|
|
|
${CHOWN} root:games $$a&&${CHMOD} 664 $$a' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@unexec a=${SCOREFILE};[ -s $$a ]||${RM} -f $$a' >> ${TMPPLIST}
|
2001-04-07 01:24:31 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|