aboutsummaryrefslogtreecommitdiffstats
path: root/games/alienarena-data/Makefile
blob: a5ec971caca077c79720fbab3da8f2d04a68fbb0 (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
# New ports collection makefile for:    alienarena-data
# Date created:             11 May 2005
# Whom:                 alepulver
#
# $FreeBSD$
#

PORTNAME=   alienarena
PORTVERSION=    2007.603
CATEGORIES= games
MASTER_SITES=   http://cor.planetquake.gamespy.com/codered/files/
PKGNAMESUFFIX=  -data
DISTNAME=   ${PORTNAME}2007-linux20070121-x86

MAINTAINER= alepulver@FreeBSD.org
COMMENT=    Alien Arena 2006 (data)

USE_ZIP=    yes
NO_BUILD=   yes
NO_PACKAGE= Package will be 185MB, set FORCE_PACKAGE if you want it
WRKSRC=     ${WRKDIR}/${DISTNAME:C/-linux.*//}

.include <bsd.port.pre.mk>

post-extract:
    @${RM} ${WRKSRC}/arena/gamei386.so ${WRKSRC}/data1/gamei386.so

do-install:
    ${MKDIR} ${DATADIR}
    cd ${WRKSRC} && ${CP} -R arena botinfo data1 ${DATADIR}
    @${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
    @${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
    ${INSTALL_DATA} ${WRKSRC}/alienarena.xpm ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
.endif

.include <bsd.port.post.mk>