1996-11-02 13:53:37 +00:00
|
|
|
# New ports collection makefile for: crossfire
|
1997-01-25 12:27:16 +00:00
|
|
|
# Version required: 0.93.0
|
1996-11-02 13:53:37 +00:00
|
|
|
# Date created: So 27 Okt 1996 12:25:55 MET
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1998-09-28 02:07:57 +00:00
|
|
|
# $Id: Makefile,v 1.24 1998/09/17 00:32:32 asami Exp $
|
1996-11-02 13:53:37 +00:00
|
|
|
#
|
|
|
|
|
1998-05-08 13:51:37 +00:00
|
|
|
DISTNAME= crossfire-${MAJ}.${MIN}.${PL}
|
1997-05-06 14:28:43 +00:00
|
|
|
CATEGORIES= games
|
1998-05-08 13:51:37 +00:00
|
|
|
MASTER_SITES= ftp://ftp.real-time.com/pub/games/crossfire/ \
|
1996-11-02 13:53:37 +00:00
|
|
|
ftp://ftp.ifi.uio.no/pub/crossfire/ \
|
1998-05-08 13:51:37 +00:00
|
|
|
ftp://ftp.pyramid.com/pub/crossfire/ \
|
|
|
|
ftp://yoyo.cc.monash.edu.au/pub/crossfire/ \
|
|
|
|
ftp://ftp.cs.city.ac.uk/pub/games/crossfire/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/games/crossfire/ \
|
|
|
|
ftp://ftp.cs.titech.ac.jp/pub/games/crossfire/
|
1997-01-03 08:49:05 +00:00
|
|
|
DISTFILES= ${CF_SOURCES} ${CF_DOC} ${CF_MAPS} ${CF_SOUNDS} \
|
|
|
|
${CF_ARCH} ${CF_CLSERV}
|
1996-11-02 13:53:37 +00:00
|
|
|
|
1997-09-18 14:21:06 +00:00
|
|
|
MAINTAINER= andreas@FreeBSD.ORG
|
1996-11-02 13:53:37 +00:00
|
|
|
|
1997-01-03 08:49:05 +00:00
|
|
|
BUILD_DEPENDS= rplay:${PORTSDIR}/audio/rplay
|
1998-09-17 00:33:02 +00:00
|
|
|
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
|
1997-01-03 08:49:05 +00:00
|
|
|
|
|
|
|
EXTRACT_ONLY= ${CF_SOURCES} ${CF_DOC}
|
1997-10-13 20:31:28 +00:00
|
|
|
USE_PERL5= yes
|
1997-01-03 08:49:05 +00:00
|
|
|
USE_IMAKE= yes
|
1997-10-04 14:53:11 +00:00
|
|
|
PREFIX= ${LOCALBASE}
|
1998-09-28 02:07:57 +00:00
|
|
|
MAN6= crossfire.6 crossedit.6
|
1997-01-03 08:49:05 +00:00
|
|
|
|
1996-11-02 13:53:37 +00:00
|
|
|
# Do you want to be able to rebuild documentation after installing the game
|
1997-10-04 14:53:11 +00:00
|
|
|
# to produce Postscript documentation with colored icons ?! You have to go
|
|
|
|
# into the workdir and to build everything manually.
|
1996-11-02 13:53:37 +00:00
|
|
|
# You need TeX to do this ! Please read the README's !
|
|
|
|
WANT_CF_ARCH= NO
|
|
|
|
|
1998-05-08 13:51:37 +00:00
|
|
|
MAJ= 0
|
|
|
|
MIN= 94
|
1998-08-31 18:58:31 +00:00
|
|
|
PL= 3
|
1998-05-08 13:51:37 +00:00
|
|
|
CF_SOURCES= crossfire-${MAJ}.${MIN}.${PL}.tar.gz
|
|
|
|
CF_MAPS= crossfire-${MAJ}.${MIN}.${PL}.maps.tar.gz
|
|
|
|
# crossfire doc ready for use
|
|
|
|
CF_DOC= crossfire-${MAJ}.${MIN}.${PL}.doc.tar.gz
|
|
|
|
# no newer sounds available
|
|
|
|
CF_SOUNDS= crossfire-${MAJ}.92.7.sounds.tar.gz
|
1996-11-02 13:53:37 +00:00
|
|
|
.if ${WANT_CF_ARCH} == YES || ${WANT_CF_ARCH} == yes
|
1998-05-08 13:51:37 +00:00
|
|
|
# only for rebuild of doc
|
|
|
|
CF_ARCH= crossfire-${MAJ}.${MIN}.${PL}.arch.tar.gz
|
1996-11-02 13:53:37 +00:00
|
|
|
.endif
|
1998-05-08 13:51:37 +00:00
|
|
|
#CF_CLSERV= eutl.tar.gz # only for client/server
|
|
|
|
CFDIR= ${PREFIX}/lib/crossfire # crossfire base directory
|
1996-11-02 13:53:37 +00:00
|
|
|
|
|
|
|
# If you want to re-make playbook and spoiler you need the ARCH
|
1997-10-04 14:53:11 +00:00
|
|
|
# files and a TeX version with a ,great' amount of max_mem
|
1996-11-02 13:53:37 +00:00
|
|
|
# (I had to rebuild teTeX, that already is in fact ,BigTeX')
|
|
|
|
.if ${WANT_CF_ARCH} == YES || ${WANT_CF_ARCH} == yes
|
|
|
|
post-configure:
|
1998-05-08 13:51:37 +00:00
|
|
|
(cd ${CFDIR}; tar -xzf ${DISTDIR}/${CF_ARCH})
|
1996-11-02 13:53:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
1997-01-25 12:27:16 +00:00
|
|
|
@(cd ${CFDIR}/lib; tar -xzf ${DISTDIR}/${CF_MAPS})
|
|
|
|
@(cd ${CFDIR}; tar -xzf ${DISTDIR}/${CF_SOUNDS})
|
1998-05-08 13:51:37 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/crossfire
|
|
|
|
@${CP} -r ${WRKDIR}/crossfire-${MAJ}.${MIN}.${PL}-doc/* \
|
|
|
|
${PREFIX}/share/doc/crossfire
|
|
|
|
@touch ${CFDIR}/lib/bookarch
|
|
|
|
@chmod 664 ${CFDIR}/lib/bookarch
|
|
|
|
@touch ${CFDIR}/lib/forbid
|
|
|
|
@chmod 664 ${CFDIR}/lib/forbid
|
|
|
|
@touch ${CFDIR}/lib/players/.keep_me
|
|
|
|
@touch ${CFDIR}/lib/unique-items/.keep_me
|
1997-10-04 14:53:11 +00:00
|
|
|
@chown -R games.games ${CFDIR}
|
1998-05-08 13:51:37 +00:00
|
|
|
@chmod 0664 ${CFDIR}/lib/highscore
|
1997-10-04 14:53:11 +00:00
|
|
|
@chown games.games ${PREFIX}/bin/crossfire
|
1997-01-25 12:27:16 +00:00
|
|
|
@chmod 6555 ${PREFIX}/bin/crossfire
|
1998-05-08 13:51:37 +00:00
|
|
|
${ECHO} "Note: to start crossfire in clientmode"
|
|
|
|
${ECHO} " crossfire -xpm"
|
1998-05-08 13:59:14 +00:00
|
|
|
${ECHO} "Note: don't forget to update ${PREFIX}/etc/rplay.conf"
|
|
|
|
${ECHO} " with new sounds in ${CFDIR}/sounds"
|
1996-11-02 13:53:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|