|
Lines 1-13
Link Here
|
| 1 |
# New ports collection makefile for: fretsonfire |
|
|
| 2 |
# Date created: 2006-09-01 |
| 3 |
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> |
| 4 |
# |
| 5 |
# $FreeBSD: ports/games/fretsonfire/Makefile,v 1.13 2012/03/26 08:04:08 erwin Exp $ |
1 |
# $FreeBSD: ports/games/fretsonfire/Makefile,v 1.13 2012/03/26 08:04:08 erwin Exp $ |
| 6 |
# |
|
|
| 7 |
|
2 |
|
| 8 |
PORTNAME= fretsonfire |
3 |
PORTNAME= fretsonfire |
| 9 |
PORTVERSION= 1.3.110 |
4 |
PORTVERSION= 1.3.110 |
| 10 |
PORTREVISION= 2 |
5 |
PORTREVISION= 3 |
| 11 |
CATEGORIES= games python |
6 |
CATEGORIES= games python |
| 12 |
MASTER_SITES= SF |
7 |
MASTER_SITES= SF |
| 13 |
DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION} |
8 |
DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION} |
|
Lines 16-33
Link Here
|
| 16 |
MAINTAINER= acm@FreeBSD.org |
11 |
MAINTAINER= acm@FreeBSD.org |
| 17 |
COMMENT= A game of musical skill and fast fingers |
12 |
COMMENT= A game of musical skill and fast fingers |
| 18 |
|
13 |
|
| 19 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \ |
14 |
RUN_DEPENDS= ${PYNUMPY} \ |
| 20 |
${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \ |
15 |
${PYTHON_PKGNAMEPREFIX}game>=0:${PORTSDIR}/devel/py-game \ |
| 21 |
${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl \ |
16 |
${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl \ |
| 22 |
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ |
17 |
${PYTHON_PKGNAMEPREFIX}imaging>=0:${PORTSDIR}/graphics/py-imaging \ |
| 23 |
${LOCALBASE}/share/${PORTNAME}/default.ttf:${PORTSDIR}/games/fretsonfire-data |
18 |
${LOCALBASE}/share/${PORTNAME}/default.ttf:${PORTSDIR}/games/fretsonfire-data |
| 24 |
|
19 |
|
| 25 |
USE_PYTHON= yes |
20 |
USE_PYTHON= yes |
| 26 |
USE_DOS2UNIX= *.txt |
21 |
USE_DOS2UNIX= *.txt |
| 27 |
NO_BUILD= yes |
22 |
NO_BUILD= yes |
| 28 |
|
23 |
|
| 29 |
BROKEN= does not build |
|
|
| 30 |
|
| 31 |
DATADIR= share/${PORTNAME} |
24 |
DATADIR= share/${PORTNAME} |
| 32 |
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude 'data' |
25 |
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude 'data' |
| 33 |
SUB_FILES= pkg-message FretsOnFire |
26 |
SUB_FILES= pkg-message FretsOnFire |
|
Lines 36-49
Link Here
|
| 36 |
|
29 |
|
| 37 |
FOF_DIR= ${PREFIX}/lib/${PORTNAME} |
30 |
FOF_DIR= ${PREFIX}/lib/${PORTNAME} |
| 38 |
|
31 |
|
| 39 |
.include <bsd.port.pre.mk> |
32 |
PORTDOCS= readme.txt |
| 40 |
|
33 |
|
| 41 |
.if ${ARCH} != "i386" |
34 |
OPTIONS_DEFINE= PSYCO |
| 42 |
WITHOUT_PSYCO= yes |
35 |
PSYCO_DESC= Enable Psyco support (Only for i386) |
| 43 |
.endif |
36 |
|
|
|
37 |
.include <bsd.port.pre.mk> |
| 38 |
.include <bsd.port.options.mk> |
| 44 |
|
39 |
|
| 45 |
.if !defined(WITHOUT_PSYCO) |
40 |
.if ${PORT_OPTIONS:MPSYCO} |
| 46 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco |
41 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psyco>=0:${PORTSDIR}/devel/py-psyco |
| 47 |
.endif |
42 |
.endif |
| 48 |
|
43 |
|
| 49 |
do-install: |
44 |
do-install: |
|
Lines 52-65
Link Here
|
| 52 |
${FIND} * -type d -exec ${MKDIR} "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; && \ |
47 |
${FIND} * -type d -exec ${MKDIR} "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; && \ |
| 53 |
${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} "{}" "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; |
48 |
${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} "{}" "${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; |
| 54 |
|
49 |
|
|
|
50 |
# Data |
| 55 |
${MKDIR} ${FOF_DIR}/data |
51 |
${MKDIR} ${FOF_DIR}/data |
| 56 |
${LN} -s ${LOCALBASE}/${DATADIR}/* ${FOF_DIR}/data |
52 |
${LN} -s ${LOCALBASE}/${DATADIR}/* ${FOF_DIR}/data |
| 57 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${PREFIX}/bin |
53 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${PREFIX}/bin |
| 58 |
|
54 |
|
| 59 |
.if !defined(NOPORTDOCS) |
55 |
# Documentation |
|
|
56 |
.if ${PORT_OPTIONS:MDOCS} |
| 60 |
${MKDIR} ${DOCSDIR} |
57 |
${MKDIR} ${DOCSDIR} |
| 61 |
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/README |
58 |
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR} |
| 62 |
${INSTALL_DATA} ${WRKSRC}/install.txt ${DOCSDIR}/INSTALL |
|
|
| 63 |
.endif |
59 |
.endif |
| 64 |
|
60 |
|
| 65 |
post-install: |
61 |
post-install: |