blob: 946a151fd246517480ea7063378268f30d1013d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
PORTNAME= greed
PORTVERSION= 3.8
CATEGORIES= games
MASTER_SITES= http://catb.org/~esr/greed/ CENKES
PKGNAMESUFFIX= -game
MAINTAINER= culot@FreeBSD.org
COMMENT= A text puzzle game with the aim of clearing the game field
MAN6= greed.6
PLIST_FILES= bin/greed
SCOREFILE?= /var/games/greed.hs
CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${PORTVERSION}\"
LDFLAGS+= -lcurses
NO_STAGE= yes
do-build:
@cd ${WRKSRC}&&${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS}
do-install:
${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}
.include <bsd.port.mk>
|