summaryrefslogtreecommitdiff
path: root/games/crossfire-srv/Makefile
blob: d9137b73e80a25f3148a5a0554408ecf2f642e14 (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.11 2002/06/23 03:49:47 jlam 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

DEPENDS+=	png>=1.2.1:../../graphics/png
DEPENDS+=	dmalloc-[0-9]*:../../devel/dmalloc

EXTRACT_ONLY=	${CF_SRC}

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

USE_XAW=	yes
USE_XPM=	yes
USE_X11=	yes
USE_GMAKE=	yes
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 "../../mk/bsd.pkg.mk"