freebsd-ports/games/glest-data/Makefile
Mathieu Arnold 8664861b1a Don't quote {} in find -exec calls.
Braces are not shell metacharacters, and they do not need to be quoted.
By the time find parses its arguments and dicovers them, the quoting
will have been removed by the shell anyway.

Sponsored by:	Absolight
2016-12-01 11:18:03 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= data
PORTVERSION= 3.2.1
CATEGORIES= games
MASTER_SITES= SF/glest/glest%20${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= glest-
DISTNAME= glest_${PORTNAME}_${PORTVERSION}
DIST_SUBDIR= glest
MAINTAINER= ports@FreeBSD.org
COMMENT= Glest data files
USES= dos2unix zip
DOS2UNIX_GLOB= *.log *.ini *.html *.txt *.lng
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
WRKSRC= ${WRKDIR}/glest_game
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//}
GLESTDATADIRE= data maps scenarios techs tilesets tutorials
PORTDATA= *
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKSRC}/docs/license.txt ${WRKSRC}/docs/license-data.txt
@${RMDIR} ${WRKSRC}/screens
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/license-data.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
.for FILE in glest.ico servers.ini
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
.endfor
.for DIRE in ${GLESTDATADIRE}
@cd ${WRKSRC} && \
${FIND} ${DIRE} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${DATADIR}/{}" \;
.endfor
.include <bsd.port.mk>