pkgsrc/games/nethack-lib/Makefile.common

36 lines
949 B
Text

# $NetBSD: Makefile.common,v 1.11 2003/04/24 22:14:36 jmc Exp $
#
NETHACK_BASEVER= 3.4.1
NETHACK_VERSION= ${NETHACK_BASEVER}
NETHACK_DISTVER= 341
NETHACK_DIR= nethackdir340
DISTNAME= nethack-${NETHACK_DISTVER}
WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER}
CATEGORIES= games
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh${NETHACK_DISTVER}/src/
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