summaryrefslogtreecommitdiff
path: root/games/nethack-lib/Makefile.common
blob: 0b43c4f763cee312241312352dc51197042ffd7c (plain)
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
32
# $NetBSD: Makefile.common,v 1.4 2001/03/07 15:52:02 wiz Exp $
#

NETHACK_VERSION=	3.3.1
NETHACK_DISTVER=	331

DISTNAME=		nethack-${NETHACK_DISTVER}
CATEGORIES=		games
MASTER_SITES=		ftp://ftp.nethack.org/pub/nethack/nh331/src/
EXTRACT_SUFX=		.tgz

MAINTAINER=		pooka@netbsd.org
HOMEPAGE=		http://www.nethack.org/

WRKSRC=			${WRKDIR}/nethack-${NETHACK_VERSION}

HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	./sys/unix/setup.sh

DIGEST_FILE=		${.CURDIR}/../nethack-lib/files/md5

.include "../../mk/bsd.prefs.mk"

pre-configure:
	@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh

post-patch:
	@${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre
	@${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g'				\
		-e 's|@GZIP_PROGRAM@|'`${ECHO} ${GZIP_CMD} | ${AWK} '{ print $$1 }'`'|g' \
		< ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
	@${RM} -f ${WRKSRC}/config.h-pre