2004-03-05 16:21:01 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.16 2004/03/05 15:21:01 pooka Exp $
|
2000-08-10 19:50:04 +02:00
|
|
|
#
|
|
|
|
|
2004-03-05 16:21:01 +01:00
|
|
|
NETHACK_BASEVER= 3.4.3
|
|
|
|
NETHACK_VERSION= ${NETHACK_BASEVER}
|
|
|
|
NETHACK_DISTVER= ${NETHACK_BASEVER:S/.//g}
|
2003-03-01 22:12:49 +01:00
|
|
|
NETHACK_DIR= nethackdir340
|
2000-08-10 19:50:04 +02:00
|
|
|
|
2004-03-05 16:21:01 +01:00
|
|
|
DISTNAME= nethack-${NETHACK_DISTVER}-src
|
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/
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER}
|
2000-08-10 19:50:04 +02:00
|
|
|
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
|