openbsd-ports/games/nethack/Makefile

64 lines
1.6 KiB
Makefile
Raw Normal View History

2001-08-27 05:46:31 -04:00
# $OpenBSD: Makefile,v 1.21 2001/08/27 09:46:31 espie Exp $
# $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
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/ \
ftp://ftp.uu.net/pub/games/nethack/sources/ \
${MASTER_SITE_GNU}
2001-03-23 11:11:10 -05:00
DISTFILES= nethack-331.tgz
HOMEPAGE= http://nethack.org/
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>
2000-10-09 20:40:20 -04:00
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:02:07 -05:00
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
NHDIR= ${PREFIX}/lib/nethackdir
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
FLAVORS=no_x11 qt
FLAVOR?=
.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}
.else
NETHACKCONFIG=${FILESDIR}/x-config
USE_X11= Yes
.endif
RUN_DEPENDS=${LOCALBASE}/share/doc/nethack/Guidebook.txt:hackdata-*:games/hackdata
do-configure:
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh symlinks
post-build:
@cd ${WRKSRC}/util && ${MAKE_ENV} make recover
post-install:
${INSTALL_PROGRAM} ${WRKBUILD}/util/recover ${PREFIX}/bin
@cd ${WRKSRC}/doc && \
${INSTALL_MAN} nethack.6 recover.6 ${PREFIX}/man/man6
.if ${FLAVOR:L} == ""
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
@cd ${WRKSRC}/win/X11 && cp NetHack.ad NetHack && \
${INSTALL_DATA} NetHack ${PREFIX}/lib/X11/app-defaults
.endif
.include <bsd.port.mk>