blob: d6982ca0e90ede3150738e322637567f049e8389 (
plain) (
blame)
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
51
52
53
54
55
56
57
58
59
60
61
|
# New ports collection makefile for: America's Army
# Date created: Sun Sep 11 15:45:00 PET 2005
# Whom: acardenas@bsd.org.pe
#
# $FreeBSD$
#
PORTNAME= americasarmy
PORTVERSION= 2.3.0
CATEGORIES= games linux
MASTER_SITES= http://3dgamers.intelenet.net/pub/3dgamers/games/americasarmy/ \
http://downloads-3dg.planetmirror.com/pub/3dgamers/games/americasarmy/ \
ftp://3dgamers.mirror.internode.on.net/3dgamers/games/americasarmy/ \
http://3dgamers.iinet.net.au/pub/3dgamers/games/americasarmy/
PKGNAMEPREFIX= linux-
DISTNAME= armyops230-linux
EXTRACT_SUFX= .run
MAINTAINER= acardenas@bsd.org.pe
COMMENT= America's Army (Linux version)
ONLY_FOR_ARCHS= i386 amd64
USE_X_PREFIX= yes
USE_LINUX= yes
NO_BUILD= yes
RESTRICTED= Redistribution is limited, see license
NO_PACKAGE= Package will be 745MB, set FORCE_PACKAGE if you really
NO_WRKSUBDIR= yes
ARMYDIR= ${PREFIX}/lib/${PORTNAME}
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && \
${TAIL} -c +8815 ${_DISTDIR}/${DISTFILES} | ${TAR} xf -
@${TAR} xfz ${WRKSRC}/setupstuff.tar.gz -C ${WRKSRC}
@${MV} ${WRKSRC}/bin/armyops ${WRKSRC}/armyops
do-install:
@${MKDIR} ${ARMYDIR}
.for FILE in ArmyOps.xpm README.linux ArmyOps230_EULA.txt
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${ARMYDIR}
.endfor
.for FILE in armyops230.tar.bz2 binaries.tar.bz2
@${TAR} xfpj ${WRKSRC}/${FILE} -C ${ARMYDIR}/
.endfor
.for DIR in Animations Briefings Demos Help KarmaData Maps Movies Music Sounds StaticMeshes \
System Textures
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ARMYDIR}/${DIR}
@${FIND} ${ARMYDIR}/${DIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
@${FIND} ${ARMYDIR}/${DIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} ${BINMODE}
.endfor
.for FILE in System/armyops-bin System/server-bin System/pb/pbweb.x86
@${CHMOD} ${BINMODE} ${ARMYDIR}/${FILE}
.endfor
@${INSTALL_SCRIPT} ${WRKSRC}/armyops ${ARMYDIR}
@${LN} -s ${ARMYDIR}/armyops ${PREFIX}/bin/armyops
.include <bsd.port.mk>
|