1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Support staging

- Tab -> space in pkg-descr
- Add DOCS option

Approved by:	portmgr (blanket approval)
This commit is contained in:
Jason E. Hale 2014-06-25 12:56:21 +00:00
parent 66ee105a30
commit 688f3ac046
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359236
4 changed files with 17 additions and 24 deletions

View File

@ -19,11 +19,10 @@ WRKSRC= ${WRKDIR}/Frets\ on\ Fire-${PORTVERSION}
EXTRACT_AFTER_ARGS= --exclude 'win32' "Frets on Fire-${PORTVERSION}/${PORTNAME}"
NO_STAGE= yes
do-install:
@${MKDIR} ${PREFIX}/${DATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}
@cd ${WRKSRC}/data && \
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \;
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${DATADIR}/{}" \;
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
The Frets on Fire data files
WWW: http://louhi.kempele.fi/~skyostil/uv/fretsonfire/
WWW: http://louhi.kempele.fi/~skyostil/uv/fretsonfire/

View File

@ -3,7 +3,7 @@
PORTNAME= fretsonfire
PORTVERSION= 1.3.110
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= games python
MASTER_SITES= SF
DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION}
@ -31,26 +31,20 @@ WRKSRC= "${WRKDIR}/Frets on Fire-${PORTVERSION}"
FOF_DIR= ${PREFIX}/lib/${PORTNAME}
NO_STAGE= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}
@${MKDIR} ${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}
@cd ${WRKSRC}/src && \
${FIND} * -type d -exec ${MKDIR} "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} "{}" "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \;
${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} ${FOF_DIR}/data
${LN} -s ${LOCALBASE}/${DATADIR}/* ${FOF_DIR}/data
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${PREFIX}/bin
@${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
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/README
${INSTALL_DATA} ${WRKSRC}/install.txt ${DOCSDIR}/INSTALL
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/README
${INSTALL_DATA} ${WRKSRC}/install.txt ${STAGEDIR}${DOCSDIR}/INSTALL
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
Frets on Fire is a game of musical skill and fast fingers. The aim of the game
is to play guitar with the keyboard as accurately as possible.
WWW: http://fretsonfire.sf.net
WWW: http://fretsonfire.sf.net