1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/games/pycadia/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

64 lines
1.5 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= pycadia
PORTVERSION= 0.5.1
PORTREVISION= 6
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 # or later
LICENSE_FILE= ${WRKSRC}/doc/COPYING
RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= python:2
USE_GNOME= pygtk2 libgnomeui
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
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>