pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/py27-game_sdl2: import py27-game_sdl2-2.1.0.06991204



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Sat Jun 20 04:14:47 2026 +0900
Changeset:	7bd39add8e38dfe266bf3bb11caac7505dfdccc9

Added Files:
	py27-game_sdl2/DESCR
	py27-game_sdl2/Makefile
	py27-game_sdl2/PLIST
	py27-game_sdl2/buildlink3.mk
	py27-game_sdl2/distinfo
	py27-game_sdl2/patches/patch-include_sdl2__mixer.pxd
	py27-game_sdl2/patches/patch-src_pygame__sdl2_mixer.pyx

Log Message:
wip/py27-game_sdl2: import py27-game_sdl2-2.1.0.06991204

Pygame is a set of Python modules designed for writing games. It is written on
top of the excellent SDL library. This allows you to create fully featured
games and multimedia programs in the python language. Pygame is highly
portable and runs on nearly every platform and operating system.

This package is solely for wip/py27-renpy.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7bd39add8e38dfe266bf3bb11caac7505dfdccc9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py27-game_sdl2/DESCR                               |  6 +++
 py27-game_sdl2/Makefile                            | 51 +++++++++++++++++++
 py27-game_sdl2/PLIST                               | 58 ++++++++++++++++++++++
 py27-game_sdl2/buildlink3.mk                       | 22 ++++++++
 py27-game_sdl2/distinfo                            |  7 +++
 .../patches/patch-include_sdl2__mixer.pxd          | 15 ++++++
 .../patches/patch-src_pygame__sdl2_mixer.pyx       | 15 ++++++
 7 files changed, 174 insertions(+)

