mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
1c16d69299
- Transfer maintainership to games@ team - Use PYGAME instead of PYTHON_SITELIBDIR - Add license (GPLv2) - Add DOCS and Option - Add Desktop entry file - Remove .placeholder - Fix the usage of 'python' to get rid of the implicit lang/python dependency - Symlink the icon - Recreate patch with make makepatch - Recreate pkg-plist with make makeplist
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jools
|
|
PORTVERSION= 0.20
|
|
PORTREVISION= 9
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://pessimization.com/software/jools/
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}-musicpack-1.0${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= games@FreeBSD.org
|
|
COMMENT= Addictive jewel-swapping puzzle game
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${PYGAME}
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PORTDOCS= POINTS manual.html manual.pdf manual.tex
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DESKTOP_ENTRIES="Jools" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
post-extract:
|
|
.for d in timed title untimed
|
|
@(cd ${WRKDIR} && ${COPYTREE_SHARE} ${d} ${WRKSRC}/jools/music/)
|
|
.endfor
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name ".arch-ids" | ${XARGS} ${RM} -fr
|
|
@${FIND} ${WRKSRC} -name ".arch-ids" -delete \
|
|
-or -name ".placeholder" -delete
|
|
|
|
.for f in setup.py jools/__init__.py jools/jools
|
|
@${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \
|
|
${WRKSRC}/${f}
|
|
.endfor
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
post-install:
|
|
${LN} -sf ${DATADIR}/images/jools-logo-small.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|