openbsd-ports/games/nethack/Makefile

71 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.41 2006/10/14 10:01:09 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"
2004-08-11 06:15:07 -04:00
V=3.4.3
DISTNAME= nethack-$V
PKGNAME= ${DISTNAME}p1
CATEGORIES= games
2002-10-26 16:44:38 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nethack/} \
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/
2000-10-09 20:40:20 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
# GPL
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
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
GAMEDIR=lib/nethackdir-$V
NHDIR= ${TRUEPREFIX}/${GAMEDIR}
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
FLAVORS=no_x11 qt
FLAVOR?=
.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
2003-02-24 19:15:02 -05:00
MODQT_MT= Yes
2004-11-28 17:41:14 -05:00
WANTLIB+= SM m pthread stdc++
.else
NETHACKCONFIG=${FILESDIR}/x-config
USE_X11= Yes
2004-11-28 17:41:14 -05:00
WANTLIB+= X11 Xaw Xext Xmu Xpm Xt
.endif
RUN_DEPENDS=:hackdata-*:games/hackdata
2002-10-26 16:44:38 -04:00
NO_REGRESS= Yes
SUBST_VARS=GAMEDIR V
2002-10-26 16:44:38 -04:00
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/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
.if ${FLAVOR:L} == ""
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
@cd ${WRKSRC}/win/X11 && cp NetHack.ad NetHack-$V && \
${INSTALL_DATA} NetHack-$V ${PREFIX}/lib/X11/app-defaults
.endif
.include <bsd.port.mk>