Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] dumb: make allegro4, examples optional & build the latter as dumb-examples
Date: Sun, 26 Jan 2020 11:45:41 +0100	[thread overview]
Message-ID: <20200126104541.j9FvUM25zdadWcRiDSmVhf0uAyZNnRRa9pXneYpnDCI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18472@inbox.vuxu.org>

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

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

https://github.com/ScrelliCopter/void-packages dumbutils
https://github.com/void-linux/void-packages/pull/18472

dumb: make allegro4, examples optional & build the latter as dumb-examples
The reference players are actually quite useful so I think it's worth packaging them.

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

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

From 88abc234214e4b21a4b483d6d2d3610869dd714e Mon Sep 17 00:00:00 2001
From: a dinosaur <nick@a-dinosaur.com>
Date: Thu, 23 Jan 2020 01:08:23 +1100
Subject: [PATCH] dumb: make allegro4, examples optional & build the latter as
 dumb-examples

---
 common/shlibs         |  4 ++--
 srcpkgs/dumb-examples |  1 +
 srcpkgs/dumb/template | 24 +++++++++++++++++++++---
 3 files changed, 24 insertions(+), 5 deletions(-)
 create mode 120000 srcpkgs/dumb-examples

diff --git a/common/shlibs b/common/shlibs
index 35fcd4de243..bdccd749a70 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1739,8 +1739,8 @@ libportmidi.so portmidi-217_1
 libsox.so.3 sox-14.4.2_1
 libsoxr.so.0 libsoxr-0.1.2_1
 libsoxr-lsr.so.0 libsoxr-0.1.2_1
-libdumb.so.2 dumb-2.0.3_1
-libaldmb.so.2 dumb-2.0.3_1
+libdumb.so.2 dumb-2.0.3_2
+libaldmb.so.2 dumb-2.0.3_2
 libframe.so.6 frame-2.5.0_1
 libgrail.so.6 grail-3.1.0_1
 libgeis.so.1 geis-2.2.16_1
diff --git a/srcpkgs/dumb-examples b/srcpkgs/dumb-examples
new file mode 120000
index 00000000000..6509fa65327
--- /dev/null
+++ b/srcpkgs/dumb-examples
@@ -0,0 +1 @@
+dumb
\ No newline at end of file
diff --git a/srcpkgs/dumb/template b/srcpkgs/dumb/template
index 41dac7e92b1..18e4ded23cc 100644
--- a/srcpkgs/dumb/template
+++ b/srcpkgs/dumb/template
@@ -1,12 +1,15 @@
 # Template file for 'dumb'
 pkgname=dumb
 version=2.0.3
-revision=1
+revision=2
 build_style=cmake
-configure_args="-DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -GNinja"
+configure_args="-GNinja -DBUILD_SHARED_LIBS=ON
+ $(vopt_bool allegro4 BUILD_ALLEGRO4)
+ $(vopt_bool examples BUILD_EXAMPLES)"
 make_cmd=ninja
 hostmakedepends="ninja"
-makedepends="allegro4-devel"
+makedepends="$(vopt_if allegro4 allegro4-devel)
+ $(vopt_if examples argtable-devel) $(vopt_if examples SDL2-devel)"
 short_desc="IT, XM, S3M and MOD player library"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom:DUMB"
@@ -14,6 +17,12 @@ homepage="http://dumb.sourceforge.net/"
 distfiles="https://github.com/kode54/dumb/archive/${version}.tar.gz"
 checksum=99bfac926aeb8d476562303312d9f47fd05b43803050cd889b44da34a9b2a4f9
 
+# Package build options
+build_options="allegro4 examples"
+desc_option_allegro4="Enable optional Allegro 4 support"
+desc_option_examples="Enable building example programs (dumbplay & dumbout)"
+build_options_default="allegro4 examples"
+
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
 		configure_args+=" -DUSE_SSE=ON"
@@ -42,3 +51,12 @@ dumb-devel_package() {
 		vmove usr/lib/pkgconfig
 	}
 }
+
+if [ "$build_option_examples" ]; then
+	dumb-examples_package() {
+		short_desc+="Reference IT, XM, S3M, MOD player programs using DUMB and SDL2"
+		pkg_install() {
+			vmove usr/bin
+		}
+	}
+fi

  parent reply	other threads:[~2020-01-26 10:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-22 14:15 [PR PATCH] " voidlinux-github
2020-01-26  7:31 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-26 10:45 ` voidlinux-github [this message]
2020-01-26 10:46 ` voidlinux-github
2020-01-26 10:48 ` voidlinux-github
2020-09-29  1:32 ` [PR REVIEW] " ericonr
2020-11-03  9:38 ` ScrelliCopter
2020-11-03  9:38 ` [PR PATCH] [Closed]: " ScrelliCopter

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=20200126104541.j9FvUM25zdadWcRiDSmVhf0uAyZNnRRa9pXneYpnDCI@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).