diff --git a/devel/py-game/Makefile b/devel/py-game/Makefile index 87e6dc831f4d..886ca96ba88a 100644 --- a/devel/py-game/Makefile +++ b/devel/py-game/Makefile @@ -1,43 +1,43 @@ # New ports collection makefile for: py-game # Date created: 14 December 2000 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= py-game -PORTVERSION= 1.5.5 +PORTVERSION= 1.6 CATEGORIES= devel python MASTER_SITES= http://pygame.seul.org/ftp/ DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A module designed to write games in Python BUILD_DEPENDS= ${PYNUMERIC} LIB_DEPENDS= SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \ SDL_image.10:${PORTSDIR}/graphics/sdl_image \ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \ smpeg.1:${PORTSDIR}/multimedia/smpeg RUN_DEPENDS= ${PYNUMERIC} SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config USE_PYTHON= yes USE_PYDISTUTILS= yes MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" do-configure: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} config.py .if !defined(NOPORTDOCS) post-install: ${MKDIR} ${PREFIX}/share/examples/py-game ${TAR} -C ${WRKSRC}/examples -cf - . | \ ${TAR} --unlink -C ${PREFIX}/share/examples/py-game -xf - ${MKDIR} ${PREFIX}/share/doc/py-game ${TAR} -C ${WRKSRC}/docs -cf - . | \ ${TAR} --unlink -C ${PREFIX}/share/doc/py-game -xf - .endif .include diff --git a/devel/py-game/distinfo b/devel/py-game/distinfo index f04dbb55873b..33599cb97637 100644 --- a/devel/py-game/distinfo +++ b/devel/py-game/distinfo @@ -1 +1 @@ -MD5 (pygame-1.5.5.tar.gz) = fa135364e2d9f12acfb528f477418e0e +MD5 (pygame-1.6.tar.gz) = ea5db930c0031873a7f5ad1f2f7926db diff --git a/devel/py-game/files/patch-src-draw.c b/devel/py-game/files/patch-src-draw.c new file mode 100644 index 000000000000..cb17854ae6d7 --- /dev/null +++ b/devel/py-game/files/patch-src-draw.c @@ -0,0 +1,20 @@ +--- src/draw.c.orig Thu Oct 16 08:13:22 2003 ++++ src/draw.c Mon Nov 17 03:47:49 2003 +@@ -26,17 +26,12 @@ + #include "pygame.h" + #include + +-#ifdef _MSC_VER +-#pragma warning (disable:4244) +- + float trunc(float d) + { + if (d >= 0) + return floor(d); + return ceil(d); + } +- +-#endif + + #define FRAC(z) (z-trunc(z)) + #define INVFRAC(z) (1-(z-trunc(z))) diff --git a/devel/py-game/pkg-plist b/devel/py-game/pkg-plist index f59ef9e7a16b..3ce6c4a7525c 100644 --- a/devel/py-game/pkg-plist +++ b/devel/py-game/pkg-plist @@ -1,149 +1,174 @@ -include/%%PYTHON_VERSION%%/pygame/CPS.h include/%%PYTHON_VERSION%%/pygame/font.h include/%%PYTHON_VERSION%%/pygame/mixer.h include/%%PYTHON_VERSION%%/pygame/pygame.h -include/%%PYTHON_VERSION%%/pygame/setproctitle.h lib/%%PYTHON_VERSION%%/site-packages/pygame/__init__.py lib/%%PYTHON_VERSION%%/site-packages/pygame/__init__.pyc lib/%%PYTHON_VERSION%%/site-packages/pygame/__init__.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/base.so lib/%%PYTHON_VERSION%%/site-packages/pygame/cdrom.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/color.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/color.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/color.pyo +lib/%%PYTHON_VERSION%%/site-packages/pygame/colordict.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/colordict.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/colordict.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/constants.so lib/%%PYTHON_VERSION%%/site-packages/pygame/cursors.py lib/%%PYTHON_VERSION%%/site-packages/pygame/cursors.pyc lib/%%PYTHON_VERSION%%/site-packages/pygame/cursors.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/display.so lib/%%PYTHON_VERSION%%/site-packages/pygame/draw.so lib/%%PYTHON_VERSION%%/site-packages/pygame/event.so lib/%%PYTHON_VERSION%%/site-packages/pygame/font.so lib/%%PYTHON_VERSION%%/site-packages/pygame/freesansbold.ttf lib/%%PYTHON_VERSION%%/site-packages/pygame/image.so lib/%%PYTHON_VERSION%%/site-packages/pygame/imageext.so lib/%%PYTHON_VERSION%%/site-packages/pygame/joystick.so lib/%%PYTHON_VERSION%%/site-packages/pygame/key.so lib/%%PYTHON_VERSION%%/site-packages/pygame/locals.py lib/%%PYTHON_VERSION%%/site-packages/pygame/locals.pyc lib/%%PYTHON_VERSION%%/site-packages/pygame/locals.pyo +lib/%%PYTHON_VERSION%%/site-packages/pygame/macosx.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/macosx.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/macosx.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/mixer.so lib/%%PYTHON_VERSION%%/site-packages/pygame/mixer_music.so lib/%%PYTHON_VERSION%%/site-packages/pygame/mouse.so lib/%%PYTHON_VERSION%%/site-packages/pygame/movie.so lib/%%PYTHON_VERSION%%/site-packages/pygame/pygame.ico lib/%%PYTHON_VERSION%%/site-packages/pygame/pygame_icon.bmp lib/%%PYTHON_VERSION%%/site-packages/pygame/pygame_icon.icns lib/%%PYTHON_VERSION%%/site-packages/pygame/pygame_icon.tiff lib/%%PYTHON_VERSION%%/site-packages/pygame/rect.so lib/%%PYTHON_VERSION%%/site-packages/pygame/rwobject.so lib/%%PYTHON_VERSION%%/site-packages/pygame/sndarray.so lib/%%PYTHON_VERSION%%/site-packages/pygame/sprite.py lib/%%PYTHON_VERSION%%/site-packages/pygame/sprite.pyc lib/%%PYTHON_VERSION%%/site-packages/pygame/sprite.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/surface.so lib/%%PYTHON_VERSION%%/site-packages/pygame/surfarray.so lib/%%PYTHON_VERSION%%/site-packages/pygame/surflock.so +lib/%%PYTHON_VERSION%%/site-packages/pygame/sysfont.py +lib/%%PYTHON_VERSION%%/site-packages/pygame/sysfont.pyc +lib/%%PYTHON_VERSION%%/site-packages/pygame/sysfont.pyo lib/%%PYTHON_VERSION%%/site-packages/pygame/time.so lib/%%PYTHON_VERSION%%/site-packages/pygame/transform.so lib/%%PYTHON_VERSION%%/site-packages/pygame/version.py lib/%%PYTHON_VERSION%%/site-packages/pygame/version.pyc lib/%%PYTHON_VERSION%%/site-packages/pygame/version.pyo %%PORTDOCS%%share/doc/py-game/LGPL %%PORTDOCS%%share/doc/py-game/index.html %%PORTDOCS%%share/doc/py-game/logos.html %%PORTDOCS%%share/doc/py-game/pygame_logo.gif %%PORTDOCS%%share/doc/py-game/pygame_powered.gif %%PORTDOCS%%share/doc/py-game/pygame_small.gif %%PORTDOCS%%share/doc/py-game/pygame_tiny.gif %%PORTDOCS%%share/doc/py-game/ref/CD.html %%PORTDOCS%%share/doc/py-game/ref/Channel.html %%PORTDOCS%%share/doc/py-game/ref/Clock.html %%PORTDOCS%%share/doc/py-game/ref/Font.html %%PORTDOCS%%share/doc/py-game/ref/Joystick.html %%PORTDOCS%%share/doc/py-game/ref/Movie.html %%PORTDOCS%%share/doc/py-game/ref/Rect.html %%PORTDOCS%%share/doc/py-game/ref/Sound.html %%PORTDOCS%%share/doc/py-game/ref/Surface.html %%PORTDOCS%%share/doc/py-game/ref/pygame.html %%PORTDOCS%%share/doc/py-game/ref/pygame_cdrom.html +%%PORTDOCS%%share/doc/py-game/ref/pygame_color.html %%PORTDOCS%%share/doc/py-game/ref/pygame_constants.html %%PORTDOCS%%share/doc/py-game/ref/pygame_cursors.html %%PORTDOCS%%share/doc/py-game/ref/pygame_display.html %%PORTDOCS%%share/doc/py-game/ref/pygame_draw.html %%PORTDOCS%%share/doc/py-game/ref/pygame_event.html %%PORTDOCS%%share/doc/py-game/ref/pygame_font.html %%PORTDOCS%%share/doc/py-game/ref/pygame_image.html %%PORTDOCS%%share/doc/py-game/ref/pygame_joystick.html %%PORTDOCS%%share/doc/py-game/ref/pygame_key.html %%PORTDOCS%%share/doc/py-game/ref/pygame_mixer.html %%PORTDOCS%%share/doc/py-game/ref/pygame_mixer_music.html %%PORTDOCS%%share/doc/py-game/ref/pygame_mouse.html %%PORTDOCS%%share/doc/py-game/ref/pygame_movie.html %%PORTDOCS%%share/doc/py-game/ref/pygame_sndarray.html %%PORTDOCS%%share/doc/py-game/ref/pygame_sprite.html %%PORTDOCS%%share/doc/py-game/ref/pygame_surfarray.html %%PORTDOCS%%share/doc/py-game/ref/pygame_time.html %%PORTDOCS%%share/doc/py-game/ref/pygame_transform.html -%%PORTDOCS%%share/doc/py-game/tut/ChimpLineByLine.html %%PORTDOCS%%share/doc/py-game/tut/DisplayModes.html %%PORTDOCS%%share/doc/py-game/tut/Executable.html %%PORTDOCS%%share/doc/py-game/tut/ImportInit.html %%PORTDOCS%%share/doc/py-game/tut/MoveIt.html %%PORTDOCS%%share/doc/py-game/tut/SpriteIntro.html -%%PORTDOCS%%share/doc/py-game/tut/SurfarrayIntro.html -%%PORTDOCS%%share/doc/py-game/tut/allblack.jpg -%%PORTDOCS%%share/doc/py-game/tut/chimp.py.html -%%PORTDOCS%%share/doc/py-game/tut/chimpshot.gif -%%PORTDOCS%%share/doc/py-game/tut/flipped.jpg -%%PORTDOCS%%share/doc/py-game/tut/imgarray.jpg +%%PORTDOCS%%share/doc/py-game/tut/chimp/ChimpLineByLine.html +%%PORTDOCS%%share/doc/py-game/tut/chimp/chimp.py.html +%%PORTDOCS%%share/doc/py-game/tut/chimp/chimpshot.gif %%PORTDOCS%%share/doc/py-game/tut/newbieguide.html -%%PORTDOCS%%share/doc/py-game/tut/redimg.jpg -%%PORTDOCS%%share/doc/py-game/tut/scaledown.jpg -%%PORTDOCS%%share/doc/py-game/tut/scaleup.jpg -%%PORTDOCS%%share/doc/py-game/tut/soften.jpg -%%PORTDOCS%%share/doc/py-game/tut/striped.jpg -%%PORTDOCS%%share/doc/py-game/tut/xfade.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/SurfarrayIntro.html +%%PORTDOCS%%share/doc/py-game/tut/surfarray/allblack.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/flipped.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/imgarray.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/redimg.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/scaledown.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/scaleup.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/soften.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/striped.jpg +%%PORTDOCS%%share/doc/py-game/tut/surfarray/xfade.jpg +%%PORTDOCS%%share/doc/py-game/tut/tom/MakeGames.html +%%PORTDOCS%%share/doc/py-game/tut/tom/basic.png +%%PORTDOCS%%share/doc/py-game/tut/tom/event-flowchart.png +%%PORTDOCS%%share/doc/py-game/tut/tom/formulae.png +%%PORTDOCS%%share/doc/py-game/tut/tom/games2.html +%%PORTDOCS%%share/doc/py-game/tut/tom/games3.html +%%PORTDOCS%%share/doc/py-game/tut/tom/games4.html +%%PORTDOCS%%share/doc/py-game/tut/tom/games5.html +%%PORTDOCS%%share/doc/py-game/tut/tom/games6.html +%%PORTDOCS%%share/doc/py-game/tut/tom/radians.png %%PORTDOCS%%share/doc/py-game/util/doclate.html %%PORTDOCS%%share/doc/py-game/util/listlate.html %%PORTDOCS%%share/doc/py-game/util/makedocs.py %%PORTDOCS%%share/doc/py-game/util/pagelate.html %%PORTDOCS%%share/examples/py-game/aliens.py %%PORTDOCS%%share/examples/py-game/arraydemo.py %%PORTDOCS%%share/examples/py-game/chimp.py %%PORTDOCS%%share/examples/py-game/data/alien1.gif %%PORTDOCS%%share/examples/py-game/data/alien2.gif %%PORTDOCS%%share/examples/py-game/data/alien3.gif %%PORTDOCS%%share/examples/py-game/data/arraydemo.bmp %%PORTDOCS%%share/examples/py-game/data/background.gif %%PORTDOCS%%share/examples/py-game/data/bomb.gif %%PORTDOCS%%share/examples/py-game/data/bong.wav %%PORTDOCS%%share/examples/py-game/data/boom.wav %%PORTDOCS%%share/examples/py-game/data/car_door.wav %%PORTDOCS%%share/examples/py-game/data/chimp.bmp %%PORTDOCS%%share/examples/py-game/data/danger.gif %%PORTDOCS%%share/examples/py-game/data/explosion1.gif %%PORTDOCS%%share/examples/py-game/data/fist.bmp %%PORTDOCS%%share/examples/py-game/data/house_lo.wav %%PORTDOCS%%share/examples/py-game/data/liquid.bmp %%PORTDOCS%%share/examples/py-game/data/oldplayer.gif %%PORTDOCS%%share/examples/py-game/data/player1.gif %%PORTDOCS%%share/examples/py-game/data/punch.wav %%PORTDOCS%%share/examples/py-game/data/secosmic_lo.wav %%PORTDOCS%%share/examples/py-game/data/shot.gif %%PORTDOCS%%share/examples/py-game/data/whiff.wav +%%PORTDOCS%%share/examples/py-game/eventlist.py %%PORTDOCS%%share/examples/py-game/fonty.py %%PORTDOCS%%share/examples/py-game/glcube.py %%PORTDOCS%%share/examples/py-game/liquid.py %%PORTDOCS%%share/examples/py-game/moveit.py %%PORTDOCS%%share/examples/py-game/oldalien.py %%PORTDOCS%%share/examples/py-game/readme.txt %%PORTDOCS%%share/examples/py-game/sound.py %%PORTDOCS%%share/examples/py-game/stars.py %%PORTDOCS%%share/examples/py-game/uberball.py %%PORTDOCS%%share/examples/py-game/vgrade.py %%PORTDOCS%%@dirrm share/examples/py-game/data %%PORTDOCS%%@dirrm share/examples/py-game %%PORTDOCS%%@dirrm share/doc/py-game/util +%%PORTDOCS%%@dirrm share/doc/py-game/tut/tom +%%PORTDOCS%%@dirrm share/doc/py-game/tut/surfarray +%%PORTDOCS%%@dirrm share/doc/py-game/tut/chimp %%PORTDOCS%%@dirrm share/doc/py-game/tut %%PORTDOCS%%@dirrm share/doc/py-game/ref %%PORTDOCS%%@dirrm share/doc/py-game @dirrm lib/%%PYTHON_VERSION%%/site-packages/pygame @dirrm include/%%PYTHON_VERSION%%/pygame