Github messages for voidlinux
 help / color / mirror / Atom feed
From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: rigs-of-rods-2022.12
Date: Wed, 01 May 2024 19:45:15 +0200	[thread overview]
Message-ID: <20240501174515.8268E20D63@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50031@inbox.vuxu.org>

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

There is an updated pull request by MIvanchev against master on the void-packages repository

https://github.com/MIvanchev/void-packages rigs-of-rods
https://github.com/void-linux/void-packages/pull/50031

[WIP] New package: rigs-of-rods-2022.12
#### Testing the changes
- I tested the changes in this PR: **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**


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rigs-of-rods-50031.patch --]
[-- Type: text/x-diff, Size: 4701 bytes --]

From 28783d027333acb6150a846da57e23cfb897f735 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Thu, 25 Apr 2024 16:22:08 +0200
Subject: [PATCH 1/2] New package: rigs-of-rods-2022.12

---
 srcpkgs/rigs-of-rods/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/rigs-of-rods/template

diff --git a/srcpkgs/rigs-of-rods/template b/srcpkgs/rigs-of-rods/template
new file mode 100644
index 00000000000000..b420695d53f842
--- /dev/null
+++ b/srcpkgs/rigs-of-rods/template
@@ -0,0 +1,14 @@
+# Template file for 'rigs-of-rods'
+pkgname=rigs-of-rods
+version=2022.12
+revision=1
+build_style=cmake
+hostmakedepends="pkg-config git rapidjson"
+makedepends="libogre-devel libopenal-devel ois-devel libmygui-devel fmt-devel openssl-devel"
+depends="curl"
+short_desc="Free and open source vehicle simulator that uses soft-body physics"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-only"
+homepage="https://www.rigsofrods.org/"
+distfiles="https://github.com/RigsOfRods/rigs-of-rods/archive/refs/tags/${version}.tar.gz"
+checksum=d4fc9ec2f7e9154e21ec79d39201c5bb3823e5f2fdf641f99c612ef69275ba90

From a9a3fed602604b40152a738d963d0982e951ede4 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Wed, 1 May 2024 18:13:43 +0200
Subject: [PATCH 2/2] libmygui: adding OGRE platform.

---
 srcpkgs/libmygui-dummy       |  1 +
 srcpkgs/libmygui-dummy-devel |  1 +
 srcpkgs/libmygui-ogre        |  1 +
 srcpkgs/libmygui-ogre-devel  |  1 +
 srcpkgs/libmygui/template    | 58 ++++++++++++++++++++++++++++++++----
 5 files changed, 56 insertions(+), 6 deletions(-)
 create mode 120000 srcpkgs/libmygui-dummy
 create mode 120000 srcpkgs/libmygui-dummy-devel
 create mode 120000 srcpkgs/libmygui-ogre
 create mode 120000 srcpkgs/libmygui-ogre-devel

diff --git a/srcpkgs/libmygui-dummy b/srcpkgs/libmygui-dummy
new file mode 120000
index 00000000000000..de07ae115af082
--- /dev/null
+++ b/srcpkgs/libmygui-dummy
@@ -0,0 +1 @@
+libmygui
\ No newline at end of file
diff --git a/srcpkgs/libmygui-dummy-devel b/srcpkgs/libmygui-dummy-devel
new file mode 120000
index 00000000000000..de07ae115af082
--- /dev/null
+++ b/srcpkgs/libmygui-dummy-devel
@@ -0,0 +1 @@
+libmygui
\ No newline at end of file
diff --git a/srcpkgs/libmygui-ogre b/srcpkgs/libmygui-ogre
new file mode 120000
index 00000000000000..de07ae115af082
--- /dev/null
+++ b/srcpkgs/libmygui-ogre
@@ -0,0 +1 @@
+libmygui
\ No newline at end of file
diff --git a/srcpkgs/libmygui-ogre-devel b/srcpkgs/libmygui-ogre-devel
new file mode 120000
index 00000000000000..de07ae115af082
--- /dev/null
+++ b/srcpkgs/libmygui-ogre-devel
@@ -0,0 +1 @@
+libmygui
\ No newline at end of file
diff --git a/srcpkgs/libmygui/template b/srcpkgs/libmygui/template
index c162ea81640915..eafb6d58724662 100644
--- a/srcpkgs/libmygui/template
+++ b/srcpkgs/libmygui/template
@@ -1,11 +1,9 @@
-# Template file for 'mygui'
+# Template file for 'libmygui'
 pkgname=libmygui
 version=3.4.2
-revision=1
-build_style=cmake
-configure_args="-DMYGUI_BUILD_DEMOS=OFF -DMYGUI_RENDERSYSTEM=1 -DMYGUI_BUILD_TOOLS=OFF"
-hostmakedepends="doxygen pkg-config"
-makedepends="libX11-devel ois-devel boost-devel freetype-devel"
+revision=2
+hostmakedepends="cmake ninja doxygen pkg-config"
+makedepends="SDL2-devel libogre-devel libX11-devel ois-devel boost-devel freetype-devel"
 short_desc="Fast, flexible and simple GUI"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
@@ -13,6 +11,26 @@ homepage="http://mygui.info"
 distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
 checksum=1cc45fb96c9438e3476778449af0378443d84794a458978a29c75306e45dd45a
 
+build_mygui_platform() {
+	cmake -Bbuild-$1 -GNinja \
+		-DMYGUI_RENDERSYSTEM=$2 \
+		-DMYGUI_BUILD_DEMOS=OFF \
+		-DMYGUI_BUILD_TOOLS=ON \
+		-DMYGUI_INSTALL_TOOLS=ON
+		-DMYGUI_INSTALL_DOCS=ON
+	ninja -C build-$1 ${makejobs}
+}
+
+do_build() {
+	build_mygui_platform dummy 1
+	build_mygui_platform ogre 3
+}
+
+do_install() {
+	ninja -C build-dummy install
+	rm ${DESTDIR}/usr/lib/*.a
+}
+
 libmygui-devel_package() {
 	short_desc+=" - development files"
 	pkg_install() {
@@ -26,3 +44,31 @@ libmygui-devel_package() {
 post_install() {
 	vlicense COPYING.MIT
 }
+
+libmygui-dummy_package {
+	short_desc+=" (dummy platform)"
+	pkg_install() {
+		echo TODO
+	}
+}
+
+libmygui-dummy-devel_package {
+	short_desc+=" (dummy platform - development files)"
+	pkg_install() {
+		echo TODO
+	}
+}
+
+libmygui-ogre_package {
+	short_desc+=" (OGRE platform)"
+	pkg_install() {
+		echo TODO
+	}
+}
+
+libmygui-ogre-devel_package {
+	short_desc+=" (OGRE platform - development files)"
+	pkg_install() {
+		echo TODO
+	}
+}

  parent reply	other threads:[~2024-05-01 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 14:23 [PR PATCH] " MIvanchev
2024-04-25 14:26 ` [PR PATCH] [Updated] " MIvanchev
2024-04-25 14:30 ` MIvanchev
2024-05-01 16:13 ` MIvanchev
2024-05-01 16:17 ` MIvanchev
2024-05-01 17:45 ` MIvanchev [this message]
2024-05-01 17:47 ` MIvanchev
2024-05-01 17:50 ` MIvanchev

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=20240501174515.8268E20D63@inbox.vuxu.org \
    --to=mivanchev@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).