2002-10-26 16:44:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2002/10/26 20:44:39 naddy 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"
|
2002-03-23 09:51:46 -05:00
|
|
|
DISTNAME= nethack-3.4.0
|
1998-07-28 21:22:23 -04:00
|
|
|
CATEGORIES= games
|
2002-10-26 16:44:38 -04:00
|
|
|
|
2002-03-23 09:51:46 -05:00
|
|
|
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh340/src/ \
|
1999-12-19 19:37:57 -05:00
|
|
|
ftp://ftp.uu.net/pub/games/nethack/sources/ \
|
2002-05-13 14:50:36 -04:00
|
|
|
${MASTER_SITE_GNU:=nethack/}
|
2002-03-23 09:51:46 -05:00
|
|
|
DISTFILES= nethack-340.tgz
|
2001-03-23 11:11:10 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://nethack.org/
|
1999-12-19 19:37:57 -05:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2002-03-23 09:51:46 -05: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
|
2002-05-08 11:38:06 -04:00
|
|
|
MODULES= qt3
|
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-09-19 12:03:09 -04:00
|
|
|
RUN_DEPENDS=:hackdata-*:games/hackdata
|
2000-04-16 16:48:56 -04:00
|
|
|
|
2002-10-26 16:44:38 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
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>
|