New package: python-pygame-1.9.1

Also added smpeg to common/shlibs to satisfy dependencies.

Closes: #4402 [via git-merge-pr]
This commit is contained in:
archaeme 2016-06-30 20:28:02 -04:00 committed by Toyam Cox
parent 951b0b075e
commit 0c046358d8
3 changed files with 50 additions and 0 deletions

View File

@ -2460,6 +2460,7 @@ libipmimonitoring.so.5 freeipmi-1.5.1_1
libipmiconsole.so.2 freeipmi-1.5.1_1
libfreeipmi.so.17 freeipmi-1.5.1_1
libipmidetect.so.0 freeipmi-1.5.1_1
libsmpeg-0.4.so.0 smpeg-0.4.5_3
libsmpeg2-2.0.so.0 smpeg2-2.0.0_1
libedac.so.1 libedac-0.18_1
libxlsreader.so.1 libxls-1.4.0_1

View File

@ -0,0 +1,26 @@
Index: config_unix.py
===================================================================
--- config_unix.py (revision 2567)
+++ config_unix.py (working copy)
@@ -174,7 +174,7 @@
for d in DEPS[1:]:
if not d.found:
- if not confirm("""
+ if "-auto" not in sys.argv and 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?"""):
Index: config_msys.py
===================================================================
--- config_msys.py (revision 2567)
+++ config_msys.py (working copy)
@@ -283,7 +283,7 @@
for d in DEPS[1:]:
if not d.found:
- if not confirm("""
+ if "-auto" not in sys.argv and 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?"""):

View File

@ -0,0 +1,23 @@
# Template file for 'python-pygame'
pkgname="python-pygame"
version="1.9.1"
revision=1
wrksrc="pygame-${version}release"
build_style=python-module
short_desc="Collection of python modules for writing games"
maintainer="Archaeme <normandy@firemail.cc>"
license="LGPL-2.1"
homepage="http://www.pygame.org/"
distfiles="http://www.pygame.org/ftp/pygame-${version}release.tar.gz"
checksum="a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433"
hostmakedepends="python-devel smpeg-devel"
makedepends="python-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel smpeg-devel v4l-utils-devel"
do_configure() {
python config.py -auto
}
post_configure() {
sed -i 's/linux\/videodev.h/libv4l1-videodev.h/g' ${wrksrc}/src/camera.h
}