blob: df1a6f091d8bd5557d6ba4098bca47904e1fc927 (
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.3 2000/10/16 01:37:50 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
MD5_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
|