mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# New ports collection makefile for: greed
|
|
# Date created: Apr 2, 2001
|
|
# Whom: Mark Pulford <mark@kyne.com.au>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= greed
|
|
PORTVERSION= 3.7
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://catb.org/~esr/greed/ CENKES
|
|
PKGNAMESUFFIX= -game
|
|
|
|
MAINTAINER= ports@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
|
|
|
|
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>
|