mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
88301af044
- Add LICENSE and allow packaging
59 lines
2.0 KiB
Makefile
59 lines
2.0 KiB
Makefile
# 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>
|