freebsd-ports/games/fretsonfire/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

49 lines
1.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= fretsonfire
PORTVERSION= 1.3.110
PORTREVISION= 9
CATEGORIES= games python
MASTER_SITES= SF
DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Game of musical skill and fast fingers
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}game>=0:devel/py-game \
${PYTHON_PKGNAMEPREFIX}PyOpenGL>=0:graphics/py-PyOpenGL \
${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow \
${LOCALBASE}/share/${PORTNAME}/default.ttf:games/fretsonfire-data
USES= dos2unix python
DOS2UNIX_FILES= *.txt
NO_BUILD= yes
DATADIR= share/${PORTNAME}
EXTRACT_AFTER_ARGS= --exclude 'data'
SUB_FILES= pkg-message FretsOnFire
SUB_LIST= PROGRAM_DIR="${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}"
WRKSRC= "${WRKDIR}/Frets on Fire-${PORTVERSION}"
FOF_DIR= ${PREFIX}/lib/${PORTNAME}
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}
@cd ${WRKSRC}/src && \
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} {} "${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \;
@${MKDIR} ${STAGEDIR}${FOF_DIR}/data
${LN} -s ${LOCALBASE}/${DATADIR}/* ${STAGEDIR}${FOF_DIR}/data
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/README
${INSTALL_DATA} ${WRKSRC}/install.txt ${STAGEDIR}${DOCSDIR}/INSTALL
.include <bsd.port.mk>