From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QD5hKru3EmQJ0wAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 07:31:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sO9xKru3EmQlKAEA9RJhRA (envelope-from ) for ; Thu, 16 Mar 2023 07:31:23 +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 6A7BB42137 for ; Thu, 16 Mar 2023 07:31:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pch8l-0001Jt-9G; Thu, 16 Mar 2023 02:31: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 1pch8g-0001JT-Py for guix-patches@gnu.org; Thu, 16 Mar 2023 02:31: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 1pch8g-0003ON-I4 for guix-patches@gnu.org; Thu, 16 Mar 2023 02:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pch8g-0000Wh-4P for guix-patches@gnu.org; Thu, 16 Mar 2023 02:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62178] [PATCH v1 3/5] gnu: Add libgeramun. References: <00c2af06-fa2f-81d3-e3de-444eaf232732@disroot.org> In-Reply-To: <00c2af06-fa2f-81d3-e3de-444eaf232732@disroot.org> Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Mar 2023 06:31:02 +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: 62178@debbugs.gnu.org Received: via spool by 62178-submit@debbugs.gnu.org id=B62178.16789482361990 (code B ref 62178); Thu, 16 Mar 2023 06:31:02 +0000 Received: (at 62178) by debbugs.gnu.org; 16 Mar 2023 06:30:36 +0000 Received: from localhost ([127.0.0.1]:41050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pch8F-0000W2-Tm for submit@debbugs.gnu.org; Thu, 16 Mar 2023 02:30:36 -0400 Received: from knopi.disroot.org ([178.21.23.139]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pch8E-0000Vu-Dq for 62178@debbugs.gnu.org; Thu, 16 Mar 2023 02:30:35 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id D413D44563 for <62178@debbugs.gnu.org>; Thu, 16 Mar 2023 07:30:33 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JJNehkbJhJGX for <62178@debbugs.gnu.org>; Thu, 16 Mar 2023 07:30:32 +0100 (CET) Message-ID: <71f085a9-4ea6-a8b2-1f18-b7967f86d881@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678948232; bh=vv9XjR1HVYKTD114zweWmfUg8TLcDwn1YkVNBXEbWKs=; h=Date:To:From:Subject; b=gMPPLmqIh8CbfVdSUMIMx5jsExoYLSv+aoCJR0VtggLeZAs5NJ+MwoGwVZ2sfQYPp jrf4QyfkkO9mYrCC5cNmhqKg7teIdelsNUcnvEu1nt30XZPFQsLk5Ha48zaGVCicRP 0C6EgNzWusxj0qKE1ms3HXn3i21PgwKuRTVZsAyqWyVJ2oNY1wqThniyiKIMebZ11s 9Zzg7orzFVDPwHwOkISBm3VJLcB6eVGiSwzIspXP0fJjwwxTW0JWWgh3hivdNT4959 fWsf1pBEwYMcEYi79m/NUD7FwH+U2GlBMRvy3J/0L5jLyCIUG0UkXj3m0x8uThHSZ7 UOlXSAs0o8fKQ== Date: Thu, 16 Mar 2023 14:30:29 +0800 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches From: Adam Faiz via Guix-patches via 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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=gMPPLmqI; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678948283; a=rsa-sha256; cv=none; b=o6SZulaFRJmQ4xEQxNyIbFYMDOg97ElSalAqubSwWyk90GDw3idU05fi/wlhRezpWWU19z CrrBV6wCFWi0RoB80ZI3uAfR8gIrzm5WDVP4im1WadyvuuG7vEqPzG7kH/oaCH/JzInMgb IBdLoAUN6g7XqXKwq1rRDSusWiKOsGeF/yRozyyjYzi5OnI1VEQ4nfAtIqlkmW2Ns/EuTa SPnFo8gFSzCcE399g71dhXfz9vH7AZvxYyTZJa0Ke9X9aXBoe2nwSrrg1gaERsl2M98pIv qfUqBbwp6SK5nL1ysdhqUR3CMrsoP4Kr1ft2lDACyKi/gPheD5jWRTvmrNqkuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678948283; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=LVyK6EtbK96J7URLGjspx1wHsvJwNl9UaGUGC9MgPw0=; b=G0hFf0+t/zkwXt86J6/lpAFZP/P0wirqL7F/Xa8rBwXwgKuJ0goPH9X/gy9lp3l0/b5lkc n+UqmZUmcKcAxWV7/wdqtu2dHifHVMACmMsbxLeXU0gpVDcXaZPwsHLKU1IDzYuBSSRORe vTd+dMlWCRqgNK6o+/YKAdFvfvyjjk4fM/RG22gVjsGhMleNPoKJfpqN88ZN34Ul6bgc1v yHwuqNeFZGevWTbfcig5z3bhVonUogHZiUK9ALh8OFZ6h4axQiurIx1m6AMgEjSr0GeABV Wbpsj/BbJ4YezWa+ofMzl8kkmF5oHsq8wH4GTFR5GekELgpUk/bTzHkMsc4+9Q== X-Migadu-Spam-Score: -3.74 X-Spam-Score: -3.74 X-Migadu-Queue-Id: 6A7BB42137 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=gMPPLmqI; 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=pass (policy=none) header.from=gnu.org X-TUID: 6GkmCyxzx0BV From bffbe04a9c180de7e883f4c5b74c5041b7ee80f0 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <735f08bc3d271959685e03d761f5ac9039e5cfd3.1678947948.git.adam.faiz@disroot.org> References: <735f08bc3d271959685e03d761f5ac9039e5cfd3.1678947948.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Tue, 14 Mar 2023 14:02:58 +0800 Subject: [PATCH v1 3/5] gnu: Add libgeramun. * 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. --- gnu/local.mk | 1 + gnu/packages/game-development.scm | 41 ++++++++++ .../patches/libgeramun-add-makefile.patch | 80 +++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 gnu/packages/patches/libgeramun-add-makefile.patch diff --git a/gnu/local.mk b/gnu/local.mk index 76129c9d82..7396208a9b 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1382,6 +1382,7 @@ dist_patch_DATA = \ %D%/packages/patches/libffi-3.3-powerpc-fixes.patch \ %D%/packages/patches/libffi-float128-powerpc64le.patch \ %D%/packages/patches/libgeotiff-fix-tests-with-proj-9.1.1.patch \ + %D%/packages/patches/libgeramun-add-makefile.patch \ %D%/packages/patches/libobjc2-unbundle-robin-map.patch \ %D%/packages/patches/librime-fix-build-with-gcc10.patch \ %D%/packages/patches/libvirt-add-install-prefix.patch \ diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index cbededa8e4..021a206326 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2494,6 +2494,47 @@ (define-public libccd a.k.a. XenoCollide) as described in Game Programming Gems 7.") (license license:expat))) +(define-public libgeramun + (let ((commit "29668d33266a00fa730d8ee5a16893a86ee2d04d") + (revision "0")) + (package + (name "libgeramun") + (version (git-version "0.14" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/hydren/libgeramun") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nfsdyp3nnz33wxy54vnbbm50kr2y5h6q40kz6g1whz12lqmi79n")) + (patches + (search-patches "libgeramun-add-makefile.patch")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each + (lambda (file) + (install-file file "include/libgeramun")) + (find-files "." "\\.h(pp)?$")))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (delete 'configure)) + #:make-flags + #~(list (string-append "DESTDIR=" #$output) + "PREFIX="))) + (synopsis "Procedural platformer-game map generation library") + (description + "libgeramun is a set of stochastic, procedural platformer-game map +generation routines. +The routines are meant to produce maps with a Terraria-like look and feel.") + (home-page "https://gitlab.com/hydren/libgeramun") + (license license:gpl2+)))) + (define-public ode (package (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..b61e730526 --- /dev/null +++ b/gnu/packages/patches/libgeramun-add-makefile.patch @@ -0,0 +1,80 @@ +From 38f790a0526de3ca74480e8e3f7504ff648ba272 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-release/src_libs/libgeramun/subdir.mk +--- + Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 60 insertions(+) + create mode 100644 Makefile + +diff --git a/Makefile b/Makefile +new file mode 100644 +index 0000000..38608c1 +--- /dev/null ++++ b/Makefile +@@ -0,0 +1,60 @@ ++################################################################################ ++# Automatically-generated file. Do not edit! ++################################################################################ ++ ++# Add inputs and outputs from these tool invocations to the build variables ++CPP_SRCS += \ ++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 += \ ++brush.o \ ++cave.o \ ++debug.o \ ++generators.o \ ++midpoint_displacement.o \ ++miners.o \ ++preview_callback.o \ ++random_walk.o \ ++spring.o \ ++surf_replacer.o ++ ++SRCDIR ?= . ++INCLUDE_PATH ?= ${SRCDIR}/include ++PREFIX ?= /usr/local ++CFLAGS = -O3 -Wall -fPIC -c -fmessage-length=0 -MMD -MP ++ ++all: libgeramun.so ++ ++libgeramun.so: $(OBJS) $(USER_OBJS) ++ @echo 'Building target: $@' ++ @echo 'Invoking: GCC C++ Linker' ++ g++ -shared -o "libgeramun.so" $(OBJS) $(USER_OBJS) $(LIBS) ++ @echo 'Finished building target: $@' ++ @echo ' ' ++ ++install: all ++ install -d $(DESTDIR)$(PREFIX) ++ cp -r include $(DESTDIR)$(PREFIX) ++ install -d $(DESTDIR)$(PREFIX)/lib ++ install -m 644 libgeramun.so $(DESTDIR)$(PREFIX)/lib ++ ++%.o: %.cpp ++ @echo 'Building file: $<' ++ @echo 'Invoking: GCC C++ Compiler' ++ g++ -I${INCLUDE_PATH} $(CFLAGS) -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ @echo 'Finished building: $<' ++ @echo ' ' ++ ++clean: ++ rm $(wildcard *.o) libgeramun.so ++ ++ +-- +2.39.2 + -- 2.39.2