From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH] gnu: Add libsmpeg. Date: Sun, 24 Jul 2016 09:18:01 +0300 Message-ID: <20160724061801.GB4905@debian-netbook> References: <87bn1pu4lx.fsf@openmailbox.org> <877fcdtq97.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRCjt-00054g-VT for guix-devel@gnu.org; Sun, 24 Jul 2016 02:18:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRCjq-0007L4-7s for guix-devel@gnu.org; Sun, 24 Jul 2016 02:18:13 -0400 Received: from flashner.co.il ([178.62.234.194]:58572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRCjp-0007Kr-S0 for guix-devel@gnu.org; Sun, 24 Jul 2016 02:18:10 -0400 Content-Disposition: inline In-Reply-To: <877fcdtq97.fsf@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Kei Kebreau Cc: guix-devel@gnu.org --kfjH4zxOES6UT95V Content-Type: multipart/mixed; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Pygame seems popular, it was also on my backburner list todo. In the AUR=C2= =B9 there's acutally a package for 1.9.2pre20141217-1, which doesn't have a dependancy on smpeg. When I tried building pygame with smpeg pygame couldn't find it, and I also ran into problems with the sdl inputs. =C2=B9 https://aur.archlinux.org/packages/python-pygame/ On Fri, Jul 22, 2016 at 03:41:08PM -0400, Kei Kebreau wrote: > Kei Kebreau writes: >=20 > > This is a preliminary patch for pygame. I don't really have a test case > > for it outside of (hopefully) a successful build of pygame. We'll see > > how it goes. >=20 > Pygame's config.py is not finding smpeg-config. This will be fun! Anyone > with skill in Python is welcome to offer me assistance! >=20 > --=20 > Kei (GPG Key: 4096R/E6A5EE3C19467A0D) --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="bambam.scm" Content-Transfer-Encoding: quoted-printable ;;; Copyright =C2=A9 2016 Efraim Flashner ;;; ;;; This file is an addendum to GNU Guix. ;;; ;;; GNU Guix 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. ;;; ;;; GNU Guix 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 GNU Guix. If not, see . (define-module (wip bambam) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages fontutils) #:use-module (gnu packages image) #:use-module (gnu packages music) #:use-module (gnu packages python) #:use-module (gnu packages sdl)) (define-public smpeg (package (name "smpeg") (version "0.4.5+cvs20030824") (source (origin (method url-fetch) (uri (string-append "mirror://debian/pool/main/s/smpeg/" "smpeg_" version ".orig.tar.gz")) ;; Unfortunately the svn-fetch method does not work with this repo ;(method svn-fetch) ;(uri (svn-reference ; (url "https://svn.icculus.org/smpeg/") ; (revision 408))) (sha256 (base32 "05hrprv8h0bw8xxzraccq922b4jk04c3zwyk5nhyizfrgmwylxhj")))) ; "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52")) ;(file-name (string-append name "-" version "-checkout")))) (build-system gnu-build-system) (inputs `(("sdl" ,sdl) ("sdl-mixer" ,sdl-mixer))) (home-page "https://icculus.org/smpeg/") (synopsis "SDL MPEG Player Library") (description "SMPEG (SDL MPEG Player Library) is a free MPEG1 video pla= yer library with sound support. Video playback is based on the ubiquitous Berk= eley MPEG player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams.") (license #f))) (define-public python2-pygame (package (name "python2-pygame") (version "1.9.1") (source (origin (method url-fetch) (uri (string-append "http://pygame.org/ftp/pygame-" version "release.tar.gz")) (sha256 (base32 "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52")))) (build-system python-build-system) (arguments `(#:python ,python-2 #:phases (modify-phases %standard-phases (add-after 'unpack 'apply-v4l-patch (lambda _ (zero? (system* "patch" "--force" "-p1" "-i" (assoc-ref %build-inputs "patch"))))) (add-after 'unpack 'patch-config (lambda _ (substitute* '("config_unix.py" "config_msys.py") (("not confirm") "\"-auto\" not in sys.argv and not confirm")) #t)) (add-before 'build 'config (lambda _ (zero? (system* "python2" "config.py" "-auto"))))))) (inputs `( ;("freetype" ,freetype) ;("libjpeg" ,libjpeg) ;("libpng" ,libpng) ;("python2-numpy" ,python2-numpy) ;("sdl" ,sdl) ("portmidi" ,portmidi) ("sdl-image" ,sdl-image) ("sdl-mixer" ,sdl-mixer) ("sdl-ttf" ,sdl-ttf) ;("smpeg" ,smpeg) )) ;(native-inputs ; `("patch" ,@("/home/efraim/workspace/my-guix/patches/pygame-v4l.patch= "))) (home-page "http://www.pygame.org/") (synopsis "SDL bindings for games development in Python") (description "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 wrappe= r to OS-specific APIs.") (license (list license:lgpl2.1 license:public-domain)))) ; programs in example directory --MfFXiAuoTsnnDAfZ-- --kfjH4zxOES6UT95V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXlF2WAAoJEPTB05F+rO6Tu44P+wWVcRxL6z6CQC/gzQRnHP8H dMbceFW/NFlb90O5MoxG8aDyb2nZyw4MeJ8K9+blRWmt6FQBDwawrGMJR6xbQGtY ETQ+eRZ7mlXCUSzRwthNNY4V6xt49OYFkNOLUJjHkYTTDSr0fSX6JAc6k3JDjp1g hT+wu5Zd8w2EpBtf35duJmovWVo3Pe8+lQUlBwZGTEOe6KWIG+ncdG7aTUEgmgr/ UNaZCzZSuH9/avPeGpk/PiMPDdVd5gbO0pTgrZkAi9wwOrztXKnmBnfrBlkkXHoI t2sL4Yv6yViABbGPFC1lAnUN8kUXHRjSofYg3fsCGHonFgKudvB89o7438q4WH64 cO2PpnaNYZZF1eGOGlLP6eNsznbS84xsGrVWBXixr24dFozPHZ3uyk+R1Qf3wS4h MSqSBopnNZkIZDg6hypitKrLgkp4oHZsEurHSJv3DMDqvnClnF4KOpoIJdnrSypC p3GjdkCrVaAPZoFsTOufqPzmpExROt3z+o4IvxlojINEehQRVvEJ1pId8kLge8hw gqgeccQBn06HhT0fqlTip2cx5f+BrhrbncfDghSqClcn3y11Mi0L6KWZyM2rGfex wVKMdvSMvD/ZeqGXJcfsj+3PTl8eho6j1LjyR8d8GviDe3h1mKkj91V5O7G0UTFS DQDROry6Qi4TwMybp7+k =cOla -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V--