From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add libsmpeg. Date: Fri, 29 Jul 2016 17:08:40 -0400 Message-ID: <87invorw2v.fsf@openmailbox.org> References: <87bn1pu4lx.fsf@openmailbox.org> <877fcdtq97.fsf@openmailbox.org> <8737n1tm1f.fsf@openmailbox.org> <871t2fhzsl.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTF1g-00015k-W3 for guix-devel@gnu.org; Fri, 29 Jul 2016 17:09:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTF1d-0007Dl-3N for guix-devel@gnu.org; Fri, 29 Jul 2016 17:09:00 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:34844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTF1c-0007DE-Lg for guix-devel@gnu.org; Fri, 29 Jul 2016 17:08:57 -0400 In-Reply-To: (Vincent Legoll's message of "Fri, 29 Jul 2016 14:42:02 +0200") 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: Vincent Legoll Cc: guix-devel --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Vincent Legoll writes: >>>> I see 2 solutions >>> >>> The other solution could be to patch the setup.py script, if you >>> want to do that I'll tell you what to change >> >> I want to try patching the setup.py script, that way I could see how >> pygame tries to detect the libraries that it says are missing. > > Could you try the attached untested patch, that will avoid user interaction. I actually got pygame to build successfully without the patch by integrating Roel's recipe! Attached is an updated patch for libsmpeg. It's corrected for use with the following pygame patch. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libsmpeg.patch Content-Transfer-Encoding: quoted-printable From=20bb7b799281949d0959922cd40c158102e8876149 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Fri, 29 Jul 2016 17:01:51 -0400 Subject: [PATCH] gnu: Add libsmpeg. * gnu/packages/video.scm (libsmpeg): New variable. =2D-- gnu/packages/video.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 5b5bbd0..7089c99 100644 =2D-- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -8,6 +8,7 @@ ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Alex Vong ;;; Copyright =C2=A9 2016 Alex Griffin +;;; Copyright =C2=A9 2016 Kei Kebreau ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix svn-download) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) @@ -1518,3 +1520,39 @@ implementation.") your graphical desktop and encodes it as a video. This is a useful tool f= or making @dfn{screencasts}.") (license license:gpl2+))) + +(define-public libsmpeg + (package + (name "libsmpeg") + (version "0.4.5") + (source (origin + (method svn-fetch) + (uri (svn-reference + (url "svn://svn.icculus.org/smpeg/trunk/") + (revision 401))) ; last revision before smpeg2 (for SD= L 2.0) + (sha256 + (base32 + "18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'autogen.sh + (lambda _ + (zero? (system* "sh" "autogen.sh"))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake))) + (inputs + `(("sdl" ,sdl2))) + (home-page "http://icculus.org/smpeg/") + (synopsis "SDL MPEG decoding library") + (description + "SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library +with sound support. Video playback is based on the ubiquitous Berkeley MP= EG +player, mpeg_play v2.2. Audio is played through a slightly modified mpegs= ound +library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 vi= deo, +and MPEG system streams.") + (license (list license:expat + license:lgpl2.1 + license:lgpl2.1+ + license:gpl2)))) =2D-=20 2.9.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXm8XYAAoJEOal7jwZRnoNr+sP/1JhDHu/sYGpr6LWW80rKVeL o/zwrlZA6+0tV2V9pSaGQnyeOTfqyoK19MjWDlQETbxS5Sv+F47MPOPprTOErjQG 3YVL78z70RZbfNDCLuGBsEio3YwKAquqsiT4UPoQ0JN4nzEfhaiytwvooLSgTc+d aPBxinNYtKHPgveGO2RizmN+YaUKVnRrD7abjXP3saRMlZQldm/FmlIv5BG8eWVC JPiRXzQw8EMBOl2nAMO5+EFYcVejEjmz69KeVGSktnDQITmF/t0sX7wcenYuuUXH WDAxS1d0fT9yhHRHhSEePamutXS4vwE+wwH/kkVQvJPGaRmUSlYejKIog/joLt9K FU7ZKX9mwd7vEz0LuaHcvfYYWTGZRHU+wNwZgzVgUrbEL7vVVf0RHBsnp8dyJXM/ 0/ZpMW2F0n0nwoMBJBMht67B62DOgpnPUWUOygFcMQcAJJq/o0m01dyoPSXL95Mg rJqTE4oYcqVdscJgn4llkm9bzwfTbiERA7n8CKfz63M9wZb73NvduhOwmafczP1Z SmhpujnHhG2oCYdRU/s89QPFSHaJpz5cOa6hRYRwNUe7PrcCpL+9VWo9Yi1NxkR/ BrmuTQWKJnKvQ5bNED2zcn9eclqqe5zAKBLdyqh44UtXA7NZeoYOPSdw0WO2ZdHM 4xWXg2N0KphBnWhkMlrS =5gl6 -----END PGP SIGNATURE----- --==-=-=--