1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/4stattack/Makefile
Rusmir Dusko d1fa782ee6 - Bump PORTREVISION
- Transfer maintainership to games@ team
- Use PYGAME instead of PYTHON_SITELIBDIR
- Remove NO_BUILD=yes
- Change DOCS, add Option
- Use supplied icons, add INSTALLS_ICONS=yes and ICON_SIZES
- Add pkg-message, information about config file, add 4stattack.desktop
  and 4stattack.in
- Remove obsolete REINPLACE, add for icons
- Simplify installation handling and port
- Remove obsolete patch files/patch-4stattack and scripts/py-compile
- Recreate pkg-plist with make makeplist, remove DOCS, add icons
2014-04-08 21:05:09 +00:00

63 lines
1.7 KiB
Makefile

# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$
PORTNAME= 4stattack
PORTVERSION= 2.1.4
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= SF/forcedattack/4stAttack/${PORTVERSION}/
DISTNAME= 4stAttack-${PORTVERSION}
MAINTAINER= games@FreeBSD.org
COMMENT= Connect four stones in a straight line
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME}
USE_PYTHON= yes
PORTDOCS= changelog.txt credits.txt
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 16x16 22x22 32x32 48x48 64x64
SUB_FILES= ${PORTNAME} pkg-message
post-patch:
.for s in 16 22 32 48 64
@cd ${WRKSRC}/kde/icons/${s}x${s} ; \
${MV} forcedattack2.png ${PORTNAME}_${s}x${s}.png
.endfor
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}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data gui players" ${STAGEDIR}${DATADIR})
.for f in *.py *.pyc *.pyo
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
.for f in settings.ini *.ttf *.sh version
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKSRC}/kde/icons/${s}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>