2013-02-27 15:37:43 +01:00
|
|
|
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
|
2006-10-01 04:10:10 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= data
|
2014-08-25 12:16:42 +02:00
|
|
|
PORTVERSION= 2.5
|
2018-09-03 00:37:59 +02:00
|
|
|
PORTREVISION= 1
|
2006-10-01 04:10:10 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/ufoai/UFO_AI%202.x/${PORTVERSION}
|
2006-10-01 04:10:10 +02:00
|
|
|
PKGNAMEPREFIX= ufoai-
|
2007-08-20 09:51:23 +02:00
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}-${PORTNAME}
|
|
|
|
EXTRACT_SUFX= .tar
|
2006-10-01 04:10:10 +02:00
|
|
|
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
|
|
|
|
|
2014-08-25 12:16:42 +02:00
|
|
|
MAINTAINER= m.tsatsenko@gmail.com
|
2006-10-01 04:10:10 +02:00
|
|
|
COMMENT= UFO alien invasion data files
|
|
|
|
|
2014-02-21 00:40:14 +01:00
|
|
|
# See http://ufoai.org/wiki/License
|
2016-09-28 08:38:00 +02:00
|
|
|
LICENSE= GPLv2 CC-BY-SA-3.0
|
2014-02-21 00:40:14 +01:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
2018-09-03 00:37:59 +02:00
|
|
|
BROKEN_mips64= Fails to install: runaway process
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
EXTRACT_DEPENDS= ${UNZIP_CMD}:archivers/unzip
|
2007-08-20 09:51:23 +02:00
|
|
|
|
2006-10-01 04:10:10 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2015-08-10 17:02:10 +02:00
|
|
|
NO_ARCH= yes
|
2006-10-01 04:10:10 +02:00
|
|
|
|
|
|
|
DATADIR= share/${PKGNAMEPREFIX:S/-//}
|
2007-08-20 09:51:23 +02:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2006-10-01 04:10:10 +02:00
|
|
|
|
2007-08-20 09:51:23 +02:00
|
|
|
post-extract:
|
2015-12-31 21:48:03 +01:00
|
|
|
@cd ${WRKSRC}/base && \
|
2016-12-01 12:18:03 +01:00
|
|
|
${FIND} * -type f -exec ${UNZIP_CMD} {} -d ${WRKSRC}/base \;
|
2015-12-31 21:48:03 +01:00
|
|
|
@${RM} ${WRKSRC}/base/*.pk3
|
2006-10-01 04:10:10 +02:00
|
|
|
|
|
|
|
pre-install:
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} ${PLIST}
|
2015-12-31 21:48:03 +01:00
|
|
|
@cd ${WRKSRC}/base && \
|
2015-05-14 02:49:42 +02:00
|
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/base/|' >> ${PLIST}
|
2006-10-01 04:10:10 +02:00
|
|
|
|
|
|
|
do-install:
|
2015-12-31 21:48:03 +01:00
|
|
|
cd ${WRKSRC}/base && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${DATADIR}/base
|
2006-10-01 04:10:10 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|