From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mPraABnOEGSUjQAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 20:42:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id APQBABnOEGSFXwEAG6o9tA (envelope-from ) for ; Tue, 14 Mar 2023 20:42:17 +0100 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 44F2AA5D for ; Tue, 14 Mar 2023 20:42:16 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jBvAQzqf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678822936; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=w1vm4kByx4T4XR34n4Medjold3wE02ocCeTG1dOHcWw=; b=aurasi/p6G5qwlgCXxs7uZd1hFm5xaGkxlDiw6gFLoC5mcFN0cApVDI0dwATr1IvI0ZuzP VRExTicka3MORh6Al1DmZweEugQ82NzResbLBF47WV/ynwmueM8M8a2hjR9IAvf+JpMosJ 0bKz04Mq4Ow1QpGawkaDzsb8QZ4GpTGT8MANdGewjGp4AIqy+4MZDlinH8huGIKnF0n9F2 5NVQkyebZ64CJVkWje7rL+wF6W0dUD1ornty1N+UQ8nTvBffUmWkvUtk7CcNmYhjfuuAZ4 14kHUgR9GmqORY4hdyUoqJo4/qwLMpGtJDnfa8i0KYuomLrEcao8/HlEFb55mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jBvAQzqf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678822936; a=rsa-sha256; cv=none; b=o/IqGCQ+2fYYekzxYvDIB4ECqwJV9b+dL5bt/OreWOwnSbKt/IzVVgIlmPDHlpwoXjyhX7 6r/ZbZyo0HjLL9ehliFJrTiaFdhAkT3qW1mCAZ4mQj3pSEnJnikp/uJmwQ31xNE8cYpakH NcDULGR3vQC8zwGfUbS6pnnYU1oPs7Id+KPnLu3e2eD7ZHJ8ejwR5sxssZ3mnNli9ZOhLi zSLLtvBfS+rVCNiD0CSEnUNaN8LDkgRl/hyapdecJDDHFnnTG1KJwm+f6sb7KowxjOyTWO yXtJmaY2AV8FhIQegppngDpS1cCESHyctli2ymY3c81VaH/kaPg0tAtxTxTQjQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcAX8-0007c7-Q8; Tue, 14 Mar 2023 15:42:07 -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 1pcAX4-0007be-Mh for guix-patches@gnu.org; Tue, 14 Mar 2023 15:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcAX4-0007M1-98 for guix-patches@gnu.org; Tue, 14 Mar 2023 15:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcAX3-0001rr-VH for guix-patches@gnu.org; Tue, 14 Mar 2023 15:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62178] [PATCH 3/5] gnu: Add libgeramun. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Mar 2023 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62178 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Adam Faiz , 62178@debbugs.gnu.org Cc: iyzsong@envs.net Received: via spool by 62178-submit@debbugs.gnu.org id=B62178.16788229047155 (code B ref 62178); Tue, 14 Mar 2023 19:42:01 +0000 Received: (at 62178) by debbugs.gnu.org; 14 Mar 2023 19:41:44 +0000 Received: from localhost ([127.0.0.1]:38499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcAWl-0001rK-DU for submit@debbugs.gnu.org; Tue, 14 Mar 2023 15:41:44 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:33705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcAWi-0001r6-KS for 62178@debbugs.gnu.org; Tue, 14 Mar 2023 15:41:42 -0400 Received: by mail-ed1-f65.google.com with SMTP id cn21so36457956edb.0 for <62178@debbugs.gnu.org>; Tue, 14 Mar 2023 12:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678822894; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=w1vm4kByx4T4XR34n4Medjold3wE02ocCeTG1dOHcWw=; b=jBvAQzqfT3DX3GLtXHmCEoYDkjFcC2CJVRhMa0wHC7aleKRrMf3Lj/Ozc74bCRdXk0 5ePGO/RT92Fttft5JRzm5Eb90PvMsUGEBzGNuBKMnfTxt//ghavyeQ1elgm/NNbLWgXI dDkN0G4bWsp24d9fZG39fwJBdbKJmBqL/nxG6UL5SYuvYZjIaOEG8/Q8wYEJDEkswb0F lLvgUU+ktDNe0WD9L0G+Wt2MNoyiHt6LPkmMS4SPY+RrKy44TvDbhYEJt0/GmnOkROsv kEVT4/PQv39fJgRAXO7PfHQ6G2hzxVci+SzA5BzSBSVSg723G3TLcYPHWaTcRQ35i6j7 //qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678822894; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w1vm4kByx4T4XR34n4Medjold3wE02ocCeTG1dOHcWw=; b=5/Y91RcZaU5KqB3xLl12MyXydpdqQIyIr6Ce0TaHpeb8fzXjbzVuT5SzQlRqUG3aM2 V9IswbiDv9x8Ai5dq6jI97tXzBcOdUAox7QIPJdxM6Ki3vD0eT4XMtpbW3omxw8pIySo 4upNFWE+73O/4yGNb8vhi7+OeT4A3G9nvCIisS5aRhKvvIU9QZO2sWWKjLUqAG1MrdMz FxIaXBVGcx2/kfWmxQZIL9rgO+p8eq73HWkorIfrdcUC0AKAjOTsRFkcALdnpnHkIw8d kBP5OlvbwEGYZ8TN3QCR7SFsKolB5j5Ipu2BWsN0krj36IuMBqYuK2X8wu4j8Pn3Nw5y ZtBQ== X-Gm-Message-State: AO0yUKWza72YLktfmXs1y/qghxqSrWDI0I+KgjsfWeK3QHr/MqN/Q4Nu C3pGFELj6YmSKVLlUbCIGdg= X-Google-Smtp-Source: AK7set/jwUkeChq74zTzi/WRxBWgDz9eF5NnXhOPSlJeDBWFAbHGGp34wCjitU82BhUh7ORd+J+uQA== X-Received: by 2002:a17:906:f85:b0:909:3c55:a1b3 with SMTP id q5-20020a1709060f8500b009093c55a1b3mr3612968ejj.38.1678822894358; Tue, 14 Mar 2023 12:41:34 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id mh19-20020a170906eb9300b009200601ea12sm1504370ejb.208.2023.03.14.12.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 12:41:33 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 14 Mar 2023 20:41:32 +0100 In-Reply-To: <4a5cec1d-edac-a65d-c010-5a969c365e5b@disroot.org> References: <4a5cec1d-edac-a65d-c010-5a969c365e5b@disroot.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 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: X-Migadu-Queue-Id: 44F2AA5D X-Spam-Score: -3.22 X-Migadu-Spam-Score: -3.22 X-Migadu-Scanner: scn0.migadu.com 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-TUID: 9qipwqx75vQZ Am Dienstag, dem 14.03.2023 um 15:09 +0800 schrieb Adam Faiz: > =C2=A0From 03a5262a846175be5ce4c8e1b9ea6d199a46b4fa Mon Sep 17 00:00:00 > 2001 > Message-Id: > <03a5262a846175be5ce4c8e1b9ea6d199a46b4fa.1678775193.git.adam.faiz@di > sroot.org> > In-Reply-To: > References: > From: AwesomeAdam54321 > Date: Tue, 14 Mar 2023 14:02:58 +0800 > Subject: [PATCH 3/5] gnu: Add libgeramun. >=20 > * gnu/packages/game-development.scm (libgeramun): New variable. > * gnu/packages/patches/libgeramun-Add-Makefile.patch: New file. > * gnu/local.mk (dist_patch_DATA): Register it. > --- > =C2=A0 gnu/local.mk=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2= =A0 1 + > =C2=A0 gnu/packages/game-development.scm=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 41 ++++++++++ > =C2=A0 .../patches/libgeramun-Add-Makefile.patch=C2=A0=C2=A0=C2=A0=C2=A0 = | 79 > +++++++++++++++++++ > =C2=A0 3 files changed, 121 insertions(+) > =C2=A0 create mode 100644 gnu/packages/patches/libgeramun-Add- > Makefile.patch >=20 > diff --git a/gnu/local.mk b/gnu/local.mk > index 1bdbddce5e..228ec92bb1 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -1382,6 +1382,7 @@ dist_patch_DATA > =3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/libffi-3.3-powerpc-fixes.patch=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/libffi-float128-powerpc64le.patch= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/libgeotiff-fix-tests-with-proj- > 9.1.1.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > +=C2=A0 %D%/packages/patches/libgeramun-Add-Makefile.patch=C2=A0=C2=A0=C2= =A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/libobjc2-unbundle-robin-map.patch= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/librime-fix-build-with-gcc10.patc= h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > =C2=A0=C2=A0=C2=A0 %D%/packages/patches/libvirt-add-install-prefix.patch= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0\ > diff --git a/gnu/packages/game-development.scm b/gnu/packages/game- > development.scm > index f86793fda0..57bffa9b88 100644 > --- a/gnu/packages/game-development.scm > +++ b/gnu/packages/game-development.scm > @@ -2494,6 +2494,47 @@ (define-public libccd > =C2=A0 a.k.a. XenoCollide) as described in Game Programming Gems 7.") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (license license:expat))) > =C2=A0=20 > +(define-public libgeramun > +=C2=A0 (let ((commit "29668d33266a00fa730d8ee5a16893a86ee2d04d") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (revision "0")) > +=C2=A0 (package > +=C2=A0=C2=A0=C2=A0 (name "libgeramun") > +=C2=A0=C2=A0=C2=A0 (version (git-version "0.14" revision commit)) > +=C2=A0=C2=A0=C2=A0 (source (origin > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (method git-fetch) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (uri (git-reference > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (url "https://gitlab.com/hydren/= libgeramun") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (commit commit))) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (file-name (git-file-name name version)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (sha256 > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (base32 > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 > "1nfsdyp3nnz33wxy54vnbbm50kr2y5h6q40kz6g1whz12lqmi79n")) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (patches > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (search-patches "libgeramun-Add-Makefile.patch")) We prefer not to add too many capital letters. > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (modules '((guix build utils))) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 (snippet > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 #~(begin > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (for-each > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda (file) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (install-file file "= include/libgeramun")) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (find-files "." "\\.h")))))) This only matches the .hpp files by accident. Use "\\.h(pp)?$" instead. > +=C2=A0=C2=A0=C2=A0 (build-system gnu-build-system) > +=C2=A0=C2=A0=C2=A0 (arguments > +=C2=A0=C2=A0=C2=A0=C2=A0 (list #:tests? #f ; no tests > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:phases > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #~(modify-p= hases %standard-phases > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (delete 'configure)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:make-flag= s > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #~(list (st= ring-append "DESTDIR=3D" #$output) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "PREFIX=3D"))) > +=C2=A0=C2=A0=C2=A0 (synopsis "Procedural platformer-game map generation = library") > +=C2=A0=C2=A0=C2=A0 (description > +=C2=A0=C2=A0=C2=A0=C2=A0 "libgeramun is a set of > +stochastic, procedural platformer-game map generation routines. > +=C2=A0 The routines are meant to produce maps with a Terraria-like look > and feel.") Don't break lines abruptly. Also, you don't need to indent the beginning of sentences. > +=C2=A0=C2=A0=C2=A0 (home-page "https://gitlab.com/hydren/libgeramun") > +=C2=A0=C2=A0=C2=A0 (license license:gpl2+)))) > + > =C2=A0 (define-public ode > =C2=A0=C2=A0=C2=A0 (package > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (name "ode") > diff --git a/gnu/packages/patches/libgeramun-Add-Makefile.patch > b/gnu/packages/patches/libgeramun-Add-Makefile.patch > new file mode 100644 > index 0000000000..01a94d6422 > --- /dev/null > +++ b/gnu/packages/patches/libgeramun-Add-Makefile.patch > @@ -0,0 +1,79 @@ > +From ac239d7be2755dc28fa831ba15a0fb318848a5a6 Mon Sep 17 00:00:00 > 2001 > +From: AwesomeAdam54321 > +Date: Sun, 12 Mar 2023 01:30:46 +0800 > +Subject: [PATCH] libgeramun: Add Makefile. > + > +Adapted from > https://gitlab.com/hydren/terrarium/-/raw/master/build/linux-gcc-sdl2-rel= ease/src_libs/libgeramun/subdir.mk > +--- > + Makefile | 59 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > + 1 file changed, 59 insertions(+) > + create mode 100644 Makefile > + > +diff --git a/Makefile b/Makefile > +new file mode 100644 > +index 0000000..8d37ce4 > +--- /dev/null > ++++ b/Makefile > +@@ -0,0 +1,59 @@ > ++################################################################### > ############# > ++# Automatically-generated file. Do not edit! > ++################################################################### > ############# > ++ > ++# Add inputs and outputs from these tool invocations to the build > variables > ++CPP_SRCS +=3D \ > ++brush.cpp \ > ++cave.cpp \ > ++debug.cpp \ > ++generators.cpp \ > ++midpoint_displacement.cpp \ > ++miners.cpp \ > ++preview_callback.cpp \ > ++random_walk.cpp \ > ++spring.cpp \ > ++surf_replacer.cpp > ++ > ++OBJS +=3D \ > ++brush.so \ > ++cave.so \ > ++debug.so \ > ++generators.so \ > ++midpoint_displacement.so \ > ++miners.so \ > ++preview_callback.so \ > ++random_walk.so \ > ++spring.so \ > ++surf_replacer.so Is it really necessary to make all of the objects shared? > ++SRCDIR ?=3D . > ++INCLUDE_PATH ?=3D ${SRCDIR}/include > ++PREFIX ?=3D /usr/local > ++ > ++all: libgeramun.so > ++ > ++libgeramun.so: $(OBJS) $(USER_OBJS) > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo 'Building target: $@' > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo 'Invoking: GCC C++ Linker' > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0g++ -shared -o "libgeramun.so" $(OB= JS) $(USER_OBJS) $(LIBS) > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo 'Finished building target: $@= ' > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo ' ' > ++ > ++install: all > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0install -d $(DESTDIR)$(PREFIX) > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cp -r include $(DESTDIR)$(PREFIX) > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0install -d $(DESTDIR)$(PREFIX)/lib > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0install -m 644 libgeramun.so $(DEST= DIR)$(PREFIX)/lib > ++ > ++%.so: %.cpp > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo 'Building file: $<' > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@echo 'Invoking: GCC C++ Compiler' > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0g++ -I${INCLUDE_PATH} -O3 -Wall -sh= ared -fPIC -c -fmessage- > length=3D0 -MMD -MP -MF"$(@:%.o=3D%.d)" -MT"$(@)" -o "$@" "$<" I think some of this ought to be abstracted into CFLAGS and similar variables. Also note that a Makefile isn't strictly needed. You could=C2=A0just as well (apply invoke #$(cc-for-target) "-shared" "-o" "libgeramun.so" ;; some more CFLAGS (find-files "." "\\.cpp")) =20 Cheers