Github messages for voidlinux
 help / color / mirror / Atom feed
From: siort4 <siort4@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ucon64
Date: Wed, 02 Aug 2023 20:03:07 +0200	[thread overview]
Message-ID: <20230802180307.Pf-C8XXFaqvWYNrLE2rYH21_nfhTshjoP1Uc6Xmyhko@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45389@inbox.vuxu.org>

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

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

https://github.com/siort4/void-packages add_ucon64
https://github.com/void-linux/void-packages/pull/45389

New package: ucon64
<!-- 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-musl
- I built this PR locally for these architectures:
  - x86_64
  - i686
  - aarch64
  - aarch64-musl
  - armv6l-musl
  - armv6l



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

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

From d9e10fda720592cf47ad117c4d740e0f790d9c73 Mon Sep 17 00:00:00 2001
From: siort4 <siort@posteo.net>
Date: Wed, 2 Aug 2023 05:13:36 -0600
Subject: [PATCH] New package: ucon64-2.2.2

---
 srcpkgs/ucon64/patches/libdiscmage.patch      | 31 +++++++++++++++++
 .../ucon64/patches/no-hardcoded-optim.patch   | 33 +++++++++++++++++++
 srcpkgs/ucon64/template                       | 26 +++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 srcpkgs/ucon64/patches/libdiscmage.patch
 create mode 100644 srcpkgs/ucon64/patches/no-hardcoded-optim.patch
 create mode 100644 srcpkgs/ucon64/template

diff --git a/srcpkgs/ucon64/patches/libdiscmage.patch b/srcpkgs/ucon64/patches/libdiscmage.patch
new file mode 100644
index 0000000000000..5032d36609e12
--- /dev/null
+++ b/srcpkgs/ucon64/patches/libdiscmage.patch
@@ -0,0 +1,31 @@
+--- a/src/ucon64.c
++++ b/src/ucon64.c
+@@ -2123,7 +2123,7 @@
+ #elif   defined __APPLE__                       // Mac OS X actually
+     "libdiscmage.dylib";
+ #elif   defined __unix__ || defined __BEOS__
+-    "libdiscmage.so";
++    "/usr/lib/libdiscmage.so";
+ #else
+     "library";
+ #endif
+--- a/src/ucon64_misc.c
++++ b/src/ucon64_misc.c
+@@ -580,7 +580,7 @@
+ {
+   uint32_t version;
+ #ifdef  DLOPEN
+-  const char *p = get_property (ucon64.configfile, "discmage_path", PROPERTY_MODE_FILENAME);
++  const char *p = "/usr/lib/libdiscmage.so";
+   if (p)
+     strcpy (ucon64.discmage_path, p);
+   else
+@@ -1229,7 +1229,7 @@
+ #elif   defined __APPLE__                       // Mac OS X actually
+                        PROPERTY_MODE_DIR ("ucon64") "discmage.dylib",
+ #elif   defined __unix__ || defined __BEOS__
+-                       PROPERTY_MODE_DIR ("ucon64") "discmage.so",
++                       "/usr/lib/libdiscmage.so",
+ #else
+                        "",
+ #endif
diff --git a/srcpkgs/ucon64/patches/no-hardcoded-optim.patch b/srcpkgs/ucon64/patches/no-hardcoded-optim.patch
new file mode 100644
index 0000000000000..48d8d5640cc93
--- /dev/null
+++ b/srcpkgs/ucon64/patches/no-hardcoded-optim.patch
@@ -0,0 +1,33 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -11,7 +11,7 @@
+ CFLAGS0:=$(CFLAGS)
+ include config.mak
+ 
+-CFLAGS+=-I. -Wall -W -Wno-implicit-fallthrough -O3 -fsigned-char
++CFLAGS+=-I. -Wall -W -Wno-implicit-fallthrough -fsigned-char
+ ifneq ($(findstring clang,$(CC)),clang)
+ CFLAGS+=-Wno-format-truncation -Wno-stringop-overflow
+ endif
+--- a/src/backup/libcd64/Makefile
++++ b/src/backup/libcd64/Makefile
+@@ -10,7 +10,7 @@
+ ifdef DEBUG
+ CFLAGS+=-pg -g -pedantic -ansi -DDEBUG
+ else
+-CFLAGS+=-O3 -funroll-loops
++CFLAGS+=-funroll-loops
+ ifneq ($(findstring clang,$(CC)),clang)
+ CFLAGS+=-fexpensive-optimizations
+ endif
+--- a/src/libdiscmage/Makefile.in
++++ b/src/libdiscmage/Makefile.in
+@@ -23,7 +23,7 @@
+ ifeq ($(CC),cc)
+ CC=@CC@
+ endif
+-CFLAGS0:=$(CFLAGS) -I. -Wall -W -Wno-implicit-fallthrough -O3 @DEFS@
++CFLAGS0:=$(CFLAGS) -I. -Wall -W -Wno-implicit-fallthrough @DEFS@
+ ifneq ($(findstring clang,$(CC)),clang)
+ CFLAGS0+=-Wno-format-truncation -Wno-stringop-overflow
+ endif
diff --git a/srcpkgs/ucon64/template b/srcpkgs/ucon64/template
new file mode 100644
index 0000000000000..c02935c8b734b
--- /dev/null
+++ b/srcpkgs/ucon64/template
@@ -0,0 +1,26 @@
+# Template file for 'ucon64'
+pkgname=ucon64
+version=2.2.2
+revision=1
+build_wrksrc=src
+build_style=gnu-configure
+configure_args="--with-libcd64 --enable-ansi-color --with-libdiscmage --with-libusb --with-zlib "
+hostmakedepends="tar"
+makedepends="libusb-compat-devel zlib-devel"
+short_desc="Multipurpose video game ROM image and backup utility"
+maintainer="siort4 <siort@posteo.net>"
+license="GPL-2.0-or-later"
+homepage="https://ucon64.sourceforge.io"
+distfiles="$SOURCEFORGE_SITE/${pkgname}/${pkgname}-${version}-src.tar.gz"
+checksum=e100ad4a30f6c19abde98e361c6a0ecac4e40477f54cfb75498c5ccd21fb3a18
+
+case "${XBPS_TARGET_MACHINE}" in
+(i686|x86_64|x86_64-musl) configure_args+="--enable-parallel" ;;
+(*) configure_args+="--disable-parallel" ;;
+esac
+
+do_install() {
+	vcopy libdiscmage/discmage.so /usr/lib/libdiscmage.so
+
+	vbin ucon64
+}

  parent reply	other threads:[~2023-08-02 18:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02 11:31 [PR PATCH] Add ucon64 siort4
2023-08-02 11:37 ` [PR PATCH] [Updated] New package: ucon64 siort4
2023-08-02 17:03 ` siort4
2023-08-02 17:53 ` siort4
2023-08-02 18:03 ` siort4 [this message]
2023-11-02  1:45 ` github-actions
2023-11-16  1:46 ` [PR PATCH] [Closed]: " github-actions

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=20230802180307.Pf-C8XXFaqvWYNrLE2rYH21_nfhTshjoP1Uc6Xmyhko@z \
    --to=siort4@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).