summaryrefslogtreecommitdiff
path: root/games/nethack-qt/Makefile
blob: 7b81e59d5dae5cd302a0f3d146532874005709ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.3 1998/12/29 19:42:09 tron Exp $
#

DISTNAME=		qnethack-3.2.2.1.0.1.src
PKGNAME=		nethack-qt-3.2.2
CATEGORIES=		games x11
MASTER_SITES=		ftp://ftp.troll.no/contrib/

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://trolls.troll.no/warwick/nethack/

DEPENDS+=		nethack-lib-3.2.2:../nethack-lib
DEPENDS+=		xpm-3.4k:../../graphics/xpm
DEPENDS+=		qt-1.42:../../x11/qt

USE_GMAKE=		yes
WRKSRC=			../nethack-lib/${WRKDIR_BASENAME}/nethack-3.2.2
ALL_TARGET=		nethack tiles.xpm
INSTALL_TARGET=		binfiles
MAKE_ENV+=		GTYPE=-qt QTDIR=${X11BASE}

do-extract:
	-@mkdir ${WRKDIR_BASENAME}
	(cd ../nethack-lib && make clean)
	(cd ../nethack-lib && make patch)
	(cd ${WRKSRC}/sys/unix && sh ./setup.sh)
	(cd ${WRKSRC}/src && make clean)
	(cd ${WRKSRC}/win && ${EXTRACT_CMD} -xzf ${DISTDIR}/${DISTNAME}.tar.gz)

post-patch:
	(cd ${WRKSRC} && ${PATCH} -p0 < win/Qt/nhqt.patch)
	(cd ../nethack-lib && make configure)

post-install:
	${INSTALL} -c -o bin -g games -m 0644 ${WRKSRC}/dat/tiles.xpm ${LOCALBASE}/share/nethackdir

do-clean:
	-@rm -r ${WRKDIR_BASENAME}

.include "../../mk/bsd.pkg.mk"