pkgsrc/games/nethack-lib/Makefile.common

37 lines
942 B
Makefile
Raw Normal View History

# $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
2003-07-17 23:31:04 +02:00
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