blob: b91f4309729852d35a8897a1bf32e5b02da9b0c9 (
plain)
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
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= alienarena
PORTVERSION= 2013.766
CATEGORIES= games
MASTER_SITES= ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo/distfiles/ \
http://ftp.jeuxlinux.fr/files/ \
http://mirror.ipgn.com.au/games/alienarena/ \
http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
http://offload2.icculus.org:9090/alienarena/Files/ \
http://offload1.icculus.org:9090/alienarena/Files/ \
http://icculus.org/alienarena/Files/ \
http://red.planetarena.org/files/ \
${MASTER_SITE_GENTOO:S|$|distfiles/|}
PKGNAMESUFFIX= -data
DISTNAME= ${PORTNAME}-7.66-linux20130827
MAINTAINER= acm@FreeBSD.org
COMMENT= Alien Arena (data)
LICENSE= AlienArena-Data
LICENSE_NAME= Freely redistributable as a whole
LICENSE_FILE= ${WRKSRC}/docs/license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
# See also http://red.planetarena.org/forum/showthread.php?tid=716 where fedora asked for clarification
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
WRKSRC= ${WRKDIR}/${PORTNAME}-7.66
OPTIONS_DEFINE= DOCS
pre-install:
@${RM} -f ${PLIST}
. for DIRE in arena botinfo data1
@cd ${WRKSRC} && \
${FIND} ${DIRE} -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} ${DIRE} -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
. endfor
@${ECHO_CMD} share/pixmaps/${PORTNAME}.png >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
@cd ${WRKSRC}/docs && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrm %%DOCSDIR%%/|' >> ${PLIST}
@${ECHO_CMD} "%%PORTDOCS%%@dirrmtry %%DOCSDIR%%" >> ${PLIST}
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} "arena botinfo data1" ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|