2011-05-11 02:56:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.50 2011/05/11 06:56:42 ajacoutot Exp $
|
1998-07-28 21:22:23 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
|
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
COMMENT = dungeon explorin', hackin', game. Piece of cake
|
|
|
|
V = 3.4.3
|
|
|
|
DISTNAME = nethack-$V
|
|
|
|
PKGNAME = ${DISTNAME}
|
2011-05-11 02:56:42 -04:00
|
|
|
REVISION = 4
|
2010-11-16 06:23:25 -05:00
|
|
|
CATEGORIES = games
|
2002-10-26 16:44:38 -04:00
|
|
|
|
2010-11-16 06:23:25 -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/
|
2010-11-16 06:23:25 -05:00
|
|
|
DISTFILES = nethack-${V:S/.//g}-src.tgz
|
2001-03-23 11:11:10 -05:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
HOMEPAGE = http://nethack.org/
|
1999-12-19 19:37:57 -05:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
MAINTAINER = Marc Espie <espie@openbsd.org>
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2002-03-23 09:51:46 -05:00
|
|
|
# GPL
|
2010-11-16 06:23:25 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = c termlib
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
FAKE_FLAGS = PREFIX=${PREFIX}
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
GAMEDIR = lib/nethackdir-$V
|
|
|
|
NHDIR = ${TRUEPREFIX}/${GAMEDIR}
|
|
|
|
MAKE_ENV += NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
2010-10-18 14:00:15 -04:00
|
|
|
USE_GROFF = Yes
|
2000-04-16 16:48:56 -04:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
FLAVORS = no_x11 qt
|
|
|
|
FLAVOR ?=
|
2000-04-16 16:48:56 -04:00
|
|
|
|
2000-12-26 18:29:26 -05:00
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
2010-11-16 06:23:25 -05:00
|
|
|
NETHACKCONFIG = ${FILESDIR}/simple-config
|
2000-12-26 18:29:26 -05:00
|
|
|
.elif ${FLAVOR:L} == "qt"
|
2010-11-16 06:23:25 -05:00
|
|
|
NETHACKCONFIG = ${FILESDIR}/qt-config
|
|
|
|
MODULES = x11/qt3
|
|
|
|
WANTLIB += SM m pthread stdc++
|
2000-04-16 16:48:56 -04:00
|
|
|
.else
|
2010-11-16 06:23:25 -05:00
|
|
|
NETHACKCONFIG = ${FILESDIR}/x-config
|
|
|
|
WANTLIB += X11 Xaw Xext Xmu Xpm Xt pthread-stubs xcb
|
2000-04-16 16:48:56 -04:00
|
|
|
.endif
|
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
RUN_DEPENDS = games/hackdata
|
2000-04-16 16:48:56 -04:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
NO_REGRESS = Yes
|
|
|
|
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>
|