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>
|
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
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
|
2000-02-08 09:29:51 +00:00
|
|
|
MASTER_SITES= http://people.FreeBSD.org/~andreas/download/ \
|
1999-08-21 17:17:47 +00:00
|
|
|
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://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
|
|
|
|
2000-02-20 17:01:26 +00:00
|
|
|
MAINTAINER= ports@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
|
1999-08-22 19:01:07 +00:00
|
|
|
@${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
|
2000-03-11 06:23:33 +00:00
|
|
|
@${CHOWN} -R root.games ${CFDIR}
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 0664 ${CFDIR}/lib/highscore
|
2000-03-11 06:23:33 +00:00
|
|
|
@${CHOWN} root.games ${PREFIX}/bin/crossfire
|
|
|
|
@${CHMOD} 2555 ${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>
|