Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2013 12:14:02 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335287 - in head/games: . pytowerdefense pytowerdefense/files
Message-ID:  <201311301214.rAUCE2Ss029206@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Sat Nov 30 12:14:02 2013
New Revision: 335287
URL: http://svnweb.freebsd.org/changeset/ports/335287

Log:
  An Open-Source Tower Defense Game developed with Python and Pygame.
  
  WWW: http://phelerox.wordpress.com/programming/pytowerdefense/
  
  PR:		ports/171391
  Submitted by:	nemysis (self)
  Approved by:	wg (mentor)

Added:
  head/games/pytowerdefense/
  head/games/pytowerdefense/Makefile   (contents, props changed)
  head/games/pytowerdefense/distinfo   (contents, props changed)
  head/games/pytowerdefense/files/
  head/games/pytowerdefense/files/pytowerdefense.in   (contents, props changed)
  head/games/pytowerdefense/pkg-descr   (contents, props changed)
  head/games/pytowerdefense/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sat Nov 30 12:08:15 2013	(r335286)
+++ head/games/Makefile	Sat Nov 30 12:14:02 2013	(r335287)
@@ -765,6 +765,7 @@
     SUBDIR += pysycache-themes
     SUBDIR += pythonchess
     SUBDIR += pythonsudoku
+    SUBDIR += pytowerdefense
     SUBDIR += q2p
     SUBDIR += q2pro
     SUBDIR += q3cellshading

