summaryrefslogtreecommitdiff
path: root/games/crossfire-srv/Makefile
blob: e07fbfabc2abf8c5158779f5922fb0cad8cd1cfa (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
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.14 2004/04/27 03:09:58 snj Exp $
#

DISTNAME=	crossfire-1.0.0
PKGNAME=	crossfire-server-1.0.0
PKGREVISION=	1
CATEGORIES=	games x11
MASTER_SITES=	ftp://ftp.scruz.net/users/mwedel/public/
DISTFILES=	${CF_SRC} ${CF_MAPS}

MAINTAINER=	root@garbled.net
HOMEPAGE=	http://crossfire.real-time.com/
COMMENT=	X11 multi/single player game similar to gauntlet and nethack

EXTRACT_ONLY=	${CF_SRC}

CF_SRC=		crossfire-1.0.0.tar.bz2
CF_MAPS=	crossfire-1.0.0-maps.tar.bz2

USE_BUILDLINK3=	yes
USE_X11=	yes
USE_GNU_TOOLS+=	make
GNU_CONFIGURE=	yes
USE_PERL5=	yes
CONFIGURE_ARGS+=	--with-includes=-I${LOCALBASE}/include

MAKE_ENV+=	EXTRA_INCLUDES=-I${LOCALBASE}/include

REPLACE_PERL=	lib/xpmtopix.pl lib/adm/check-xpm.pl lib/adm/make_xpm_file.pl
REPLACE_PERL+=	lib/adm/map_expand.pl lib/adm/mapslitter.pl
REPLACE_PERL+=	lib/adm/archsearch.pl lib/adm/collect_images.pl
REPLACE_PERL+=	lib/collect.pl lib/util.pl lib/checkarch.pl
REPLACE_PERL+=	utils/crossloop.pl utils/metaserver.pl
REPLACE_PERL+=	doc/include_html.pl doc/playbook/make_index.pl
REPLACE_PERL+=	doc/spoiler-html/makeps.pl

post-install:
	cd ${LOCALBASE}/share/crossfire && \
	    ${GZCAT} ${DISTDIR}/${CF_MAPS} | ${GTAR} xmf -
	@${CHOWN} ${ROOT_USER}:games ${LOCALBASE}/bin/crossfire
	@${CHMOD} 2755 ${LOCALBASE}/bin/crossfire
	@${CHOWN} -R ${ROOT_USER}:games ${LOCALBASE}/share/crossfire
	@${CHOWN} -R ${ROOT_USER}:games ${LOCALBASE}/var/crossfire
	@${CHMOD} -R g+w ${LOCALBASE}/var/crossfire

.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../devel/dmalloc/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"