Github messages for voidlinux
 help / color / mirror / Atom feed
From: twingofan <twingofan@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Dev
Date: Tue, 31 Jan 2023 10:44:41 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41987@inbox.vuxu.org> (raw)

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

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

https://github.com/twingofan/void-packages-twingo dev
https://github.com/void-linux/void-packages/pull/41987

Dev
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- 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, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dev-41987.patch --]
[-- Type: text/x-diff, Size: 5714 bytes --]

From 84537b727ad819ebb36dac220fb1cfb887b5ae00 Mon Sep 17 00:00:00 2001
From: twingofan <75864254+twingofan@users.noreply.github.com>
Date: Tue, 31 Jan 2023 03:39:17 -0600
Subject: [PATCH 1/2] new cockatrice template

---
 srcpkgs/cockatrice/template | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 srcpkgs/cockatrice/template

diff --git a/srcpkgs/cockatrice/template b/srcpkgs/cockatrice/template
new file mode 100644
index 000000000000..032c4802e2f7
--- /dev/null
+++ b/srcpkgs/cockatrice/template
@@ -0,0 +1,15 @@
+# Template file for 'cockatrice'
+pkgname=cockatrice
+version=2.8.0
+revision=1
+_reldate=2021-01-26
+wrksrc="Cockatrice-${_reldate}-Release-${version}"
+build_style=cmake
+hostmakedepends="protobuf qt5-host-tools qt5-qmake"
+makedepends="protobuf-devel liblzma-devel qt5-devel qt5-multimedia-devel qt5-svg-devel qt5-tools-devel qt5-websockets-devel"
+short_desc="Program for playing tabletop card games over a network"
+maintainer="NuclearPine <nuclearpine.h3nbw@aleeas.com>"
+license="GPL-2.0-only"
+homepage="https://cockatrice.github.io"
+distfiles="https://github.com/Cockatrice/Cockatrice/archive/refs/tags/${_reldate}-Release-${version}.tar.gz"
+checksum=fbf908138e40b20529ebdc27b3b37d63891bf6a91f660be694407a8e57471e79

From 6e73a52e8d63e276f501ba2cec5c23a6bcc827d6 Mon Sep 17 00:00:00 2001
From: twingofan <75864254+twingofan@users.noreply.github.com>
Date: Tue, 31 Jan 2023 03:43:29 -0600
Subject: [PATCH 2/2] retroarch with native slang

---
 srcpkgs/retroarch-slang/template | 112 +++++++++++++++++++++++++++++++
 1 file changed, 112 insertions(+)
 create mode 100644 srcpkgs/retroarch-slang/template

