pkgsrc/games/nethack-lib/Makefile.common
pooka f813eca7e7 Nethack 3.4.3
This is a bugfix-release.  It should be compatible with bones files
and savegames all the way back to 3.4.0 (but of course it's safer
to ascend before upgrade).

Assorted fixes (full list in doc/fixes34.3):
  * Correct several inconsistencies
  * Correct a potentially fatal bug caused by dropping loadstones
  * Handle level completely filled with monsters better
  * X11 player selection fixes, one of which could be fatal
  * Eliminated a gold-in-shop-container cheat
2004-03-05 15:21:01 +00:00

36 lines
968 B
Makefile

# $NetBSD: Makefile.common,v 1.16 2004/03/05 15:21:01 pooka Exp $
#
NETHACK_BASEVER= 3.4.3
NETHACK_VERSION= ${NETHACK_BASEVER}
NETHACK_DISTVER= ${NETHACK_BASEVER:S/.//g}
NETHACK_DIR= nethackdir340
DISTNAME= nethack-${NETHACK_DISTVER}-src
CATEGORIES= games
MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/nethack/
EXTRACT_SUFX= .tgz
MAINTAINER= pooka@NetBSD.org
HOMEPAGE= http://www.nethack.org/
WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER}
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