Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: MangoHud-nvidia-0.6.8
@ 2023-03-22  7:44 gmbeard
  2023-03-28 17:11 ` [PR PATCH] [Updated] " gmbeard
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gmbeard @ 2023-03-22  7:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

There is a new pull request by gmbeard against master on the void-packages repository

https://github.com/gmbeard/void-packages feature/MangoHud-nvidia
https://github.com/void-linux/void-packages/pull/42919

New package: MangoHud-nvidia-0.6.8
### Description
This packages MangoHud with the necessary build config to enable nVidia GPU stats. Because of the non-free license of the nVidia headers used in the source distribution, I've made the assumption that this must be treated in the same way as the `nvidia*` packages (i.e `nonfree`), hence the separate package.

This is essentially a straight clone of the existing MangoHud package, but uses a non-DFSG upstream.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86\_64-glibc
- I built this PR locally for these architectures:
  - x86\_64-musl


A patch file from https://github.com/void-linux/void-packages/pull/42919.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feature/MangoHud-nvidia-42919.patch --]
[-- Type: text/x-diff, Size: 2789 bytes --]

From 1b08444c6661996f3f1ab1d5a45263c8ef5c0607 Mon Sep 17 00:00:00 2001
From: Greg Beard <gmbeard@googlemail.com>
Date: Wed, 22 Mar 2023 07:28:46 +0000
Subject: [PATCH] New package: MangoHud-nvidia-0.6.8

---
 srcpkgs/MangoHud-nvidia/files/musl.patch | 22 +++++++++++++++++++
 srcpkgs/MangoHud-nvidia/template         | 28 ++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/MangoHud-nvidia/files/musl.patch
 create mode 100644 srcpkgs/MangoHud-nvidia/template

diff --git a/srcpkgs/MangoHud-nvidia/files/musl.patch b/srcpkgs/MangoHud-nvidia/files/musl.patch
new file mode 100644
index 000000000000..c11ac1b414c2
--- /dev/null
+++ b/srcpkgs/MangoHud-nvidia/files/musl.patch
@@ -0,0 +1,22 @@
+--- src/meson.build	2021-06-11 22:12:53.000000000 +0200
++++ -	2021-06-14 23:32:49.677413454 +0200
+@@ -3,16 +3,16 @@
+ # Needs prefix for configure_file()
+ if get_option('append_libdir_mangohud')
+   libdir_mangohud = join_paths(get_option('libdir'), 'mangohud')
+-  ld_libdir_mangohud = get_option('prefix') + '/\$LIB/mangohud/'
++  ld_libdir_mangohud = join_paths(get_option('prefix') ,get_option('libdir'), 'mangohud')
+ else
+   libdir_mangohud = get_option('libdir')
+-  ld_libdir_mangohud = get_option('prefix') + '/\$LIB/'
++  ld_libdir_mangohud = join_paths(get_option('prefix') ,get_option('libdir'))
+ endif
+ 
+ # For build.sh
+ if get_option('ld_libdir_prefix')
+   # FIXME derive from libdir
+-  ld_libdir_mangohud = get_option('prefix') + '/lib/mangohud/\$LIB/'
++  ld_libdir_mangohud = get_option('prefix') + '/lib/mangohud/lib'
+ endif
+ 
+ conf_data = configuration_data()
diff --git a/srcpkgs/MangoHud-nvidia/template b/srcpkgs/MangoHud-nvidia/template
new file mode 100644
index 000000000000..710eb11afb7b
--- /dev/null
+++ b/srcpkgs/MangoHud-nvidia/template
@@ -0,0 +1,28 @@
+# Template file for 'MangoHud-nvidia'
+pkgname=MangoHud-nvidia
+version=0.6.8
+revision=1
+build_style=meson
+configure_args="-Duse_system_vulkan=enabled -Dwith_xnvctrl=disabled
+ -Dwith_nvml=enabled -Duse_system_spdlog=enabled"
+hostmakedepends="Vulkan-Headers python3-Mako glslang pkg-config"
+makedepends="libglvnd-devel dbus-devel vulkan-loader Vulkan-Headers
+ spdlog"
+short_desc="Vulkan and OpenGL overlay for monitoring FPS, temperatures and more"
+maintainer="gmbeard <gmbeard@googlemail.com>"
+license="MIT"
+homepage="https://github.com/flightlessmango/MangoHud"
+distfiles="https://github.com/flightlessmango/MangoHud/releases/download/v${version}/MangoHud-v${version}-Source.tar.xz"
+checksum=@b5ddeefbd161a72a73faf4781f981942cd9a1befcdbba177d13664bb6921f545
+conflicts=MangoHud
+repository=nonfree
+
+post_patch() {
+	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+		patch -Np0 -i ${FILESDIR}/musl.patch
+	fi
+}
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-02-12  1:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22  7:44 [PR PATCH] New package: MangoHud-nvidia-0.6.8 gmbeard
2023-03-28 17:11 ` [PR PATCH] [Updated] " gmbeard
2023-03-28 17:12 ` gmbeard
2023-04-15 10:41 ` [PR PATCH] [Updated] " gmbeard
2023-04-27  5:55 ` [PR PATCH] [Updated] New package: MangoHud-nvidia-0.6.9 gmbeard
2023-04-27  6:03 ` gmbeard
2023-04-27  6:06 ` [PR PATCH] [Updated] " gmbeard
2023-07-27  1:46 ` github-actions
2023-07-28 13:15 ` gmbeard
2023-10-28  1:44 ` github-actions
2023-10-28  6:23 ` gmbeard
2024-01-28  1:45 ` github-actions
2024-02-12  1:44 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).