a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pycadia
|
|
PORTVERSION= 0.5.1
|
|
PORTREVISION= 11
|
|
CATEGORIES= games python
|
|
MASTER_SITES= GENTOO \
|
|
SF/nemysisfreebsdp/games/
|
|
DIST_SUBDIR= python
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Home to vector gaming, Python style
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/doc/COPYING
|
|
|
|
RUN_DEPENDS= ${PYGAME}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= python:2.7 shebangfix
|
|
USE_GNOME= pygtk2 libgnomeui
|
|
SHEBANG_FILES= *.py
|
|
NO_ARCH= yes
|
|
|
|
PORTDOCS= CHANGELOG README gravity.txt
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DESKTOP_ENTRIES="Pycadia" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
do-build:
|
|
@${PYTHON_CMD} -m compileall ${WRKSRC}
|
|
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
|
|
|
|
do-install:
|
|
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
${WRKDIR}/${PORTNAME}.sh
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
.for d in glade pixmaps sounds
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
|
.endfor
|
|
.for f in *.py *.pyc *.pyo
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
|
|
.endfor
|
|
|
|
@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} 555 \
|
|
${PORTNAME}.py spacewarpy.py vektoroids.py)
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pixmaps/pysteroids.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|