From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6PsWLVcWH2e3HgAAe85BDQ:P1 (envelope-from ) for ; Mon, 28 Oct 2024 04:43:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6PsWLVcWH2e3HgAAe85BDQ (envelope-from ) for ; Mon, 28 Oct 2024 05:43:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=O9o5qISC; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=UTDSCmef; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730090583; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QLKoNGm/FyeoFi9UscAGg0/nYg+qH3nXFlTokxsUCZE=; b=olsP/R0ABx9+24XQbQN/+97M3Tttu8zxdlg07oHfaKoOLwpEmWb0N/gchymlrz3xeFz9Ai ywYAPjSESEpDLaAbN0hw9wPZITT95mcqjXxT70P+04x1FKzrtKVczLllkBFAtewb2VT82N h2RLroKV1875zLsMbcw0g66UhXhNtPsBih8gLBZWlzR5fzgR9956ZHej9qEEB5FYNRokAq jPXin3wPhWmdDypCKW1r4Em66mx7aNP094iaLlBrZkGnRe7YArnieODu9w6b1Akv1KnSIh R5XGOnTnFIhdsRvyz3tsjhVwDOkdH+f933atHuKgfsg/d0nm8QsGubyN4qvmAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=O9o5qISC; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=UTDSCmef; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730090583; a=rsa-sha256; cv=none; b=lfxiepY77DNddtoImmm4HTLBRHcXUuu5YKqOxBSKzrIkUKWtt+ld7yXMUAJ63TbW3Z/2hX hQ9+r9U1GGr2H4SRku5muwUPeu11HkVGfMKog9nXF73YlwDakjinp2hKjDlYcz2SpLqAyf fwSMkYzpDOuS1bukTG1srUrEJouhQqbW2UvftGkSnDK7oP5jY8knXo4Uq1n98BCWclWHri JhCK2bIjmW2ZLbrMxUKWtic2RFPP0NBuXrjjZYmk0DwxyFniOkDni/eZNKdaurEbBJbywL YCl0/LtY8VHIpLwA+Jtw1vUoonBmMOYBaIWjARsGT4wZP8Zte+5VsHn4ueUAYQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 44DA2458D6 for ; Mon, 28 Oct 2024 05:43:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5HaK-0007tA-Kc; Mon, 28 Oct 2024 00:42:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5HaI-0007sT-H5 for guix-patches@gnu.org; Mon, 28 Oct 2024 00:42:30 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5HaG-00056H-S8 for guix-patches@gnu.org; Mon, 28 Oct 2024 00:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=QLKoNGm/FyeoFi9UscAGg0/nYg+qH3nXFlTokxsUCZE=; b=O9o5qISC5CZWhu+Ba3oTd4RCr0DAgRlwls9gI81izRxdiNqmkYTkQBVLZmTRRsGsO5lk473DHMpWKj9tp0FpSr4hDCkRlJkDAwmYEUJD7F4pVORxMdeaxOUY+YNtyoRk7nrD3/j0AM5+R6r87mmsmmty40rE6mO+9SOiNu+YtbX1jpG8HliDfkKX9TZbCkeEt5f2s2fmb+fEk+URKOGjceI8mDGJaqO6XJROZp07iOW3O7dvIgXKC1Q6t9YDPVj6D4sfPHTDoI/jReapbGqcMOU4L8JdCarpwmdypCml6MmGb8ouB5KcL4bFRPlvTkBSGkYLlcExYMjMd7Rl76XMQg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5Hap-0006Lc-15; Mon, 28 Oct 2024 00:43:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74054] [PATCH 3/3] gnu: Add speed-dreams. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Mon, 28 Oct 2024 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74054 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74054@debbugs.gnu.org Cc: Maxim Cournoyer , Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 74054-submit@debbugs.gnu.org id=B74054.173009057424363 (code B ref 74054); Mon, 28 Oct 2024 04:43:02 +0000 Received: (at 74054) by debbugs.gnu.org; 28 Oct 2024 04:42:54 +0000 Received: from localhost ([127.0.0.1]:50391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5Hag-0006Kt-5X for submit@debbugs.gnu.org; Mon, 28 Oct 2024 00:42:54 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:61538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5Hab-0006KS-4y for 74054@debbugs.gnu.org; Mon, 28 Oct 2024 00:42:50 -0400 Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20c7ee8fe6bso31557285ad.2 for <74054@debbugs.gnu.org>; Sun, 27 Oct 2024 21:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730090472; x=1730695272; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QLKoNGm/FyeoFi9UscAGg0/nYg+qH3nXFlTokxsUCZE=; b=UTDSCmefSrBRBRrZBN976MGNe3OVeSj0VjtBi1wbxAYNJ5XA59jksfYhgXqvAM+XSX wcDAHgOAFs/mLcv21sQdTzJ3qiOR8bi+6wjN+V+ZIhe1BP0xGxfv+fMWe/JUPcWgx/vR JwkN5mMZqM3mgkw0DyD7RSguHHrUl8gDXUkpL292e18bHqMm5Wm3KN0+vZNWKFvQ2YmV B5yl3wurVezuKugXhw8ergKAtPxTNtUTz+s7r6Jr93VTkrAx4i8wUj8zg0usyawGDBdQ 9cFVL18zP8S6AIKxLUkinKQ7BH10c2z0KGI/pHX4zRadfwBj3RihJ+SFhrFVeoiS3t7y 39+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730090472; x=1730695272; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QLKoNGm/FyeoFi9UscAGg0/nYg+qH3nXFlTokxsUCZE=; b=J5Es0FNnuBN3TzF97tkBXoTbFgw5E20F+g3Gs7/kyHORZ3lqJNzwmOIxwPztBUSHZs NVT5U0ORBMx+hwvhCysywrkqusQkrjGR9cOcN45uLZSIrkIiLLHkqpFT2bl2d3frqsfr k0XGYM0neTwN2wawKmDICTn4+E9TN9BAxzOdVs6+T5VZMbDybhaJmFdohxXc/52dvgfs XzK2iAYxh3NBiXy3v/3Lf/Vpq3TC2D9veqP10cl3eqYMfBGFB3pLHeuOjTsqcKlZZ5k7 b0vMb9K7KFOkarvrm5/YqSqsM7jXxyrQIHaLQqY2LekIdZYu3S/MgsVqOtdvAMmU0aZN sdgw== X-Gm-Message-State: AOJu0Yz+cwgDziVva8OTkn1TZYQmNg5N6m8Pd0meQ81XgftkQOAJu0Ge WztuBrCKckK8iC8V1QOIGosl1v3XAlF9EpRUfYOx1YZWPlwMKjVs6Bmrag== X-Google-Smtp-Source: AGHT+IEFUppfKHYzeqj0zEw2+7ClGOHQMkvl1RJXq/gJG9Xt4pOantJAh0X6u4HqObtPUYvYKJzj1g== X-Received: by 2002:a17:902:ea0e:b0:20d:27f8:d72a with SMTP id d9443c01a7336-210c6cd6531mr98372765ad.61.1730090471716; Sun, 27 Oct 2024 21:41:11 -0700 (PDT) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bbf702f1sm42612985ad.105.2024.10.27.21.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 21:41:11 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 28 Oct 2024 12:35:17 +0900 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 5.35 X-Spam-Score: 5.35 X-Migadu-Queue-Id: 44DA2458D6 X-TUID: BNzs0YVoI/3L * gnu/packages/games.scm (speed-dreams): New variable. (speed-dreams-version, speed-dreams-svn-revision): New variables. (speed-dreams-source-tarball): New procedure. (speed-dreams-base-tarball, speed-dreams-more-hq-cars-and-tracks-tarball) (speed-dreams-wip-cars-and-tracks-tarball) (speed-dreams-unmaintained-tarball): New variable. Change-Id: Id14f3556d47a80c508177940f959448520b406fc --- gnu/packages/games.scm | 122 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 64b6b0941a..be96ed895b 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -8964,6 +8964,128 @@ (define-public endless-sky license:cc-by-sa4.0 license:public-domain)))) +(define speed-dreams-version "2.3.0") +(define speed-dreams-svn-revision "8786") +(define (speed-dreams-source-tarball name sha256sum) + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/speed-dreams/" + speed-dreams-version "/" + "speed-dreams-src-" name "-" speed-dreams-version "-r" + speed-dreams-svn-revision ".tar.xz")) + (sha256 (base32 sha256sum)))) + +;;; We use the release tarballs instead of the SVN repository for their +;;; reduced weight (the tarballs do not provide the sources of the 3D models +;;; used, which are heavy, for example). +(define speed-dreams-base-tarball ;about 240 MiB + (speed-dreams-source-tarball + "base" "190480qzkllykl07s6bxd5wdbjgavs7haw6mk0hgdm7bs6rqqk0d")) + +(define speed-dreams-hq-cars-and-tracks-tarball ;about 670 MiB + (speed-dreams-source-tarball + "hq-cars-and-tracks" "16zcgwax3n0gf79hw1dg42lzsyxbnxfw6hjxdi919q5hxgm9cgsr")) + +(define speed-dreams-more-hq-cars-and-tracks-tarball ;about 760 MiB + (speed-dreams-source-tarball + "more-hq-cars-and-tracks" + "1acwiacf77qk5azyg3bbxsydk3wsp5fvgwwnhxpk273mwszjkh56")) + +;;; Although these are marked as 'WIP', the game throws (non-fatal) errors +;;; when it fails finding some "drivers" included within this pack. +(define speed-dreams-wip-cars-and-tracks-tarball ;about 400 MiB + (speed-dreams-source-tarball + "wip-cars-and-tracks" + "0wqd9bpis9bg87rsqk0dyvljax4zrp9h57mz7z3zrn6fayl1nh1q")) + +;;; This is to allow selecting the legacy Simu V2 engine (configurable in the +;;; game options). +(define speed-dreams-unmaintained-tarball ;about 60 KiB + (speed-dreams-source-tarball + "unmaintained" "1cxcrjm2508najpz2b65i8gxgvgiq7fcp13xvicpiqp6xhq3hsyi")) + +(define-public speed-dreams + (package + (name "speed-dreams") + (version speed-dreams-version) + (source speed-dreams-base-tarball) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f ;no test suite + #:build-type "Release" + #:configure-flags + #~(list + "-DOPTION_OFFICIAL_ONLY=ON" ;build with content + (string-append "-DSD_BINDIR=" #$output "/bin") ;instead of 'games' + (string-append "-DSD_DATADIR=" #$output "/share/speed-dreams-2") + ;; Libdir defaults to a 'lib64/games' prefix. + (string-append "-DSD_LIBDIR=" #$output "/lib/speed-dreams-2") + ;; Use system-provided Expat and FreeSOLID + ;; libraries instead of the bundled ones. + "-DOPTION_3RDPARTY_EXPAT=ON" + "-DOPTION_3RDPARTY_SOLID=ON" + ;; Drivers and other shared objects are linked to private/internal + ;; shared libraries; have their location on the RUNPATH to satisfy + ;; the validate-runpath phase. + (string-append "-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-rpath=" + #$output "/lib/speed-dreams-2/lib") + ;; The following flag is to avoid bogus RUNPATH warnings from the + ;; validate-runpath phase; without it, -rpath links referring to the + ;; build directory would be baked in driver modules. + "-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'extract-cars-and-tracks-data + (lambda _ + ;; XXX: The current working directory is inside the cmake/ + ;; sudbirectory following the unpack phase, for some reason. + (chdir "..") + (invoke "tar" "-xvf" #$speed-dreams-hq-cars-and-tracks-tarball) + (invoke "tar" "-xvf" #$speed-dreams-more-hq-cars-and-tracks-tarball) + (invoke "tar" "-xvf" #$speed-dreams-wip-cars-and-tracks-tarball) + (invoke "tar" "-xvf" #$speed-dreams-unmaintained-tarball))) + (add-after 'install 'install-desktop-entry + (lambda* (#:key outputs #:allow-other-keys) + (make-desktop-entry-file + (string-append #$output + "/share/applications/speed-dreams.desktop") + #:name "Speed Dreams 2" + #:comment "3D racing cars simulator" + #:exec (search-input-file outputs "bin/speed-dreams-2") + #:icon (search-input-file + outputs "share/speed-dreams-2/data/icons/icon.png") + #:categories '("Game" "Simulation"))))))) + (native-inputs + (list pkg-config)) + (inputs + (list curl + enet + expat + freeglut + freesolid + freetype + libjpeg-turbo + libogg + libpng + libvorbis + openal + openscenegraph + plib + sdl2 + sdl2-mixer + zlib)) + (home-page "https://sourceforge.net/projects/speed-dreams/") + (synopsis "Car racing simulator") + (description "Speed Dreams is a car racing simulator featuring +high-quality 3D graphics and an accurate physics engine, aiming for maximum +realism. Initially forked from TORCS, it features improvements to the +graphics and physics simulation, and supports modern input methods such as +gamepads by use of the SDL library. It features more than 20 tracks and more +than 80 cars to race with.") + (license (list license:gpl2+ ;game code + license:lal1.3)))) ;assets + (define-public stepmania (package (name "stepmania") -- 2.46.0