2001-08-27 05:46:31 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2001/08/27 09:46:31 espie Exp $
|
1998-07-28 21:22:23 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
|
|
|
|
|
2001-03-23 11:11:10 -05:00
|
|
|
COMMENT= "dungeon explorin', hackin', game. Piece of cake"
|
|
|
|
DISTNAME= nethack-3.3.1
|
1998-07-28 21:22:23 -04:00
|
|
|
CATEGORIES= games
|
2001-08-27 05:46:31 -04:00
|
|
|
NEED_VERSION= 1.447
|
2001-03-23 11:11:10 -05:00
|
|
|
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh331/src/ \
|
1999-12-19 19:37:57 -05:00
|
|
|
ftp://ftp.uu.net/pub/games/nethack/sources/ \
|
1998-11-08 20:49:54 -05:00
|
|
|
${MASTER_SITE_GNU}
|
2001-03-23 11:11:10 -05:00
|
|
|
DISTFILES= nethack-331.tgz
|
|
|
|
|
|
|
|
HOMEPAGE= http://nethack.org/
|
1999-12-19 19:37:57 -05:00
|
|
|
|
1999-09-23 16:54:05 -04:00
|
|
|
MASTER_SITE_SUBDIR= nethack
|
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
# GPL
|
2000-03-19 14:36:53 -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-03-19 14:36:53 -05:00
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2001-04-09 06:59:40 -04:00
|
|
|
NHDIR= ${PREFIX}/lib/nethackdir
|
2000-04-16 16:48:56 -04:00
|
|
|
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
|
|
|
|
2000-12-26 18:29:26 -05:00
|
|
|
FLAVORS=no_x11 qt
|
2000-04-16 16:48:56 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2000-12-26 18:29:26 -05:00
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
|
|
|
NETHACKCONFIG=${FILESDIR}/simple-config
|
|
|
|
.elif ${FLAVOR:L} == "qt"
|
2001-03-30 09:28:38 -05:00
|
|
|
SED_PLIST=|sed -e '/^!%%no_x11%%/d'
|
2000-06-23 11:05:34 -04:00
|
|
|
NETHACKCONFIG=${FILESDIR}/qt-config
|
2001-08-27 05:46:31 -04:00
|
|
|
MODULES= qt2
|
|
|
|
MAKE_ENV+=MODQT_INCDIR=${MODQT_INCDIR} MODQT_LIBDIR=${MODQT_LIBDIR}
|
2000-04-16 16:48:56 -04:00
|
|
|
.else
|
2000-12-26 18:29:26 -05:00
|
|
|
NETHACKCONFIG=${FILESDIR}/x-config
|
|
|
|
USE_X11= Yes
|
2000-04-16 16:48:56 -04:00
|
|
|
.endif
|
|
|
|
|
2001-04-09 06:59:40 -04:00
|
|
|
RUN_DEPENDS=${LOCALBASE}/share/doc/nethack/Guidebook.txt:hackdata-*:games/hackdata
|
2000-04-16 16:48:56 -04:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh symlinks
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-04-16 16:48:56 -04:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/util && ${MAKE_ENV} make recover
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-04-16 16:48:56 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/util/recover ${PREFIX}/bin
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} nethack.6 recover.6 ${PREFIX}/man/man6
|
2001-01-31 17:43:44 -05:00
|
|
|
.if ${FLAVOR:L} == ""
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
|
2000-04-16 16:48:56 -04:00
|
|
|
@cd ${WRKSRC}/win/X11 && cp NetHack.ad NetHack && \
|
|
|
|
${INSTALL_DATA} NetHack ${PREFIX}/lib/X11/app-defaults
|
|
|
|
.endif
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|