2000-02-15 00:03:51 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2000/02/15 05:04:23 turan Exp $
|
1998-07-28 21:22:23 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
|
|
|
|
|
1999-12-19 19:37:57 -05:00
|
|
|
DISTNAME= nethack-3.2.3
|
1998-07-28 21:22:23 -04:00
|
|
|
CATEGORIES= games
|
1999-12-19 19:37:57 -05:00
|
|
|
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.2/src/ \
|
|
|
|
ftp://ftp.uu.net/pub/games/nethack/sources/ \
|
1998-11-08 20:49:54 -05:00
|
|
|
${MASTER_SITE_GNU}
|
2000-02-10 19:37:15 -05:00
|
|
|
NEED_VERSION= 1.191
|
1999-12-19 19:37:57 -05:00
|
|
|
|
|
|
|
DISTFILES= nethack-3.2.2.tar.gz
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST=${WRKDIR}/nethack-3.2.2
|
1999-12-19 19:37:57 -05:00
|
|
|
|
2000-02-02 12:02:38 -05:00
|
|
|
MASTER_SITES0= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.3/src/
|
|
|
|
PATCHFILES=nh-3.2.2-3.2.3.diff:0
|
1999-12-19 19:37:57 -05:00
|
|
|
|
|
|
|
|
1999-09-23 16:54:05 -04:00
|
|
|
MASTER_SITE_SUBDIR= nethack
|
|
|
|
|
|
|
|
MAINTAINER= espie@openbsd.org
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-02-12 03:02:07 -05:00
|
|
|
LICENSE_TYPE= GPL
|
2000-02-15 00:03:51 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= YES
|
|
|
|
PERMIT_PACKAGE_FTP= YES
|
|
|
|
PERMIT_DISTFILES_CDROM= YES
|
|
|
|
PERMIT_DISTFILES_FTP= YES
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-02-02 12:02:38 -05:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_X11= Yes
|
1998-07-28 21:22:23 -04:00
|
|
|
|
1999-09-23 16:54:05 -04:00
|
|
|
NHDIR= ${PREFIX}/lib/nethackdir
|
1998-07-28 21:22:23 -04:00
|
|
|
MAKE_ENV+= NHDIR=${NHDIR}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
|
|
|
|
|
|
|
|
post-install:
|
1999-12-19 19:37:57 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/X11/fonts/hack
|
|
|
|
@mkdir -p ${PREFIX}/share/doc/nethack
|
|
|
|
@cd ${WRKSRC}/doc; chmod 644 *.6
|
|
|
|
@cd ${WRKSRC}/doc; PREFIX='${PREFIX}' INSTALL_MAN='${INSTALL_MAN}' make manpages
|
1998-07-28 21:22:23 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
|
1999-09-23 16:54:05 -04:00
|
|
|
@cd ${WRKSRC}/win/X11 && \
|
1999-12-19 19:37:57 -05:00
|
|
|
cp NetHack.ad NetHack && \
|
1999-09-23 16:54:05 -04:00
|
|
|
${INSTALL_DATA} NetHack ${PREFIX}/lib/X11/app-defaults && \
|
|
|
|
${X11BASE}/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
|
|
|
|
${X11BASE}/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz && \
|
1998-07-28 21:22:23 -04:00
|
|
|
${INSTALL_DATA} ibm.pcf.gz ${PREFIX}/lib/X11/fonts/hack && \
|
|
|
|
${INSTALL_DATA} nh10.pcf.gz ${PREFIX}/lib/X11/fonts/hack
|
|
|
|
${X11BASE}/bin/mkfontdir ${X11BASE}/lib/X11/fonts/hack
|
1999-12-19 19:37:57 -05:00
|
|
|
@cat ${PKGDIR}/DESCR
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|