2010-07-06 18:25:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.46 2010/07/06 22:25:53 espie Exp $
|
1998-07-28 21:22:23 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
|
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT= dungeon explorin', hackin', game. Piece of cake
|
2004-08-11 06:15:07 -04:00
|
|
|
V=3.4.3
|
2004-08-10 07:23:24 -04:00
|
|
|
DISTNAME= nethack-$V
|
2009-08-10 02:29:51 -04:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
1998-07-28 21:22:23 -04:00
|
|
|
CATEGORIES= games
|
2002-10-26 16:44:38 -04:00
|
|
|
|
2003-02-24 19:05:07 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nethack/} \
|
2006-02-09 23:37:48 -05:00
|
|
|
ftp://ftp.planetmirror.com/pub/nethack/nh${V:S/.//g}/src/ \
|
|
|
|
http://www.nethack.de/download/
|
2004-08-11 06:15:07 -04:00
|
|
|
DISTFILES= nethack-${V:S/.//g}-src.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
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= c termlib
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX}
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2004-08-10 07:23:24 -04:00
|
|
|
GAMEDIR=lib/nethackdir-$V
|
|
|
|
NHDIR= ${TRUEPREFIX}/${GAMEDIR}
|
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"
|
2000-06-23 11:05:34 -04:00
|
|
|
NETHACKCONFIG=${FILESDIR}/qt-config
|
2004-08-10 06:36:36 -04:00
|
|
|
MODULES= x11/qt3
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB+= SM m pthread stdc++
|
2000-04-16 16:48:56 -04:00
|
|
|
.else
|
2000-12-26 18:29:26 -05:00
|
|
|
NETHACKCONFIG=${FILESDIR}/x-config
|
|
|
|
USE_X11= Yes
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB+= X11 Xaw Xext Xmu Xpm Xt pthread-stubs xcb
|
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
|
2004-08-10 07:23:24 -04:00
|
|
|
SUBST_VARS=GAMEDIR V
|
2002-10-26 16:44:38 -04:00
|
|
|
|
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:
|
2004-08-10 07:23:24 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/util/recover ${PREFIX}/bin/recover-$V
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/nethack.6 ${PREFIX}/man/man6/nethack-$V.6
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/recover.6 ${PREFIX}/man/man6/recover-$V.6
|
|
|
|
${INSTALL_PROGRAM} ${PREFIX}/bin/nethack ${PREFIX}/bin/nethack-$V
|
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
|
2004-08-10 07:23:24 -04:00
|
|
|
@cd ${WRKSRC}/win/X11 && cp NetHack.ad NetHack-$V && \
|
|
|
|
${INSTALL_DATA} NetHack-$V ${PREFIX}/lib/X11/app-defaults
|
2000-04-16 16:48:56 -04:00
|
|
|
.endif
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|