blob: 9b0ca7db8cfeb84fb01edf37289eed3f9ac9f62c (
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
33
34
35
36
|
# $NetBSD: Makefile.common,v 1.13 2003/09/02 00:30:54 pooka Exp $
#
NETHACK_BASEVER= 3.4.2
NETHACK_VERSION= ${NETHACK_BASEVER}
NETHACK_DISTVER= 342
NETHACK_DIR= nethackdir340
DISTNAME= nethack-${NETHACK_DISTVER}
WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER}
CATEGORIES= games
MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/nethack/
EXTRACT_SUFX= .tgz
MAINTAINER= pooka@NetBSD.org
HOMEPAGE= http://www.nethack.org/
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./sys/unix/setup.sh
.include "../../mk/bsd.prefs.mk"
.if !defined(NO_CONFIGURE)
pre-configure:
@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
.endif
.if !defined(NO_BUILD)
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
.endif
|