1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Committed.

PR:		107941
Approved by:	philip
This commit is contained in:
Jeremy Chadwick 2007-01-15 15:57:21 +00:00
parent 2518b329ca
commit 7f497ec7aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182439
3 changed files with 12 additions and 3 deletions

View File

@ -14,7 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src
EXTRACT_SUFX= .tgz
MAINTAINER?= freebsd@jdc.parodius.com
MAINTAINER?= koitsu@FreeBSD.org
COMMENT?= A dungeon explorin', slashin', hackin' game
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
@ -51,6 +51,12 @@ PATCH_SITES+= http://www.stack.nl/~jilles/games/ \
PATCH_DIST_STRIP= -p1
CFLAGS+= -DMENU_COLOR_REGEX_POSIX
.endif
.if defined(WITH_HPMON)
PATCHFILES+= hpmon.diff
PATCH_SITES+= http://www.netsonic.fi/~walker/nh/
PATCH_DIST_STRIP= -p1
CFLAGS+= -DHPMON
.endif
.elif ${PKGNAMESUFFIX} == "-qt"
USE_QT_VER= 3
MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \

View File

@ -4,3 +4,6 @@ SIZE (nethack-343-src.tgz) = 3497458
MD5 (nh343-menucolor_jilles.diff) = 42e8c979c0ebe3e799c62056f86935bb
SHA256 (nh343-menucolor_jilles.diff) = 28ffb66cc901c74f6321a4537f07313363d35cf60a621d829a14d46c080f3913
SIZE (nh343-menucolor_jilles.diff) = 17914
MD5 (hpmon.diff) = a8e5cab6a93100612d428f3973dc418f
SHA256 (hpmon.diff) = d9369768f81f06e75b7349609bdff6fd9deff226452f04a89597190e4489074f
SIZE (hpmon.diff) = 2041

View File

@ -5,7 +5,6 @@ bin/%%HACKNAME%%
@exec chmod -R 775 %D/%%HACKDIR%%
@exec chmod 2755 %D/%%HACKDIR%%/%%HACKNAME%%
@exec chown games:games %D/%%HACKDIR%%/save
@dirrmtry %%HACKDIR%%/save
%%HACKDIR%%/Arc-fila.lev
%%HACKDIR%%/Arc-filb.lev
%%HACKDIR%%/Arc-goal.lev
@ -144,6 +143,7 @@ bin/%%HACKNAME%%
@exec touch %D/%%HACKDIR%%/logfile && chmod 664 %D/%%HACKDIR%%/logfile
@unexec [ -s %D/%%HACKDIR%%/record ] || rm -f %D/%%HACKDIR%%/record
@exec touch %D/%%HACKDIR%%/record && chmod 664 %D/%%HACKDIR%%/record
@dirrm %%HACKDIR%%
@unexec rmdir %D/%%HACKDIR%%/save >/dev/null 2>&1 || echo 'Nethack directory (%D/%%HACKDIR%%/) not removed due to existing save games. If you are permanently removing this port, you should do a ``rm -rf %D/%%HACKDIR%%``.' | fmt
@dirrmtry %%HACKDIR%%
%%PORTDOCS%%%%HACKDOCSDIR%%/Guidebook.txt
%%PORTDOCS%%@dirrm %%HACKDOCSDIR%%