mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
885b528f02
twisted can be configured with the arguments run or build to replace the previous USE_TWISTED_RUN and USE_TWISTED_BUILD knobs. The twisted components can be added as comma-separated arguments. If you previously wrote USE_TWISTED= yes USE_TWISTED= conch names USE_TWISTED_RUN= yes you now would write USES= twisted USES= twisted:conch,names USES= twisted:run
53 lines
1.7 KiB
Makefile
53 lines
1.7 KiB
Makefile
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= galaxymage
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 8
|
|
CATEGORIES= games python
|
|
MASTER_SITES= http://download.gna.org/tactics/
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Open source tactical and strategic RPG
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/_numpy.so:${PORTSDIR}/math/py-numeric \
|
|
${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
|
|
${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl
|
|
|
|
USE_PYTHON= yes
|
|
USES= gettext twisted
|
|
NO_BUILD= yes
|
|
|
|
NO_STAGE= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e 's@%%DATADIR%%@${DATADIR}@g' ${WRKSRC}/GalaxyMage.py ${WRKSRC}/src/Resources.py
|
|
@${REINPLACE_CMD} -e 's@%%LOCALBASE%%@${LOCALBASE}@g' ${WRKSRC}/src/Translate.py
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/GalaxyMage.py ${PREFIX}/bin/GalaxyMage
|
|
@${MKDIR} ${DATADIR}
|
|
.for DIRE in src data
|
|
@cd ${WRKSRC}/${DIRE} && \
|
|
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
|
|
${FIND} -E * -type f -iregex ".*\.(py|pyc|txt|TXT|ogg|wav|png|ttf|conf)" -exec ${INSTALL_DATA} "{}" \
|
|
"${DATADIR}/{}" \;
|
|
.endfor
|
|
|
|
.for FILE in de en fr nl sp
|
|
@${MKDIR} ${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \
|
|
${INSTALL_DATA} ${WRKSRC}/locale/${FILE}/LC_MESSAGES/* \
|
|
${PREFIX}/share/locale/${FILE}/LC_MESSAGES
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC}/doc && \
|
|
${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
|
|
${FIND} -E * -type f -iregex ".*\.(html|css|txt|png)" -exec ${INSTALL_DATA} "{}" \
|
|
"${DOCSDIR}/{}" \;
|
|
@${INSTALL_DATA} ${WRKSRC}/CREDITS.txt ${WRKSRC}/README.txt ${DOCSDIR}
|
|
.endif
|
|
.include <bsd.port.mk>
|