1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/dcross/Makefile

56 lines
1.4 KiB
Makefile
Raw Normal View History

# 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>