File:  [cvs.NetBSD.org] / pkgsrc / games / crossfire-server / Makefile
Revision 1.54: download - view: text, annotated - select for diffs
Fri May 22 10:56:07 2020 UTC (4 years, 6 months ago) by adam
Branches: MAIN
CVS tags: HEAD
revbump after updating security/nettle

# $NetBSD: Makefile,v 1.54 2020/05/22 10:56:07 adam Exp $

DISTNAME=	crossfire-1.71.0
PKGNAME=	${DISTNAME:S/crossfire-/crossfire-server-/1}
PKGREVISION=	5
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=crossfire/}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
DISTFILES+=	${DISTNAME}.arch${EXTRACT_SUFX}
DISTFILES+=	${DISTNAME}.maps${EXTRACT_SUFX}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://crossfire.real-time.com/
COMMENT=	Multi-player graphical arcade and adventure game (server)
LICENSE=	gnu-gpl-v2

WRKSRC=		${WRKDIR}/crossfire-server-${PKGVERSION_NOREV}
USE_LIBTOOL=	yes
USE_TOOLS+=	gmake perl:run bash:run csh:run ksh
CONFIG_SHELL=	ksh
GNU_CONFIGURE=	yes
PLIST_SRC=	${WRKDIR}/PLIST PLIST

BUILD_DEFS+=	VARBASE

CHECK_PORTABILITY_SKIP+=	utils/get_release.in

# "Collect is already running.
# If you think this is an error, rmdir collect.lock"
MAKE_JOBS_SAFE=	no

PKG_SYSCONFSUBDIR=	crossfire
CONFIGURE_ARGS+=	--disable-check
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}/games
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ENV+=		ac_cv_path_GZIP=${GZIP_CMD:Q}

INSTALLATION_DIRS=	share/crossfire/arch
INSTALLATION_DIRS+=	share/crossfire/maps

# crossfire
REPLACE_BASH+=	utils/crossloop.web.in
REPLACE_PERL+=	doc/include_html.pl
REPLACE_PERL+=	doc/playbook/make_index.pl
REPLACE_PERL+=	doc/scripts/items-extract.pl
REPLACE_PERL+=	doc/scripts/makeps.pl
REPLACE_PERL+=	doc/scripts/monster-extract.pl
REPLACE_PERL+=	lib/adm/archsearch.pl
REPLACE_PERL+=	lib/adm/collect_images.pl
REPLACE_PERL+=	lib/adm/map_expand.pl
REPLACE_PERL+=	lib/adm/mapslitter.pl
REPLACE_PERL+=	lib/collect.pl
REPLACE_PERL+=	lib/util.pl
REPLACE_PERL+=	utils/metaserver.pl
REPLACE_PERL+=	utils/player_dl.pl.in
REPLACE_PERL+=	utils/metaserver.pl.in
REPLACE_PERL+=	utils/mktable.script
REPLACE_PERL+=	lib/adm/map_info
# arch
REPLACE_BASH+=	../arch/dev/png_recompress.sh
REPLACE_CSH+=	../arch/dev/xpmtopng
REPLACE_CSH+=	../arch/dev/merge.csh
REPLACE_CSH+=	../arch/dev/scripts/updatearch
REPLACE_PERL+=	../arch/dev/scripts/update_armor.pl
REPLACE_PERL+=	../arch/dev/scripts/update_body.pl
REPLACE_PERL+=	../arch/dev/scripts/update_monster.pl
REPLACE_PERL+=	../arch/dev/scripts/update_object.pl
REPLACE_PERL+=	../arch/dev/scripts/update_shield.pl
REPLACE_PERL+=	../arch/dev/split-png-linux.pl
REPLACE_PERL+=	../arch/dev/splitter-png.pl
REPLACE_PERL+=	../arch/dev/splitter.pl
# maps
REPLACE_BASH+=	../maps/brest/pshops/pshop_copier
REPLACE_PERL+=	../maps/Info/combine.pl
REPLACE_PERL+=	../maps/Info/map_sed.pl
REPLACE_PERL+=	../maps/Info/rewrite_exits.pl
REPLACE_PERL+=	../maps/Info/rewrite_styles.pl
REPLACE_PERL+=	../maps/Info/update_apart.pl
REPLACE_PERL+=	../maps/Info/update_exits.pl

EGDIR=		${PREFIX}/share/examples/crossfire
CONF_FILES+=	${EGDIR}/ban_file ${PKG_SYSCONFDIR}/ban_file
CONF_FILES+=	${EGDIR}/dm_file ${PKG_SYSCONFDIR}/dm_file
CONF_FILES+=	${EGDIR}/exp_table ${PKG_SYSCONFDIR}/exp_table
CONF_FILES+=	${EGDIR}/forbid ${PKG_SYSCONFDIR}/forbid
CONF_FILES+=	${EGDIR}/metaserver2 ${PKG_SYSCONFDIR}/metaserver2
CONF_FILES+=	${EGDIR}/motd ${PKG_SYSCONFDIR}/motd
CONF_FILES+=	${EGDIR}/news ${PKG_SYSCONFDIR}/news
CONF_FILES+=	${EGDIR}/rules ${PKG_SYSCONFDIR}/rules
CONF_FILES+=	${EGDIR}/settings ${PKG_SYSCONFDIR}/settings

pre-build:
	${LN} -sf ${WRKDIR}/arch ${WRKSRC}/lib

post-install:
	cd ${WRKDIR} && cp -R arch maps ${DESTDIR}${PREFIX}/share/crossfire
	cd ${DESTDIR}${PREFIX} && \
		${FIND} share/crossfire/arch -type f -print >> ${WRKDIR}/PLIST
	cd ${DESTDIR}${PREFIX} && \
		${FIND} share/crossfire/maps -type f -print >> ${WRKDIR}/PLIST

.include "../../graphics/gd/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>