1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/games/dcross/Makefile
Rusmir Dusko adfcb65b1b Unlike your common unilateral falling block games, 'Double Cross' implements
a bidirectional paradigm expanding the genre in both dimension and difficulty.

Blocks fall from the top and fly in from the side settling in a joined
"play area". Deletions occur when rows of ten blocks are completed.
A horizontal row of 10 will cause the blocks to fall down, and a vertical row
of 10 will cause the blocks to "fall" to the right.
If a vertical row is completed during a vertical drop or a horizontal row is
completed during a horizontal drop the corresponding deletion will not occur
until the next turn. This can and will lead to non-intuitive results.
Focus on the vertical alone and you will die from horizontal negligence and
vice versa.

WWW: https://code.google.com/p/double-cross/

PR:		ports/171603
Submitted by:	nemysis (self)
Approved by:	pawel (mentor)
2013-12-17 13:01:12 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= dcross
PORTVERSION= 2.0
CATEGORIES= games python
MASTER_SITES= GOOGLE_CODE \
SF/nemysisfreebsdp/games/:icons
PROJECTHOST= double-cross
DISTFILES= ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons${EXTRACT_SUFX}:icons
DIST_SUBDIR= python
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Unconventional falling block game
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}/
USE_ZIP= yes
USES= dos2unix
DOS2UNIX_REGEX= .*.[^p][^n][^g]$
DOS2UNIX_FILES= *.pyw
USE_PYTHON= yes
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Double Cross" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
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} . ${STAGEDIR}${DATADIR})
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKDIR}/${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/
.include <bsd.port.mk>