debian/0000755000000000000000000000000012314272103007161 5ustar debian/watch0000644000000000000000000000013412301102370010202 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://www.pygame.org/ftp/pygame-(\d.*)\.tar\.gz debian/TODO0000644000000000000000000000046412301113213007645 0ustar - Migrate to pybuild and clean up debian/rules - Separate documentation into another binary package (python-pygame-doc?) - Run tests with all supported python versions (not just default one) - Run tests with xvfb ...and other issues mentioned in https://lists.debian.org/debian-python/2013/05/msg00093.html debian/python-pygame.bug-presubj0000644000000000000000000000056612301102370014132 0ustar If you are going to report a bug regarding an audio problem, you should note a VERY important thing: pygame handles audio through SDL, so you need to install the package for the SDL audio plugin of your choice, choosing in the list libsdl1.2debian-alsa libsdl1.2debian-arts libsdl1.2debian-esd libsdl1.2debian-nas libsdl1.2debian-oss libsdl1.2debian-pulseaudio debian/rules0000755000000000000000000000440412314271323010246 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export ORIGLIBDIRS := /lib:/lib/$(DEB_HOST_MULTIARCH) export DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | \ sed -rne 's,^Version: ([^+]+).*,\1,p') PYVERS=$(shell pyversions -r debian/control) # We include all the documentation except: # util (which is for building the docs from the source) # fullinstall.txt (which is installation instructions) # LGPL (which is in /usr/share/common-licenses/LGPL-2.1 under Debian) doclist = $(filter-out docs/util docs/fullinstall.txt docs/LGPL,$(wildcard docs/*)) %: dh $@ --with python2 override_dh_clean: rm -f *.pyc Setup rm -rf build dh_clean override_dh_auto_install: dh_auto_install # Generate correctly versioned numpy dependencies (#698169) dh_numpy override_dh_auto_test: ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" # buildds don't provide graphical interfaces or audio/video devices # to test with, hence some tests won't work properly without: SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk \ python run_tests.py --exclude opengl,display || true endif override_dh_installdocs: dh_installdocs -a $(doclist) override_dh_installchangelogs: dh_installchangelogs -a WHATSNEW override_dh_link: # Replace embedded font with system copy set -e; for python in $(PYVERS); \ do ln -sf /usr/share/fonts/truetype/freefont/FreeSansBold.ttf \ $(CURDIR)/debian/python-pygame/usr/lib/$$python/dist-packages/pygame/freesansbold.ttf; \ done dh_link -a get-orig-source: # Remove existing pygame directory and tarball, if existing rm -rf pygame-$(DEB_UPSTREAM_VERSION) rm -f pygame_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz # Fetch latest upstream tarball uscan --noconf --force-download --download-current-version \ --destdir=. # Unpack and remove tarball tar -xzf pygame-$(DEB_UPSTREAM_VERSION).tar.gz rm -f pygame-$(DEB_UPSTREAM_VERSION).tar.gz # Remove embedded freesansbold.ttf copy; it comes without the FontForge # source file (.sfd), so it's technically a GPL violation rm -f pygame-$(DEB_UPSTREAM_VERSION)/lib/freesansbold.ttf # Repack tarball tar -czf pygame_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz pygame-\ $(DEB_UPSTREAM_VERSION)/ debian/python-pygame.bug-script0000644000000000000000000000005512301102370013755 0ustar #!/bin/sh COLUMNS=140 dpkg -l libsdl\* >&3 debian/copyright0000644000000000000000000002552212301104621011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pygame Source: http://www.pygame.org/ftp/ Files: * Copyright: 2000-2003 Pete Shinners 2006-2007 Rene Dudfield 2007 Richard Goedeken 2007-2008 Marcus von Appen License: LGPL-2+ Files: src/fastevents.c src/fastevents.h Copyright: 2002 Bob Pendleton License: LGPL-2.1+ Files: src/sdlmain_osx.m Copyright: 2009 Brian Fisher License: LGPL-2+ Files: src/SDL_gfx/* Copyright: A. Schiffler License: LGPL-2+ Files: src/overlay.c Copyright: 2002-2003 Dmitry Borisov License: LGPL-2+ Files: src/bitmask.c src/bitmask.h src/mask.c Copyright: 2002-2005 Ulf Ekstrom 1992 Donald W. Gillies License: LGPL-2+ Files: lib/sprite.py Copyright: 2000-2003, 2007 Pete Shinners 2004 Joe Wreschnig License: LGPL-2+ Files: lib/freesansbold.ttf Copyright: 2002-2009 Free Software Foundation License: GPL-3.0+ with FreeFont exception Files: src/camera.doc src/_camera.c docs/ref/camera.html Copyright: 2004 Takafumi Mizuno License: BSD-2-clause Files: src/numeric_arrayobject.h Copyright: 1996 The Regents of the University of California License: python-numeric Files: test/test_utils/unittest.py Copyright: 1999-2003 Steve Purcell License: python Files: examples/* Copyright: Public Domain License: public-domain Files: debian/* Copyright: 2001 Francis Irving 2001-2004 Ed Boraas 2005-2006 Joe Wreschnig 2008-2011 A Mennucc1 2011-2014 Vincent Cheng License: LGPL-2+ License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". License: LGPL-2.1+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2.1". License: GPL-3.0+ with FreeFont exception This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: python Copyright (c) 1999-2003 Steve Purcell This module is free software, and you may redistribute it and/or modify it under the same terms as Python itself, so long as this copyright message and disclaimer are retained in their original form. . IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. . PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. License: python-numeric Copyright (c) 1996. The Regents of the University of California. All rights reserved. . Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. . This work was produced at the University of California, Lawrence Livermore National Laboratory under contract no. W-7405-ENG-48 between the U.S. Department of Energy and The Regents of the University of California for the operation of UC LLNL. . DISCLAIMER . This software was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately-owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. License: public-domain The source code for these examples is in the public domain. Feel free to use for your own projects. (See examples/readme.txt) debian/python-pygame.doc-base0000644000000000000000000000044512301102370013356 0ustar Document: python-pygame Title: Pygame Manual Author: Pete Shinners Abstract: This manual offers a tutorial and reference pages for Pygame. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-pygame/index.html Files: /usr/share/doc/python-pygame/*/*.html debian/source/0000755000000000000000000000000012301102370010453 5ustar debian/source/format0000644000000000000000000000001412301102370011661 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012301102370010602 5ustar debian/patches/check_for_v4l2.diff0000644000000000000000000000336112301102370014231 0ustar Index: pygame-1.9.1release+dfsg/Setup.in =================================================================== --- pygame-1.9.1release+dfsg.orig/Setup.in 2012-01-05 17:53:23.000000000 +0100 +++ pygame-1.9.1release+dfsg/Setup.in 2012-01-05 22:27:25.376271658 +0100 @@ -34,7 +34,7 @@ _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG) movie src/movie.c $(SDL) $(SMPEG) $(DEBUG) scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG) -_camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG) +_camera src/_camera.c src/camera_v4l2.c $(V4L2) $(SDL) $(DEBUG) pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG) GFX = src/SDL_gfx/SDL_gfxPrimitives.c Index: pygame-1.9.1release+dfsg/config_unix.py =================================================================== --- pygame-1.9.1release+dfsg.orig/config_unix.py 2012-01-05 17:53:23.000000000 +0100 +++ pygame-1.9.1release+dfsg/config_unix.py 2012-01-05 22:43:07.853348334 +0100 @@ -150,6 +150,7 @@ Dependency('SCRAP', '', 'libX11', ['X11']), Dependency('PORTMIDI', 'portmidi.h', 'libportmidi.so', ['portmidi']), Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime']), + Dependency('V4L2', 'linux/videodev2.h', '', []), #Dependency('GFX', 'SDL_gfxPrimitives.h', 'libSDL_gfx.so', ['SDL_gfx']), ] if not DEPS[0].found: @@ -177,7 +178,7 @@ for d in DEPS[1:]: if not d.found: - if ( d.name=='PORTMIDI' or d.name=='PORTTIME') and \ + if ( d.name=='PORTMIDI' or d.name=='PORTTIME' or d.name=='V4L2') and \ os.getenv('DEB_HOST_ARCH_OS') != 'linux': print 'Debian specific hack: ignore missing dependency %s on %s .' % \ (d.name , os.getenv('DEB_HOST_ARCH_OS')) debian/patches/no_asm_types_h.diff0000644000000000000000000000110112301102370014434 0ustar Index: pygame-1.9.1release+dfsg/src/camera.h =================================================================== --- pygame-1.9.1release+dfsg.orig/src/camera.h 2012-01-06 08:37:55.210707297 +0100 +++ pygame-1.9.1release+dfsg/src/camera.h 2012-01-06 09:56:37.721393315 +0100 @@ -37,7 +37,8 @@ #include #include - #include /* for videodev2.h */ + /* in Linux it is not needed, and in kfreebsd it does not exists */ + /* #include for videodev2.h */ #include #endif debian/patches/set_WM_CLASS.patch0000644000000000000000000000152512301102370013751 0ustar Description: Set WM_CLASS when running in X11 Export the proper SDL_VIDEO_X11_WMCLASS environment variable every time that the pygame module is loaded. Origin: http://www.pygame.org/old_bug_attachments/45/pygame-set-the-SDL-WM_CLASS-when-running-under-X11.patch Applied-Upstream: 1.9.2, https://bitbucket.org/pygame/pygame/issue/71/pygame-needs-to-set-the-wm_class-when Bug-Ubuntu: https://bugs.launchpad.net/bugs/777417 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -42,6 +42,10 @@ except: pass +# when running under X11, always set the SDL window WM_CLASS to make the +# window managers correctly match the pygame window. +if 'DISPLAY' in os.environ and not 'SDL_VIDEO_X11_WMCLASS' in os.environ: + os.environ['SDL_VIDEO_X11_WMCLASS'] = os.path.basename(sys.argv[0]) class MissingModule: _NOT_IMPLEMENTED_ = True debian/patches/drop_v4l_support.patch0000644000000000000000000001356312301102370015160 0ustar From: Nirav Patel Subject: Patch from Martijn Schmidt. Remove V4L support. With modifications by Nirav Patel. V4L has effectively been deprecated from the Linux kernel as of 2.6.38. Support in pygame was just a placeholder, and removing it will not change any functionality. Origin: Upstream, http://svn.seul.org/viewcvs/viewvc.cgi?view=rev&root=PyGame&revision=3077 Bug-Ubuntu: http://bugs.launchpad.net/bugs/755980 Last-Update: 2011-06-20 Upstream-Commit-Date: 2011-04-23 14:39:19 -0400 Comments-Ubuntu: Minor changes made by Scott Moser to apply upstream patch to 1.9.1release This patch can be dropped when 1.9.2 is released and integrated. --- a/Setup.in +++ b/Setup.in @@ -34,7 +34,7 @@ _numericsurfarray src/_numericsurfarray. _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG) movie src/movie.c $(SDL) $(SMPEG) $(DEBUG) scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG) -_camera src/_camera.c src/camera_v4l2.c src/camera_v4l.c $(SDL) $(DEBUG) +_camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG) pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG) GFX = src/SDL_gfx/SDL_gfxPrimitives.c --- a/pygame.egg-info/SOURCES.txt +++ b/pygame.egg-info/SOURCES.txt @@ -241,7 +241,6 @@ src/bitmask.h src/bufferproxy.c src/camera.doc src/camera.h -src/camera_v4l.c src/camera_v4l2.c src/cdrom.c src/cdrom.doc @@ -465,4 +464,4 @@ test/util/build_page/results/.htaccess test/util/build_page/results/index.py test/util/build_page/results/results.css test/util/build_page/upload_results/.htaccess -test/util/build_page/upload_results/index.py \ No newline at end of file +test/util/build_page/upload_results/index.py --- a/src/_camera.c +++ b/src/_camera.c @@ -22,7 +22,7 @@ * Author: Nirav Patel * * This module allows for use of v4l2 webcams in pygame. The code is written - * such that adding support for v4l or vfw cameras should be possible without + * such that adding support for vfw cameras should be possible without * much modification of existing functions. v4l2 functions are kept seperate * from functions available to pygame users and generic functions like * colorspace conversion. @@ -160,20 +160,8 @@ PyObject* camera_start (PyCameraObject* { #if defined(__unix__) if (v4l2_open_device(self) == 0) { - if (v4l_open_device(self) == 0) { - v4l2_close_device(self); - return NULL; - } else { - self->camera_type = CAM_V4L; - if (v4l_init_device(self) == 0) { - v4l2_close_device(self); - return NULL; - } - if (v4l_start_capturing(self) == 0) { - v4l2_close_device(self); - return NULL; - } - } + v4l2_close_device(self); + return NULL; } else { self->camera_type = CAM_V4L2; if (v4l2_init_device(self) == 0) { --- a/src/camera.h +++ b/src/camera.h @@ -39,7 +39,6 @@ #include /* for videodev2.h */ - #include #include #endif @@ -51,7 +50,7 @@ #define RGB_OUT 1 #define YUV_OUT 2 #define HSV_OUT 4 -#define CAM_V4L 1 +#define CAM_V4L 1 /* deprecated. the incomplete support in pygame was removed */ #define CAM_V4L2 2 struct buffer @@ -111,8 +110,4 @@ int v4l2_init_device (PyCameraObject* se int v4l2_close_device (PyCameraObject* self); int v4l2_open_device (PyCameraObject* self); -/* internal functions specific to v4l */ -int v4l_open_device (PyCameraObject* self); -int v4l_init_device(PyCameraObject* self); -int v4l_start_capturing(PyCameraObject* self); #endif --- a/src/camera_v4l.c +++ /dev/null @@ -1,81 +0,0 @@ -/* - pygame - Python Game Library - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ -#if defined(__unix__) -#include "camera.h" - -/* - * V4L functions - */ - -int v4l_open_device (PyCameraObject* self) -{ - struct stat st; - struct video_capability cap; - struct video_mbuf buf; - - if (-1 == stat (self->device_name, &st)) { - PyErr_Format(PyExc_SystemError, "Cannot identify '%s': %d, %s", - self->device_name, errno, strerror (errno)); - return 0; - } - - if (!S_ISCHR (st.st_mode)) { - PyErr_Format(PyExc_SystemError, "%s is no device",self->device_name); - return 0; - } - - self->fd = open (self->device_name, O_RDWR /* required | O_NONBLOCK */, 0); - - if (-1 == self->fd) { - PyErr_Format(PyExc_SystemError, "Cannot open '%s': %d, %s", - self->device_name, errno, strerror (errno)); - return 0; - } - - if(ioctl(self->fd, VIDIOCGCAP, cap) == -1) { - PyErr_Format(PyExc_SystemError, "%s is not a V4L device", - self->device_name); - return 0; - } - - if(!(cap.type & VID_TYPE_CAPTURE)) { - PyErr_Format(PyExc_SystemError, "%s is not a video capture device", - self->device_name); - return 0; - } - - if( ioctl(self->fd , VIDIOCGMBUF , buf ) == -1 ) { - PyErr_Format(PyExc_SystemError, "%s does not support streaming i/o", - self->device_name); - return 0; - } - - return 1; -} - -int v4l_init_device(PyCameraObject* self) -{ - return 0; -} - -int v4l_start_capturing(PyCameraObject* self) -{ - return 0; -} -#endif debian/patches/setup_ignore_portmidi_on_non_linux.diff0000644000000000000000000000162112301102370020633 0ustar Index: pygame-1.9.1release+dfsg/config_unix.py =================================================================== --- pygame-1.9.1release+dfsg.orig/config_unix.py 2012-01-03 12:41:31.000000000 +0100 +++ pygame-1.9.1release+dfsg/config_unix.py 2012-01-05 08:57:57.854761334 +0100 @@ -177,7 +177,11 @@ for d in DEPS[1:]: if not d.found: - if not confirm(""" + if ( d.name=='PORTMIDI' or d.name=='PORTTIME') and \ + os.getenv('DEB_HOST_ARCH_OS') != 'linux': + print 'Debian specific hack: ignore missing dependency %s on %s .' % \ + (d.name , os.getenv('DEB_HOST_ARCH_OS')) + elif not confirm(""" Warning, some of the pygame dependencies were not found. Pygame can still compile and install, but games that depend on those missing dependencies will not run. Would you like to continue the configuration?"""): debian/patches/MMX.diff0000644000000000000000000000132312301102370012074 0ustar Index: pygame-1.9.1release+dfsg/Setup.in =================================================================== --- pygame-1.9.1release+dfsg.orig/Setup.in 2012-01-03 12:04:50.000000000 +0100 +++ pygame-1.9.1release+dfsg/Setup.in 2012-01-03 12:09:24.420512094 +0100 @@ -64,7 +64,7 @@ draw src/draw.c $(SDL) $(DEBUG) image src/image.c $(SDL) $(DEBUG) overlay src/overlay.c $(SDL) $(DEBUG) -transform src/transform.c src/rotozoom.c src/scale2x.c src/scale_mmx.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64 +transform src/transform.c src/rotozoom.c src/scale2x.c src/scale_mmx.c $(SDL) $(DEBUG) mask src/mask.c src/bitmask.c $(SDL) $(DEBUG) bufferproxy src/bufferproxy.c $(SDL) $(DEBUG) pixelarray src/pixelarray.c $(SDL) $(DEBUG) debian/patches/series0000644000000000000000000000024312301102370012016 0ustar read_origlibdirs_from_env.patch drop_v4l_support.patch set_WM_CLASS.patch MMX.diff setup_ignore_portmidi_on_non_linux.diff check_for_v4l2.diff no_asm_types_h.diff debian/patches/read_origlibdirs_from_env.patch0000644000000000000000000000174112301102370017025 0ustar Description: Support specifying origlibdirs for dependencies searching In order to improve the limited searching for dependencies in config_unix.py This adds support to specify which directories should be searched under localbase in the environment variable ORIGLIBDIRS. . The debian/rules will then ensure that the correct directories are searched by doing something like: ORIGLIBDIRS=/lib:/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) . Bug-Ubuntu: http://bugs.launchpad.net/bugs/755980 Author: Scott Moser Last-Update: 2011-06-20 --- a/config_unix.py +++ b/config_unix.py @@ -19,6 +19,9 @@ origincdirs = ['/include', '/include/SDL '/include/smpeg' ] origlibdirs = ['/lib','/lib64','/X11R6/lib'] +if 'ORIGLIBDIRS' in os.environ and os.environ['ORIGLIBDIRS'] != "": + origlibdirs = os.environ['ORIGLIBDIRS'].split(":") + def confirm(message): "ask a yes/no question, return result" reply = raw_input('\n' + message + ' [Y/n]:') debian/compat0000644000000000000000000000000212301102370010351 0ustar 9 debian/control0000644000000000000000000000274412314271323010576 0ustar Source: pygame Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Ed Boraas , A Mennucc1 , Vincent Cheng Build-Depends: debhelper (>= 9), libjpeg-dev, libpng-dev, libportmidi-dev [linux-any], libsdl-image1.2-dev (>= 1.2.0-1.1), libsdl-mixer1.2-dev (>= 1.2.0-1.1), libsdl-ttf2.0-dev (>= 1.2.2-1.1), libsdl1.2-dev (>= 1.2.2-3.1), libsmpeg-dev (>= 0.4.5+cvs20030824-1.3), python-all-dev (>= 2.6.6-3~), python-numpy, sharutils Standards-Version: 3.9.5 X-Python-Version: >= 2.3 Homepage: http://www.pygame.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pygame/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pygame/trunk/ Package: python-pygame Architecture: any Depends: fonts-freefont-ttf, python-numpy, ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Suggests: timidity Description: SDL bindings for games development in Python A multimedia development kit for Python. Pygame provides modules for you to access the video display, play sounds, track time, read the mouse and joystick, control the CD player, render true type fonts and more. It does this using mainly the cross-platform SDL library, a lightweight wrapper to OS-specific APIs. . This package also includes Pygame's API documentation and examples. debian/changelog0000644000000000000000000003774512314272103011053 0ustar pygame (1.9.1release+dfsg-9ubuntu1) trusty; urgency=medium * Stop symlinking font into /usr/share/pyshared/pygame/freesansbold.ttf, as /usr/share/pyshared/ is no longer used. We still copy it into /usr/lib/$python/dist-packages/pygame/freesansbold.ttf. -- Colin Watson Tue, 25 Mar 2014 12:19:14 +0000 pygame (1.9.1release+dfsg-9) unstable; urgency=medium [ Vincent Cheng ] * Set Debian Python Modules Team as new maintainer, and move Ed Boraas into Uploaders with his consent. - Update Vcs-* fields accordingly. * Replace dependency ttf-freefont -> fonts-freefont-ttf. (Closes: #738244) * Use dh_numpy to generate correct numpy dependencies. * Remove dependency on ${python:Provides}. * Remove Replaces+Conflicts with obsolete pygame packages. * Update Standards version to 3.9.5. * Update my email address. [ Jakub Wilk ] * Run tests only if DEB_BUILD_OPTIONS=nocheck is not set. -- Vincent Cheng Wed, 19 Feb 2014 01:41:42 -0800 pygame (1.9.1release+dfsg-8) unstable; urgency=low [ Sébastien Villemot ] * Following the ABI change in python-numpy >= 1:1.6.1 (see #685812), add Depends on python-numpy (>= 1:1.6.1) and python-numpy-abi9 in order to support partial upgrades. (Closes: #698169) -- Vincent Cheng Mon, 14 Jan 2013 19:23:48 -0800 pygame (1.9.1release+dfsg-7) unstable; urgency=low * Add missing licenses and copyright holders in debian/copyright. (Closes: #685189) -- Vincent Cheng Mon, 10 Sep 2012 15:08:11 -0700 pygame (1.9.1release+dfsg-6) unstable; urgency=low * Add b-d on libpng-dev and libjpeg-dev to fix FTBFS. (Closes: #669464) * Update Standards version from 3.9.2 to 3.9.3, no updates required. * Update debhelper compatibility level from 8 to 9. -- Vincent Cheng Thu, 19 Apr 2012 20:07:10 -0700 pygame (1.9.1release+dfsg-5) unstable; urgency=high * camera.h : do not include asm/types.h -- not all arches have it, and linux does not need it * Setting priority on high so as to (possibly) migrate before Ubuntu snapshot. -- A Mennucc1 Fri, 06 Jan 2012 09:16:52 +0100 pygame (1.9.1release+dfsg-4) unstable; urgency=high * check for v4l2 , if absent do not compile camera module * Setting priority on high so as to (possibly) migrate before Ubuntu snapshot. -- A Mennucc1 Thu, 05 Jan 2012 22:29:11 +0100 pygame (1.9.1release+dfsg-3) unstable; urgency=high * Build-depends on portmidi only in linux-any architectures. * Turn on MMX instructions, thanks to jeff@jab.org; (Closes: #653215). * Setting priority on high so as to (possibly) migrate before Ubuntu snapshot. -- A Mennucc1 Thu, 05 Jan 2012 08:10:48 +0100 pygame (1.9.1release+dfsg-2) unstable; urgency=low * Upload to unstable. * Repack tarball to remove lib/freesansbold.ttf. * Import debian/patches/set_the_SDL_WM_CLASS_when_running_under_X11.diff from Ubuntu. * Drop debian/patches/documentation_fix since the revised link doesn't seem to work either. * Update debian/copyright to conform to DEP-5. * Update debian/rules to dh 7 rules.tiny style. * Modify debian/watch to ensure uscan can process it correctly. * Add Vcs-* fields in debian/control. * Add Homepage: field in debian/control. -- Vincent Cheng Sun, 25 Sep 2011 17:41:16 -0700 pygame (1.9.1release-1) experimental; urgency=low * Upload to experimental. * New upstream release. (Closes: #544347) * Add myself to uploaders. * Add build dependency on libportmidi-dev. * Transition to dh_python2: (Closes: #616965) - Remove dependency on python-central. - Bump dependency on python-all-dev to >= 2.6.6-3~. - Remove XB-Python-Version. - Change XS-Python-Version to X-Python-Version. - Use dh_python2 instead of dh_pycentral in debian/rules. * Add timidity as a suggested package for python-pygame. (Closes: #428070) * Include a doc-base registration file. (Closes: #451674) * Update Standards version from 3.8.4 to 3.9.2, no updates required. * Update debhelper compatiblity level from 7 to 8. * Import debian/patches from Ubuntu. -- Vincent Cheng Wed, 29 Jun 2011 14:56:36 -0700 pygame (1.8.1release-2) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format * Add debian/python-pygame.bug-presubj . The contents of this file are displayed to the user by the bug reporting tool before allowing the user to write a bug report. This file explains that the user may need to install some libsdl libraries to hear audio. * bump standard, no changes * fix lintian warnings: - duplicate-font-file usr/share/pyshared/pygame/freesansbold.ttf also in ttf-freefont : replace with symlink - some executable-not-elf-or-script - debhelper-but-no-misc-depends, added * Thanks morph for NMU. -- A Mennucc1 Sun, 07 Mar 2010 14:58:47 +0100 pygame (1.8.1release-1.1) unstable; urgency=low * Non-maintainer upload. * Prepare for the upcoming Python 2.6 transition; thanks to Piotr Ożarowski for the bug report and to Kumar Appaiah for the patch; Closes: #556151 - debian/rules + pass --prefix=/usr when installing * debian/control - removed Joe Wreschnig from Uploaders field; Closes: #547234 -- Sandro Tosi Sun, 15 Nov 2009 22:22:48 +0100 pygame (1.8.1release-1) unstable; urgency=low * Upload in unstable. * Add myself to uploaders. * Added a script for reportbug , build-dep debhelper >= 7.2.3. -- A Mennucc1 Sat, 16 May 2009 14:28:04 +0200 pygame (1.8.1release-0) experimental; urgency=low * Non-maintainer upload. [ Barry deFreese ] * New upstream release. (Closes: #473672). + image.fromstring fixes. (Closes: #481071). * Depend and Build-depend on python-numpy. (Closes: #478450). + Drop python-numeric depend and build-dep. * Add noopt handling in rules. (Closes: #481062). Thanks to Sam Morris for the patch. * Add watch file. * Bump Standards Version to 3.7.3. (No changes needed). -- A Mennucc1 Fri, 12 Dec 2008 19:17:02 +0100 pygame (1.8.0release-0) experimental; urgency=low * Non-maintainer upload. * New upstream release thanks to René Dudfield (Closes: #473672). * Bug fix: "python-pygame: pygame.image.fromstring does not work", thanks to Sam Morris (Closes: #481071). -- A Mennucc1 Wed, 04 Jun 2008 20:36:19 +0200 pygame (1.7.1release-4.1) unstable; urgency=high * Non-maintainer upload. * Build-depend on python-numeric instead of python2.[34]-numeric. Closes: #399697 * Likewise build-depend on python-all-dev instead of python2.[34]-dev. * Dropped useless build-dependency on python (it's granted with python-all-dev). * Add missing dependency on python-numeric. Closes: #399816 * Changed XS-Python-Version to ">= 2.3" since pygame apparently supports python 2.5 and I couldn't find a rationale for "2.3, 2.4" in the changelog. * Fix lintian errors/warnings: - Added empty binary-indep target in debian/rules. - Removed dh_python call and adjust python-central build-dependency accordingly. -- Raphael Hertzog Thu, 30 Nov 2006 15:07:18 +0100 pygame (1.7.1release-4) unstable; urgency=low * control: Add ${shlibs:Depends} Depends:. -- Joe Wreschnig Tue, 13 Jun 2006 16:55:04 -0500 pygame (1.7.1release-3) unstable; urgency=low * control, rules: Update to new Python policy, using pycentral. * Switch to debhelper level 5. -- Joe Wreschnig Mon, 12 Jun 2006 23:45:00 -0500 pygame (1.7.1release-2) unstable; urgency=low * Ignore invalid fonts.scale files. (Closes: #337120) -- Joe Wreschnig Mon, 21 Nov 2005 19:01:52 -0600 pygame (1.7.1release-1) unstable; urgency=low * New upstream release. * Remove 64-bit patch from 1.6-0.2, merged upstream. * Remove SMPEG detection patch from 1.4-1, no longer needed. -- Joe Wreschnig Thu, 15 Sep 2005 15:10:45 -0500 pygame (1.6-3) unstable; urgency=low * debian/control: - Add myself to Uploaders. - Section: python. - Standards-Version 3.6.2. * debian/copyright: Include proper copyright line. (Closes: #290220) * Build packages for Python 2.3/2.4 instead of 2.2/2.3. * Move API documentation and examples to arch-indep python-pygame. * Build-Dep on libsmpeg-dev >= 0.4.5+cvs20030824-1.3 to get libsmpeg0c2. -- Joe Wreschnig Sun, 14 Aug 2005 12:26:45 -0500 pygame (1.6-2) unstable; urgency=low * Actually build-depend on python (for dh_python) * Closes: #264086 -- Ed Boraas Sun, 8 Aug 2004 00:10:10 -0600 pygame (1.6-1) unstable; urgency=low * Acknowledge NMUs (Closes: #186916, #219524, #246278) -- Ed Boraas Sat, 7 Aug 2004 23:56:37 -0600 pygame (1.6-0.2) unstable; urgency=low * NMU on maintainer's request. * src/constants.c: cast constants to ints to prevent breakage on 64-bit architectures (closes: #186916, #246278). * debian/rules: use dh_python. * debian/python2.X-pygame.{prerm,postinst}: removed. * debian/control: + require debhelper 4.1.25. + make python-pygame depend on ${python:Depends}. + Standards-version is 3.6.1 (no changes required). -- Josselin Mouette Fri, 28 May 2004 15:57:25 +0200 pygame (1.6-0.1) unstable; urgency=low * Non-maintainer upload. * Don't build the Python 2.1 target anymore, Pygame now requires 2.2 or better. * Update the download URL in the copyright file to www.pygame.org/ftp. * New upstream version. (Closes: #219524) -- Joe Wreschnig Tue, 10 Feb 2004 19:26:36 -0600 pygame (1.5.6-2) unstable; urgency=low * Build python-pygame dummy package where it should be, in binary-arch (Closes: #207192) -- Ed Boraas Mon, 25 Aug 2003 11:27:18 -0600 pygame (1.5.6-1) unstable; urgency=low * New upstream release * Build (and default to) Python 2.3 version -- Ed Boraas Mon, 11 Aug 2003 20:20:39 -0600 pygame (1.5.5-2) unstable; urgency=low * Rebuild against libsdl-ttf2.0-dev -- Ed Boraas Wed, 16 Apr 2003 20:44:48 -0600 pygame (1.5.5-1) unstable; urgency=low * New upstream release * Rebuild against current python-numeric (Closes: #173041) * Add build-depends on python2.[12]-numeric (Closes: #174770) * Version python dependency in python-pygame package (Closes: #174289) * Only install documentation and examples in "real" (python2.[12]-pygame) packages (Closes: #175268) -- Ed Boraas Mon, 6 Jan 2002 20:06:15 -0700 pygame (1.5.3-2) unstable; urgency=low * Version the conflicts and replaces on python2.1-pygame * Add (versioned) conflicts and replaces to python2.2-pygame (Closes: #159347) * Remove emacs settings from changelog.Debian -- Ed Boraas Thu, 19 Sep 2002 17:11:38 -0600 pygame (1.5.3-1) unstable; urgency=low * New upstream release * Update documentation paths in postinst (Closes: #159481) * pygame2.1-pygame conflicts with pygame (Closes: #159482) * python-pygame suggests all other pygame versions -- Ed Boraas Sun, 8 Sep 2002 15:30:14 -0600 pygame (1.5-4) unstable; urgency=medium * Update postinst and prerm to precompile the right things -- Ed Boraas Sat, 24 Aug 2002 21:06:34 -0600 pygame (1.5-3) unstable; urgency=low * Build separate python2.1-pygame and python2.2-pygame packages (Closes: #158078) -- Ed Boraas Sat, 24 Aug 2002 20:51:12 -0600 pygame (1.5-2) unstable; urgency=low * Move to python 2.2 (#135323) * Fix errors in documentation (Closes: #145388) -- Ed Boraas Sat, 24 Aug 2002 13:43:54 -0600 pygame (1.5-1) unstable; urgency=high * New upstream release (Closes: #155030) * Upstream now includes Helmet Bold (not condensed) -- Ed Boraas Tue, 6 Aug 2002 06:54:56 -0600 pygame (1.4-3) unstable; urgency=high * RC Fix: include Helmet Condensed Bold from openoffice and set default font accordingly -- Ed Boraas Mon, 29 Apr 2002 07:56:12 -0700 pygame (1.4-2) unstable; urgency=high * RC Fix: Remove bluebold.ttf from package, as it's non-free (Closes: #143960) * Suggests ttf-larabie-straight, which provides this font (bluebold.ttf remains the default font) -- Ed Boraas Sun, 28 Apr 2002 22:04:37 -0700 pygame (1.4-1) unstable; urgency=medium * New upstream release (Closes: #131196) * Extend default path to allow detection of libsmpeg * pygame.sprite now built correctly (Closes: #126244) -- Ed Boraas Wed, 20 Feb 2002 06:39:24 -0700 pygame (1.2-5) unstable; urgency=medium * Fix python 2.0 references in postinst (Closes: #120422) -- Ed Boraas Wed, 21 Nov 2001 06:54:08 -0700 pygame (1.2-4) unstable; urgency=medium * Move to python 2.1 * Update dependencies (Closes: #118251) -- Ed Boraas Tue, 20 Nov 2001 06:35:16 -0700 pygame (1.2-3) unstable; urgency=low * Rebuild against new SDL packages (Closes: #115863) -- Ed Boraas Wed, 17 Oct 2001 18:18:34 -0600 pygame (1.2-2) unstable; urgency=low * Build as non-native package (oops) * Hardcode Debian directory locations, to ensure correct builds on the autobuilders (Closes: #113714) -- Ed Boraas Sat, 30 Sep 2001 19:27:49 -0600 pygame (1.2-1) unstable; urgency=low * New upstream release -- Ed Boraas Mon, 24 Sep 2001 20:14:06 -0600 pygame (1.1-3) unstable; urgency=low * New maintainer, in that I am adopting contributed third-party debs for official use (Thanks, Francis). * Updated config_unix.py to check for depends in /usr as well as /usr/local * Removed invalid versioning on libsdl1.2-dev (which is no longer necessary, with the above fix) -- Ed Boraas Tue, 26 Jun 2001 18:39:37 -0600 pygame (1.1-2) unstable; urgency=low * Fixed standards version so it is lintian compliant * Closes: #83446 (ITP: pygame) -- Francis Irving Wed, 27 Jun 2001 00:32:02 +0100 pygame (1.1-1) unstable; urgency=low * New upstream release * Now depends on 1.2 versions of all SDL libraries * Added dependencies for python2-numeric, so more examples work -- Francis Irving Sun, 24 Jun 2001 10:46:00 +0100 pygame (1.0-2) unstable; urgency=low * Now depends on libsdl-ttf1.2 1.2.2-1 as it is available in Debian. More of the examples can be now be run. -- Francis Irving Mon, 16 Apr 2001 22:49:38 +0100 pygame (1.0-1) unstable; urgency=low * New upstream release -- Francis Irving Sat, 7 Apr 2001 13:04:19 +0100 pygame (0.99pre-1-1) unstable; urgency=low * New upstream release -- Francis Irving Sat, 31 Mar 2001 10:09:39 +0100 pygame (0.9-1) unstable; urgency=low * New upstream release -- Francis Irving Tue, 20 Feb 2001 03:03:20 +0000 pygame (0.5-3) unstable; urgency=low * Tidied up documentation so installation instructions and documentation building tools are not installed -- Francis Irving Sun, 28 Jan 2001 13:15:22 +0000 pygame (0.5-2) unstable; urgency=low * Correctly compiles *.py files to *.pyc and *.pyo on installation, and deletes the *.pyc and *.pyo files on uninstallation * Build depedency now includes python2-dev * Documentation moved to correct place within /usr/share/doc/pygame -- Francis Irving Thu, 25 Jan 2001 00:52:56 +0000 pygame (0.5-1) unstable; urgency=low * New upstream release -- Francis Irving Mon, 22 Jan 2001 23:02:10 +0000 pygame (0.4-1) unstable; urgency=low * Initial Release. * This is my first Debian package ;-) -- Francis Irving Fri, 5 Jan 2001 00:22:42 +0000