From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Subject: [PATCH v4] gnu: Add bullet. Date: Sat, 13 Dec 2014 13:41:37 +0100 Message-ID: <1418474497-6119-2-git-send-email-sleep_walker@suse.cz> References: <87vblhynx2.fsf@netris.org> <1418474497-6119-1-git-send-email-sleep_walker@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzm1o-0005WZ-HZ for guix-devel@gnu.org; Sat, 13 Dec 2014 07:42:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xzm1j-0000qB-RV for guix-devel@gnu.org; Sat, 13 Dec 2014 07:42:32 -0500 Received: from cantor2.suse.de ([195.135.220.15]:58179 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzm1j-0000q1-Gh for guix-devel@gnu.org; Sat, 13 Dec 2014 07:42:27 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F180EACF9 for ; Sat, 13 Dec 2014 12:42:26 +0000 (UTC) In-Reply-To: <1418474497-6119-1-git-send-email-sleep_walker@suse.cz> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/game-development.scm: New file * gnu-system.am (GNU_SYSTEM_MODULES): Add it. * gnu/packages/patches/bullet-add-fPIC-into-flags.patch: New file * gnu-system.am (dist_patch_DATA): Add it. --- gnu-system.am | 2 + gnu/packages/game-development.scm | 44 ++++++++++++++++= ++++++ .../patches/bullet-add-fPIC-into-flags.patch | 13 +++++++ 3 files changed, 59 insertions(+) create mode 100644 gnu/packages/game-development.scm create mode 100644 gnu/packages/patches/bullet-add-fPIC-into-flags.patch diff --git a/gnu-system.am b/gnu-system.am index e828c01..d4c806e 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -96,6 +96,7 @@ GNU_SYSTEM_MODULES =3D \ gnu/packages/freeipmi.scm \ gnu/packages/ftp.scm \ gnu/packages/fribidi.scm \ + gnu/packages/game-development.scm \ gnu/packages/games.scm \ gnu/packages/gawk.scm \ gnu/packages/gcal.scm \ @@ -334,6 +335,7 @@ dist_patch_DATA =3D \ gnu/packages/patches/bigloo-gc-shebangs.patch \ gnu/packages/patches/binutils-ld-new-dtags.patch \ gnu/packages/patches/binutils-loongson-workaround.patch \ + gnu/packages/patches/bullet-add-fPIC-into-flags.patch \ gnu/packages/patches/cdparanoia-fpic.patch \ gnu/packages/patches/clucene-pkgconfig.patch \ gnu/packages/patches/cmake-fix-tests.patch \ diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-develo= pment.scm new file mode 100644 index 0000000..96a87e1 --- /dev/null +++ b/gnu/packages/game-development.scm @@ -0,0 +1,44 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2014 Tom=C3=A1=C5=A1 =C4=8Cech +;;; +;;; This file is part of 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 (a= t +;;; 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 (gnu packages game-development) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system cmake) + #:use-module (gnu packages)) + +(define-public bullet + (package + (name "bullet") + (version "2.82-r2704") + (source (origin + (method url-fetch) + (uri (string-append "https://bullet.googlecode.com/files/b= ullet-" + version ".tgz")) + (sha256 + (base32 "1lnfksxa9b1slyfcxys313ymsllvbsnxh9np06azkbgpfvmw= kr37")) + (patches (list (search-patch "bullet-add-fPIC-into-flags.p= atch"))))) + (build-system cmake-build-system) + (arguments '(#:tests? #f)) ; no 'test' target + (home-page "http://bulletphysics.org/") + (synopsis "3D physics engine library") + (description + "Bullet is a physics engine library usable for collision detection.= It=20 +is used in some video games and movies.") + (license zlib))) diff --git a/gnu/packages/patches/bullet-add-fPIC-into-flags.patch b/gnu/= packages/patches/bullet-add-fPIC-into-flags.patch new file mode 100644 index 0000000..6e27660 --- /dev/null +++ b/gnu/packages/patches/bullet-add-fPIC-into-flags.patch @@ -0,0 +1,13 @@ +diff -up bullet-2.82-r2704/CMakeLists.txt.orig bullet-2.82-r2704/CMakeLi= sts.txt +--- bullet-2.82-r2704/CMakeLists.txt.orig 2014-12-13 00:09:49.648710180 = +0100 ++++ bullet-2.82-r2704/CMakeLists.txt 2014-12-13 00:10:44.205708986 +0100 +@@ -17,6 +17,9 @@ IF (NOT CMAKE_BUILD_TYPE) + SET(CMAKE_BUILD_TYPE "Release") + ENDIF (NOT CMAKE_BUILD_TYPE)=20 +=20 ++SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fPIC") ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") ++ + SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") + #MESSAGE("CMAKE_CXX_FLAGS_DEBUG=3D"+${CMAKE_CXX_FLAGS_DEBUG}) +=20 --=20 2.0.4