fade7aca17
- Support staging - Add LICENSE (BSD) - Remove leading article from COMMENT Changes: http://www.catb.org/~esr/greed/NEWS
30 lines
957 B
Makefile
30 lines
957 B
Makefile
# Created by: Mark Pulford <mark@kyne.com.au>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= greed
|
|
PORTVERSION= 3.9
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://catb.org/~esr/greed/ CENKES
|
|
PKGNAMESUFFIX= -game
|
|
|
|
MAINTAINER= culot@FreeBSD.org
|
|
COMMENT= Text puzzle game with the aim of clearing the game field
|
|
|
|
LICENSE= BSD
|
|
|
|
SCOREFILE?= /var/games/greed.hs
|
|
CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${PORTVERSION}\"
|
|
LDFLAGS+= -lcurses
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}&&${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} -m 2555 -o root -g games ${WRKSRC}/greed ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/greed.6 ${STAGEDIR}${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}
|
|
|
|
.include <bsd.port.mk>
|