diffs:
diff --git a/py27-game_sdl2/DESCR b/py27-game_sdl2/DESCR
new file mode 100644
index 0000000000..6c038975ed
--- /dev/null
+++ b/py27-game_sdl2/DESCR
@@ -0,0 +1,6 @@
+Pygame is a set of Python modules designed for writing games. It is written on
+top of the excellent SDL library. This allows you to create fully featured
+games and multimedia programs in the python language. Pygame is highly
+portable and runs on nearly every platform and operating system.
+
+This package is solely for wip/py27-renpy.
diff --git a/py27-game_sdl2/Makefile b/py27-game_sdl2/Makefile
new file mode 100644
index 0000000000..18dacf090a
--- /dev/null
+++ b/py27-game_sdl2/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD$
+
+DISTNAME=	pygame_sdl2-2.1.0-for-renpy-6.99.12.4
+PKGNAME=	${PYPKGPREFIX}-game_sdl2-2.1.0.06991204
+CATEGORIES=	devel games python
+MASTER_SITES=	https://www.renpy.org/dl/6.99.12.4/
+
+MAINTAINER=	ryoon%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/renpy/pygame_sdl2
+COMMENT=	Set of Python 2.7 modules designed for writing games for RenPy
+LICENSE=	gnu-lgpl-v2.1
+
+PYTHON_27_ACCEPTED=		yes
+PYTHON_VERSIONS_ACCEPTED=	27
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-[0-9]*:../../wip/py27-cython
+
+USE_TOOLS+=	pkg-config
+
+EGG_NAME=	pygame_sdl2-2.1.0
+
+REPLACE_PYTHON+=	examples/*.py
+REPLACE_PYTHON+=	setup.py
+
+SUBST_CLASSES+=		cython
+SUBST_STAGE.cython=	pre-configure
+SUBST_MESSAGE.cython=	Use versioned cython_command
+SUBST_FILES.cython+=	setuplib.py
+SUBST_SED.cython=	-e 's,cython_command = ".*,cython_command = "cython-${PYVERSSUFFIX}",g'
+
+post-extract:
+	# Do not use pre-generated cython results.
+	# *_api.h is missing and it faild in install stage.
+	# These requires correct cython_command.
+	${RM} -f ${WRKSRC}/gen/*
+	${RM} -f ${WRKSRC}/gen-static/*
+	${RM} -f ${WRKSRC}/gen3/*
+	# Do not use invalid version number.
+	${RM} -f ${WRKSRC}/setup.cfg
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py27-game_sdl2/PLIST b/py27-game_sdl2/PLIST
new file mode 100644
index 0000000000..354330bc50
--- /dev/null
+++ b/py27-game_sdl2/PLIST
@@ -0,0 +1,58 @@
+@comment $NetBSD$
+${PYINC}/pygame_sdl2/pygame_sdl2.display_api.h
+${PYINC}/pygame_sdl2/pygame_sdl2.h
+${PYINC}/pygame_sdl2/pygame_sdl2.rwobject_api.h
+${PYINC}/pygame_sdl2/pygame_sdl2.surface_api.h
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pygame_sdl2/DejaVuSans.ttf
+${PYSITELIB}/pygame_sdl2/DejaVuSans.txt
+${PYSITELIB}/pygame_sdl2/__init__.py
+${PYSITELIB}/pygame_sdl2/__init__.pyc
+${PYSITELIB}/pygame_sdl2/__init__.pyo
+${PYSITELIB}/pygame_sdl2/color.so
+${PYSITELIB}/pygame_sdl2/compat.py
+${PYSITELIB}/pygame_sdl2/compat.pyc
+${PYSITELIB}/pygame_sdl2/compat.pyo
+${PYSITELIB}/pygame_sdl2/controller.so
+${PYSITELIB}/pygame_sdl2/display.so
+${PYSITELIB}/pygame_sdl2/draw.so
+${PYSITELIB}/pygame_sdl2/error.so
+${PYSITELIB}/pygame_sdl2/event.so
+${PYSITELIB}/pygame_sdl2/font.so
+${PYSITELIB}/pygame_sdl2/gfxdraw.so
+${PYSITELIB}/pygame_sdl2/image.so
+${PYSITELIB}/pygame_sdl2/joystick.so
+${PYSITELIB}/pygame_sdl2/key.so
+${PYSITELIB}/pygame_sdl2/locals.so
+${PYSITELIB}/pygame_sdl2/mixer.so
+${PYSITELIB}/pygame_sdl2/mixer_music.so
+${PYSITELIB}/pygame_sdl2/mouse.so
+${PYSITELIB}/pygame_sdl2/pygame_time.so
+${PYSITELIB}/pygame_sdl2/rect.so
+${PYSITELIB}/pygame_sdl2/render.so
+${PYSITELIB}/pygame_sdl2/rwobject.so
+${PYSITELIB}/pygame_sdl2/scrap.so
+${PYSITELIB}/pygame_sdl2/sprite.py
+${PYSITELIB}/pygame_sdl2/sprite.pyc
+${PYSITELIB}/pygame_sdl2/sprite.pyo
+${PYSITELIB}/pygame_sdl2/surface.so
+${PYSITELIB}/pygame_sdl2/sysfont.py
+${PYSITELIB}/pygame_sdl2/sysfont.pyc
+${PYSITELIB}/pygame_sdl2/sysfont.pyo
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.py
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.pyc
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.pyo
+${PYSITELIB}/pygame_sdl2/threads/__init__.py
+${PYSITELIB}/pygame_sdl2/threads/__init__.pyc
+${PYSITELIB}/pygame_sdl2/threads/__init__.pyo
+${PYSITELIB}/pygame_sdl2/time.py
+${PYSITELIB}/pygame_sdl2/time.pyc
+${PYSITELIB}/pygame_sdl2/time.pyo
+${PYSITELIB}/pygame_sdl2/transform.so
+${PYSITELIB}/pygame_sdl2/version.py
+${PYSITELIB}/pygame_sdl2/version.pyc
+${PYSITELIB}/pygame_sdl2/version.pyo
diff --git a/py27-game_sdl2/buildlink3.mk b/py27-game_sdl2/buildlink3.mk
new file mode 100644
index 0000000000..1e4fdbf1b5
--- /dev/null
+++ b/py27-game_sdl2/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.7 2025/10/23 20:36:36 wiz Exp $
+
+BUILDLINK_TREE+=	py27-game_sdl2
+
+.if !defined(PY_GAME_SDL2_BUILDLINK3_MK)
+PY_GAME_SDL2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.py27-game_sdl2+=	${PYPKGPREFIX}-game_sdl2>=2.1.0
+BUILDLINK_ABI_DEPENDS.py27-game_sdl2?=	${PYPKGPREFIX}-game_sdl2>=2.1.0
+BUILDLINK_PKGSRCDIR.py27-game_sdl2?=	../../wip/py27-game_sdl2
+
+BUILDLINK_INCDIRS.py27-game_sdl2+=	${PYINC}/pygame_sdl2
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.endif	# PY_GAME_SDL2_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-py27-game_sdl2
diff --git a/py27-game_sdl2/distinfo b/py27-game_sdl2/distinfo
new file mode 100644
index 0000000000..50c0376b93
--- /dev/null
+++ b/py27-game_sdl2/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (pygame_sdl2-2.1.0-for-renpy-6.99.12.4.tar.gz) = c8c1af8bd5c1863157953ae92fe76fd8d576657c4525eb4693c2ce1393be6565
+SHA512 (pygame_sdl2-2.1.0-for-renpy-6.99.12.4.tar.gz) = eacce553d6729b937c13420d826f2fe327bc7aba499a06bea7f1ceedba3327a9456c023878290ace39e1a8e417f54957345b8b78500ffc9ed3d2ec9952397754
+Size (pygame_sdl2-2.1.0-for-renpy-6.99.12.4.tar.gz) = 2294620 bytes
+SHA1 (patch-include_sdl2__mixer.pxd) = 40fc94e0d49ed49cf3625729afa40cf4ab682182
+SHA1 (patch-src_pygame__sdl2_mixer.pyx) = 70774d26d5ec967a72c60c100a2fec95ffd4016f
diff --git a/py27-game_sdl2/patches/patch-include_sdl2__mixer.pxd b/py27-game_sdl2/patches/patch-include_sdl2__mixer.pxd
new file mode 100644
index 0000000000..dfef7eb594
--- /dev/null
+++ b/py27-game_sdl2/patches/patch-include_sdl2__mixer.pxd
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- include/sdl2_mixer.pxd.orig	2026-06-19 00:56:28.897423574 +0000
++++ include/sdl2_mixer.pxd
+@@ -18,10 +18,8 @@ cdef extern from "SDL_mixer.h" nogil:
+     ctypedef enum MIX_InitFlags:
+         MIX_INIT_FLAC
+         MIX_INIT_MOD
+-        MIX_INIT_MODPLUG
+         MIX_INIT_MP3
+         MIX_INIT_OGG
+-        MIX_INIT_FLUIDSYNTH
+ 
+     int Mix_Init(int flags)
+     void Mix_Quit()
diff --git a/py27-game_sdl2/patches/patch-src_pygame__sdl2_mixer.pyx b/py27-game_sdl2/patches/patch-src_pygame__sdl2_mixer.pyx
new file mode 100644
index 0000000000..59c5e8d3ec
--- /dev/null
+++ b/py27-game_sdl2/patches/patch-src_pygame__sdl2_mixer.pyx
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- src/pygame_sdl2/mixer.pyx.orig	2026-06-19 00:56:45.361380927 +0000
++++ src/pygame_sdl2/mixer.pyx
+@@ -81,8 +81,8 @@ def init(frequency=22050, size=MIX_DEFAULT_FORMAT, cha
+     if get_init() is not None:
+         return
+ 
+-    for flag in (MIX_INIT_FLAC, MIX_INIT_MOD, MIX_INIT_MODPLUG,
+-                 MIX_INIT_MP3, MIX_INIT_OGG, MIX_INIT_FLUIDSYNTH):
++    for flag in (MIX_INIT_FLAC, MIX_INIT_MOD,
++                 MIX_INIT_MP3, MIX_INIT_OGG):
+ 
+         if Mix_Init(flag) != flag:
+             errors.append("{}\n".format(SDL_GetError()))


Home | Main Index | Thread Index | Old Index