2003-09-02 02:30:54 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.13 2003/09/02 00:30:54 pooka Exp $
|
2000-08-10 19:50:04 +02:00
|
|
|
#
|
|
|
|
|
2003-09-02 02:30:54 +02:00
|
|
|
NETHACK_BASEVER= 3.4.2
|
2003-03-01 22:12:49 +01:00
|
|
|
NETHACK_VERSION= ${NETHACK_BASEVER}
|
2003-09-02 02:30:54 +02:00
|
|
|
NETHACK_DISTVER= 342
|
2003-03-01 22:12:49 +01:00
|
|
|
NETHACK_DIR= nethackdir340
|
2000-08-10 19:50:04 +02:00
|
|
|
|
|
|
|
DISTNAME= nethack-${NETHACK_DISTVER}
|
2003-03-29 13:40:00 +01:00
|
|
|
WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER}
|
2000-08-10 19:50:04 +02:00
|
|
|
CATEGORIES= games
|
2003-09-02 02:30:54 +02:00
|
|
|
MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/nethack/
|
2000-08-10 19:50:04 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= pooka@NetBSD.org
|
2000-08-10 19:50:04 +02:00
|
|
|
HOMEPAGE= http://www.nethack.org/
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= ./sys/unix/setup.sh
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-04-25 00:14:36 +02:00
|
|
|
.if !defined(NO_CONFIGURE)
|
2000-08-10 19:50:04 +02:00
|
|
|
pre-configure:
|
|
|
|
@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
|
2003-04-25 00:14:36 +02:00
|
|
|
.endif
|
2000-08-10 19:50:04 +02:00
|
|
|
|
2003-04-25 00:14:36 +02:00
|
|
|
.if !defined(NO_BUILD)
|
2000-08-10 19:50:04 +02:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre
|
|
|
|
@${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' \
|
2002-03-22 18:26:24 +01:00
|
|
|
-e 's|@GZIP_PROGRAM@|'`${ECHO} ${GZIP_CMD} \
|
|
|
|
| ${AWK} '{ print $$1 }'`'|g' \
|
2000-08-10 19:50:04 +02:00
|
|
|
< ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
|
|
|
|
@${RM} -f ${WRKSRC}/config.h-pre
|
2003-04-25 00:14:36 +02:00
|
|
|
.endif
|