1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/games/linux-enemyterritory-fortress/Makefile
2008-04-29 05:11:44 +00:00

80 lines
2.2 KiB
Makefile

# New ports collection makefile for: Enemy Territory Fortress
# Date created: 25 Mar 2005
# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= enemyterritory-fortress
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= http://www.sonnensturm.net/download/
PKGNAMEPREFIX= linux-
DISTNAME= etf_${PORTVERSION}-english-2
EXTRACT_SUFX= .run
MAINTAINER= ports@FreeBSD.org
COMMENT= A class-based teamplay modification for Enemy Territory
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= yes
NO_PACKAGE= Distfile size is 263MB, set FORCE_PACKAGE if you really want to build this package
RESTRICTED= Redistribution is limited, see license
NO_WRKSUBDIR= yes
ETDIR= ${PREFIX}/lib/enemyterritory
PORTDOCS= *
do-extract:
@${MKDIR} ${WRKSRC}
@(cd ${WRKSRC} && \
${TAIL} -c +8768 ${DISTDIR}/${DISTFILES} | ${TAR} zxf - && \
${TAR} zxf etf.tar.gz && \
${TAR} zxf cfgnormal.tar.gz)
do-build:
.for f in et etded
@${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/${f}-fortress
@${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game etf "$$@"' >> ${WRKSRC}/${f}-fortress
.endfor
do-install:
.for f in et etded
${INSTALL_SCRIPT} ${WRKSRC}/${f}-fortress ${PREFIX}/bin
.endfor
${MKDIR} ${ETDIR}/etf
.for f in autoexec.cfg etconfig.cfg etf_server.cfg preset_normal.cfg \
servercache.dat *.pk3
${INSTALL_DATA} ${WRKSRC}/etf/${f} ${ETDIR}/etf
.endfor
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${WRKSRC}/etf/*.so \
${ETDIR}/etf
.for d in classconfigs nav scripts ui/usermenu video
${MKDIR} ${ETDIR}/etf/${d}
${INSTALL_DATA} ${WRKSRC}/etf/${d}/* ${ETDIR}/etf/${d}
.endfor
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etf.xpm ${DATADIR}
${MKDIR} ${EXAMPLESDIR}/sample_server
.for f in sample_server.cfg sample_srv/*
${INSTALL_DATA} ${WRKSRC}/etf/${f} ${EXAMPLESDIR}/sample_server
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in LICENSE README README.etf
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
cd ${WRKSRC}/etf/docs && \
${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/guide/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/guide/{}" \;
.endif
.include <bsd.port.mk>