forked from pfsense/FreeBSD-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (52 loc) · 1.94 KB
/
Makefile
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
62
# New ports collection makefile for: alienarena-data
# Date created: 11 May 2005
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= alienarena
PORTVERSION= 2011.752
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/ \
${MASTER_SITE_GENTOO:S|$|distfiles/|}
PKGNAMESUFFIX= -data
DISTNAME= ${PORTNAME}-7_52-linux20110929
MAINTAINER= [email protected]
COMMENT= Alien Arena (data)
NO_BUILD= yes
NO_PACKAGE= Package will be 370MB, set FORCE_PACKAGE if you want it
PLIST= ${WRKDIR}/pkg-plist
WRKSRC= ${WRKDIR}/${PORTNAME}-7.52
.include <bsd.port.pre.mk>
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}
. if !defined(NOPORTDOCS)
@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}
. endif
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}/${PORTNAME}.png \
${PREFIX}/share/pixmaps/${PORTNAME}.png
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>