diff --git a/srcpkgs/retroarch-slang/template b/srcpkgs/retroarch-slang/template
new file mode 100644
index 000000000000..2d2f04f32002
--- /dev/null
+++ b/srcpkgs/retroarch-slang/template
@@ -0,0 +1,112 @@
+# Template file for 'retroarch'
+pkgname=retroarch
+version=1.14.0
+revision=1
+build_style=configure
+configure_args="--prefix=/usr --sysconfdir=/etc --enable-networking
+ --enable-udev --disable-builtinflac 
+ --disable-builtinmbedtls --disable-builtinzlib
+ $(vopt_enable ffmpeg) $(vopt_enable flac) $(vopt_enable glslang) $(vopt_enable jack)
+ $(vopt_enable pulseaudio pulse) $(vopt_enable qt5 qt)
+ $(vopt_enable sdl2) $(vopt_enable vulkan) $(vopt_enable wayland) $(vopt_enable x11)"
+conf_files="/etc/retroarch.cfg"
+hostmakedepends="pkg-config"
+makedepends="alsa-lib-devel eudev-libudev-devel freetype-devel libusb-devel libxkbcommon-devel
+ mbedtls-devel zlib-devel $(vopt_if ffmpeg ffmpeg-devel) $(vopt_if flac libflac-devel)
+ $(vopt_if glslang 'glslang-devel SPIRV-Tools-devel') $(vopt_if jack jack-devel)
+ $(vopt_if pulseaudio pulseaudio-devel)
+ $(vopt_if qt5 qt5-devel) $(vopt_if sdl2 SDL2-devel) $(vopt_if vulkan vulkan-loader)
+ $(vopt_if x11 'libXext-devel libXinerama-devel libXv-devel libXxf86vm-devel')"
+depends="$(vopt_if vulkan vulkan-loader) $(vopt_if x11 xdg-utils)"
+short_desc="Official reference frontend for the libretro API"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-3.0-or-later"
+homepage="https://www.retroarch.com/"
+changelog="https://raw.githubusercontent.com/libretro/RetroArch/master/CHANGES.md"
+distfiles="https://github.com/libretro/RetroArch/archive/v$version.tar.gz"
+checksum=aa4d579bfceb43450725171f594f69877f007a8892cb46678f8b62935c4de635
+
+build_options="ffmpeg flac glcore gles2 glslang jack neon pulseaudio qt5 sdl2 vulkan wayland x11"
+build_options_default="ffmpeg flac glcore glslang pulseaudio sdl2 vulkan wayland x11"
+
+desc_option_glcore="Enable support for OpenGL 3.2 core+ and OpenGL ES 3+"
+desc_option_glslang="Enable support for GLSL shaders"
+desc_option_neon="Enable support for ARM Neon SIMD extension"
+
+vopt_conflict glcore gles2 # gles2 disables glcore support
+
+if [ "$build_option_gles2" ]; then
+	configure_args+=" --enable-opengles --enable-opengles3"
+else
+	configure_args+=" --disable-opengles --disable-opengles3"
+fi
+
+if [ "$build_option_glcore" ]; then
+	if [ -z "$build_option_glslang" ]; then
+		msg_error "$pkgname: 'glcore' option requires 'glslang'.\n"
+	fi
+	configure_args+=" --enable-opengl_core"
+else
+	configure_args+=" --disable-opengl_core"
+fi
+
+if [ "$build_option_gles2" -o "$build_option_glcore" ]; then
+	configure_args+=" --enable-egl --enable-kms"
+	makedepends+=" MesaLib-devel"
+fi
+
+if [ "$build_option_qt5" ]; then
+	if [ "$CROSS_BUILD" ]; then
+		hostmakedepends+=" qt5-host-tools"
+	fi
+fi
+
+if [ "$build_option_vulkan" ]; then
+	if [ -z "$build_option_glslang" ]; then
+		msg_error "$pkgname: 'vulkan' option requires 'glslang'.\n"
+	fi
+fi
+
+if [ "$build_option_wayland" ]; then
+	if [ -z "$build_option_gles2" -a -z "$build_option_glcore" ]; then
+		msg_error "$pkgname: 'wayland' option requires 'gles2' or 'glcore'.\n"
+	fi
+	makedepends+=" wayland-devel wayland-protocols libdecor-devel"
+	if [ "$CROSS_BUILD" ]; then
+		hostmakedepends+=" wayland-devel wayland-protocols"
+	fi
+fi
+
+if [ "$build_option_x11" ]; then
+	if [ -z "$build_option_gles2" -a -z "$build_option_glcore" ]; then
+		msg_error "$pkgname: 'x11' option requires 'gles2' or 'glcore'.\n"
+	fi
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*)
+		configure_args+=" --enable-sse --enable-threads"
+		;;
+	ppc*)
+		configure_args+=" --enable-threads"
+		;;
+	aarch64*)
+		configure_args+=" --enable-threads"
+		;;
+	armv7*)
+		build_options_default+=" neon"
+
+		configure_args+=" --enable-threads $(vopt_enable neon)"
+
+		if [ "$build_option_neon" ]; then
+			CFLAGS+=" -mfpu=neon"
+		fi
+		;;
+	arm*)
+		configure_args+=" --disable-neon"
+		;;
+	esac
+
+if [ "$CROSS_BUILD" ]; then
+	configure_args+=" --host=${XBPS_CROSS_TRIPLET}"
+fi

             reply	other threads:[~2023-01-31  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-31  9:44 twingofan [this message]
2023-01-31  9:44 ` [PR PATCH] [Closed]: Dev twingofan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41987@inbox.vuxu.org \
    --to=twingofan@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).