2006-10-03 17:42:13 +00:00
|
|
|
# New ports collection makefile for: fretsonfire
|
|
|
|
# Date created: 2006-09-01
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fretsonfire
|
2009-05-30 02:48:27 +00:00
|
|
|
PORTVERSION= 1.3.110
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 2
|
2006-10-03 17:42:13 +00:00
|
|
|
CATEGORIES= games python
|
2006-11-25 18:09:48 +00:00
|
|
|
MASTER_SITES= SF
|
2009-05-30 02:48:27 +00:00
|
|
|
DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION}
|
2006-10-03 17:42:13 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
|
|
COMMENT= A game of musical skill and fast fingers
|
|
|
|
|
2009-05-30 02:48:27 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy/core/numeric.py:${PORTSDIR}/math/py-numpy \
|
2006-10-03 17:42:13 +00:00
|
|
|
${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
|
|
|
|
${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl \
|
|
|
|
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
${LOCALBASE}/share/${PORTNAME}/default.ttf:${PORTSDIR}/games/fretsonfire-data
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2009-05-30 02:48:27 +00:00
|
|
|
USE_DOS2UNIX= *.txt
|
2006-10-03 17:42:13 +00:00
|
|
|
NO_BUILD= yes
|
2009-05-30 02:48:27 +00:00
|
|
|
|
2006-10-03 17:42:13 +00:00
|
|
|
DATADIR= share/${PORTNAME}
|
2009-05-30 02:48:27 +00:00
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude 'data'
|
2006-10-03 17:42:13 +00:00
|
|
|
SUB_FILES= pkg-message FretsOnFire
|
|
|
|
SUB_LIST= PROGRAM_DIR="${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}"
|
2009-05-30 02:48:27 +00:00
|
|
|
WRKSRC= "${WRKDIR}/Frets on Fire-${PORTVERSION}"
|
|
|
|
|
|
|
|
FOF_DIR= ${PREFIX}/lib/${PORTNAME}
|
2006-10-03 17:42:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
WITHOUT_PSYCO= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PSYCO)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${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/}/{}" \;
|
|
|
|
|
|
|
|
${MKDIR} ${FOF_DIR}/data
|
2009-05-30 02:48:27 +00:00
|
|
|
${LN} -s ${LOCALBASE}/${DATADIR}/* ${FOF_DIR}/data
|
2006-10-03 17:42:13 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${PREFIX}/bin
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/README
|
2009-05-30 02:48:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/install.txt ${DOCSDIR}/INSTALL
|
2006-10-03 17:42:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|