Added: head/games/pytowerdefense/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pytowerdefense/Makefile	Sat Nov 30 12:14:02 2013	(r335287)
@@ -0,0 +1,56 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	pytowerdefense
+PORTVERSION=	0.5
+CATEGORIES=	games python
+MASTER_SITES=	SF/${PORTNAME}/PyTowerDefense0.5/Source%20%28Python%202.5%20or%202.6%20and%20Pygame%29/
+DISTNAME=	${PORTNAME}${DISTVERSION}
+DIST_SUBDIR=	python
+
+MAINTAINER=	nemysis@FreeBSD.org
+COMMENT=	Tower Defense Game
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	${PYGAME}
+
+USE_ZIP=	yes
+USE_PYTHON=	2.7
+INSTALLS_ICONS=	yes
+
+PORTDOCS=	README modding.txt
+
+SUB_FILES=	${PORTNAME}
+
+DESKTOP_ENTRIES="PyTowerDefense" "${COMMENT}" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" false
+
+.include <bsd.port.options.mk>
+
+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/
+
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+
+.for d in  *.py *.pyc *.pyo
+	@(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+.for d in audio images
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+	${LN} -sf ${DATADIR}/images/tower_square.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/games/pytowerdefense/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pytowerdefense/distinfo	Sat Nov 30 12:14:02 2013	(r335287)
@@ -0,0 +1,2 @@
+SHA256 (python/pytowerdefense0.5.zip) = 932d783ccffbb6295f78aa5d0a113370e957c71261b84874302e5c59deeb46f8
+SIZE (python/pytowerdefense0.5.zip) = 3496958

Added: head/games/pytowerdefense/files/pytowerdefense.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pytowerdefense/files/pytowerdefense.in	Sat Nov 30 12:14:02 2013	(r335287)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec %%PYTHON_CMD%% ./main.py "${@}"

Added: head/games/pytowerdefense/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pytowerdefense/pkg-descr	Sat Nov 30 12:14:02 2013	(r335287)
@@ -0,0 +1,3 @@
+An Open-Source Tower Defense Game developed with Python and Pygame.
+
+WWW: http://phelerox.wordpress.com/programming/pytowerdefense/

Added: head/games/pytowerdefense/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pytowerdefense/pkg-plist	Sat Nov 30 12:14:02 2013	(r335287)
@@ -0,0 +1,177 @@
+bin/pytowerdefense
+share/pixmaps/pytowerdefense.png
+%%DATADIR%%/Creeps.py
+%%DATADIR%%/Creeps.pyc
+%%DATADIR%%/Creeps.pyo
+%%DATADIR%%/Projectiles.py
+%%DATADIR%%/Projectiles.pyc
+%%DATADIR%%/Projectiles.pyo
+%%DATADIR%%/Towers.py
+%%DATADIR%%/Towers.pyc
+%%DATADIR%%/Towers.pyo
+%%DATADIR%%/audio/sfx/bow01.wav
+%%DATADIR%%/gridmap.py
+%%DATADIR%%/gridmap.pyc
+%%DATADIR%%/gridmap.pyo
+%%DATADIR%%/images/.directory
+%%DATADIR%%/images/Brick_tile(test).png
+%%DATADIR%%/images/Brick_tile(test)2.png
+%%DATADIR%%/images/Healthbar/healthbartest.psd
+%%DATADIR%%/images/Menus/New_Game.png
+%%DATADIR%%/images/Triforce.png
+%%DATADIR%%/images/ZombieInvasionBg1.png
+%%DATADIR%%/images/bluecreep_0.png
+%%DATADIR%%/images/bluecreep_45.png
+%%DATADIR%%/images/brick_tile.png
+%%DATADIR%%/images/brick_tile_orange.png
+%%DATADIR%%/images/creep_blue.svg
+%%DATADIR%%/images/creep_green.svg
+%%DATADIR%%/images/creep_pink.svg
+%%DATADIR%%/images/creep_yellow.svg
+%%DATADIR%%/images/creeps.png
+%%DATADIR%%/images/dg_undead32.gif
+%%DATADIR%%/images/effects/fire.png
+%%DATADIR%%/images/effects/fire.psd
+%%DATADIR%%/images/effects/fire2.png
+%%DATADIR%%/images/effects/fire2.psd
+%%DATADIR%%/images/effects/test subject with fire.png
+%%DATADIR%%/images/effects/test subject with fire.psd
+%%DATADIR%%/images/effects/test subject with fire2.png
+%%DATADIR%%/images/effects/test subject with fire2.psd
+%%DATADIR%%/images/effects/testsubject.png
+%%DATADIR%%/images/enemies/undead/fatto_0.png
+%%DATADIR%%/images/enemies/undead/fatto_45.png
+%%DATADIR%%/images/enemies/undead/insectghost_0.png
+%%DATADIR%%/images/enemies/undead/insectghost_45.png
+%%DATADIR%%/images/enemies/undead/skeleton_master_wizard_0.png
+%%DATADIR%%/images/enemies/undead/skeleton_master_wizard_45.png
+%%DATADIR%%/images/enemies/undead/zombie_0.png
+%%DATADIR%%/images/enemies/undead/zombie_45.png
+%%DATADIR%%/images/enemies/undead/zombie_brown_0.png
+%%DATADIR%%/images/enemies/undead/zombie_brown_45.png
+%%DATADIR%%/images/explosion1.png
+%%DATADIR%%/images/fonts/BIRTH_OF_A_HERO.ttf
+%%DATADIR%%/images/fonts/FFFTusj.ttf
+%%DATADIR%%/images/fonts/Vtks Revolt.ttf
+%%DATADIR%%/images/fonts/default.ttf
+%%DATADIR%%/images/greencreep_0.png
+%%DATADIR%%/images/greencreep_45.png
+%%DATADIR%%/images/magic_stones.png
+%%DATADIR%%/images/money/goldenpenny.png
+%%DATADIR%%/images/old_bluecreep.png
+%%DATADIR%%/images/old_graycreep.png
+%%DATADIR%%/images/old_pinkcreep.png
+%%DATADIR%%/images/paper.png
+%%DATADIR%%/images/pinkcreep_0.png
+%%DATADIR%%/images/pinkcreep_45.png
+%%DATADIR%%/images/projectiles/Arrow1.png
+%%DATADIR%%/images/projectiles/Arrow2.png
+%%DATADIR%%/images/projectiles/Fire_arrow.png
+%%DATADIR%%/images/projectiles/Frost_arrow.png
+%%DATADIR%%/images/projectiles/Silver_Arrow.png
+%%DATADIR%%/images/projectiles/cannon_ball.png
+%%DATADIR%%/images/projectiles/magicmissile.png
+%%DATADIR%%/images/rockytexture.jpg
+%%DATADIR%%/images/sand.jpg
+%%DATADIR%%/images/sandbackup.jpg
+%%DATADIR%%/images/sandyrock.jpg
+%%DATADIR%%/images/tower_round40x57.png
+%%DATADIR%%/images/tower_round40x74.png
+%%DATADIR%%/images/tower_square.png
+%%DATADIR%%/images/towers/Death_Note.png
+%%DATADIR%%/images/towers/Doom_Towerwip.png
+%%DATADIR%%/images/towers/Firetower.png
+%%DATADIR%%/images/towers/TreeOfPower.png
+%%DATADIR%%/images/towers/Wizards Tower.png
+%%DATADIR%%/images/towers/Wizards_Tower_Anim(1).png
+%%DATADIR%%/images/towers/Wizards_Tower_Anim(2213).png
+%%DATADIR%%/images/towers/Wizards_Tower_Anim(2214).png
+%%DATADIR%%/images/towers/arrow_tower_1.png
+%%DATADIR%%/images/towers/arrow_tower_2.png
+%%DATADIR%%/images/towers/basic_tower.png
+%%DATADIR%%/images/towers/basic_tower_dark.png
+%%DATADIR%%/images/towers/canon_tower_placeholder.png
+%%DATADIR%%/images/towers/frost_tower.png
+%%DATADIR%%/images/towers/magic tower.png
+%%DATADIR%%/images/towers/wizard_tower/.directory
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(1).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(10).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(11).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(12).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(13).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(14).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(15).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(16).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(17).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(18).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(19).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(2).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(3).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(4).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(5).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(6).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(7).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(8).png
+%%DATADIR%%/images/towers/wizard_tower/Wizards_Tower_Anim(9).png
+%%DATADIR%%/images/widgets/confirm.png
+%%DATADIR%%/images/widgets/confirm_full.png
+%%DATADIR%%/images/widgets/credits
+%%DATADIR%%/images/widgets/menu_title/bg.png
+%%DATADIR%%/images/widgets/menu_title/exit_game.png
+%%DATADIR%%/images/widgets/menu_title/help.png
+%%DATADIR%%/images/widgets/menu_title/py.png
+%%DATADIR%%/images/widgets/menu_title/start_game.png
+%%DATADIR%%/images/widgets/menu_title/tower_defense.png
+%%DATADIR%%/images/widgets/reject.png
+%%DATADIR%%/images/widgets/reject_full.png
+%%DATADIR%%/images/yellowcreep_0.png
+%%DATADIR%%/images/yellowcreep_45.png
+%%DATADIR%%/jelly.py
+%%DATADIR%%/jelly.pyc
+%%DATADIR%%/jelly.pyo
+%%DATADIR%%/main.py
+%%DATADIR%%/main.pyc
+%%DATADIR%%/main.pyo
+%%DATADIR%%/pathfinder.py
+%%DATADIR%%/pathfinder.pyc
+%%DATADIR%%/pathfinder.pyo
+%%DATADIR%%/priorityqueueset.py
+%%DATADIR%%/priorityqueueset.pyc
+%%DATADIR%%/priorityqueueset.pyo
+%%DATADIR%%/pyconsole.py
+%%DATADIR%%/pyconsole.pyc
+%%DATADIR%%/pyconsole.pyo
+%%DATADIR%%/pyconsole_syntax.py
+%%DATADIR%%/pyconsole_syntax.pyc
+%%DATADIR%%/pyconsole_syntax.pyo
+%%DATADIR%%/pygame2exe.py
+%%DATADIR%%/pygame2exe.pyc
+%%DATADIR%%/pygame2exe.pyo
+%%DATADIR%%/simpleanimation.py
+%%DATADIR%%/simpleanimation.pyc
+%%DATADIR%%/simpleanimation.pyo
+%%DATADIR%%/utils.py
+%%DATADIR%%/utils.pyc
+%%DATADIR%%/utils.pyo
+%%DATADIR%%/vec2d.py
+%%DATADIR%%/vec2d.pyc
+%%DATADIR%%/vec2d.pyo
+%%DATADIR%%/widgets.py
+%%DATADIR%%/widgets.pyc
+%%DATADIR%%/widgets.pyo
+@dirrm %%DATADIR%%/images/widgets/menu_title
+@dirrm %%DATADIR%%/images/widgets
+@dirrm %%DATADIR%%/images/towers/wizard_tower
+@dirrm %%DATADIR%%/images/towers
+@dirrm %%DATADIR%%/images/projectiles
+@dirrm %%DATADIR%%/images/money
+@dirrm %%DATADIR%%/images/fonts
+@dirrm %%DATADIR%%/images/enemies/undead
+@dirrm %%DATADIR%%/images/enemies
+@dirrm %%DATADIR%%/images/effects
+@dirrm %%DATADIR%%/images/Menus
+@dirrm %%DATADIR%%/images/Healthbar
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/audio/sfx
+@dirrm %%DATADIR%%/audio
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311301214.rAUCE2Ss029206>