diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-10-06 05:37:29 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-10-06 05:37:29 +0000 |
commit | f509bfaaff6f70fb7e76d8141929cbc28cdf3ac4 (patch) | |
tree | c47dfe2665f4c0ef16cd00afbb8df54c61403d25 /games/pycadia/Makefile | |
parent | d83d7a8c00c1b4d51f83a1dd081a121009991313 (diff) | |
download | ports-f509bfaaff6f70fb7e76d8141929cbc28cdf3ac4.tar.gz ports-f509bfaaff6f70fb7e76d8141929cbc28cdf3ac4.zip |
Notes
Diffstat (limited to 'games/pycadia/Makefile')
-rw-r--r-- | games/pycadia/Makefile | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/games/pycadia/Makefile b/games/pycadia/Makefile index 6df68a91ffb4..ee3abb38b958 100644 --- a/games/pycadia/Makefile +++ b/games/pycadia/Makefile @@ -1,55 +1,54 @@ -# New Ports collection makefile for: Pycadia -# Date created: 2012-05-09 -# Whom: nemysis@gmx.ch +# Created by: nemysis@gmx.ch # # $FreeBSD$ -# PORTNAME= pycadia PORTVERSION= 0.5.1 -CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} +PORTREVISION= 1 +CATEGORIES= games python +MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} \ + SF/nemysisfreebsdp/ +DIST_SUBDIR= python MAINTAINER= nemysis@gmx.ch COMMENT= Home to vector gaming, Python style LICENSE= GPLv2 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \ - ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 +RUN_DEPENDS= ${PYGAME} WRKSRC= ${WRKDIR}/${PORTNAME} +USE_GNOME= pygtk2 libgnomeui USE_PYTHON= yes NO_BUILD= yes -PLIST_FILES= bin/pycadia \ - share/pixmaps/pycadia.png +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.png PORTDATA= * -PORTDOCS= CHANGELOG INSTALL README TODO gravity.txt +PORTDOCS= CHANGELOG README TODO gravity.txt + +DESKTOP_ENTRIES="Pycadia" "${COMMENT}" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" ${FALSE} + +SUB_FILES= ${PORTNAME}.sh + +.include <bsd.port.options.mk> do-install: -# Scripts - @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ - ./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} -# Data -.if !defined (NOPORTDATA) ${MKDIR} ${DATADIR} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} "glade pixmaps sounds *.*" ${DATADIR}) - @(cd ${DATADIR} && ${CHMOD} 755 pycadia.py spacewarpy.py vektoroids.py) - ${INSTALL_DATA} ${FILESDIR}/pycadia.conf ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}) + @(cd ${DATADIR} && ${CHMOD} 555 ${PORTNAME}.py spacewarpy.py vektoroids.py) + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/logo1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png -.endif -# Documentation -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} -. for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} -. endfor + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} .endif .include <bsd.port.mk> |