From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: libopenmpt-0.4.11 & openmpt123
Date: Wed, 22 Jan 2020 13:49:19 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18468@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
There is a new pull request by ScrelliCopter against master on the void-packages repository
https://github.com/ScrelliCopter/void-packages openmpt
https://github.com/void-linux/void-packages/pull/18468
New package: libopenmpt-0.4.11 & openmpt123
Adds the OpenMPT music module replayer library + bundled mpg123 style command line player/decoder using it.
This is my first more complex package, so please let me know if there are any mistakes and I'll try to correct them.
Thanks.
A patch file from https://github.com/void-linux/void-packages/pull/18468.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openmpt-18468.patch --]
[-- Type: text/x-diff, Size: 4256 bytes --]
From 2a1266bdaf640b03ba4641a1ea0f2da9012aabca Mon Sep 17 00:00:00 2001
From: a dinosaur <nick@a-dinosaur.com>
Date: Wed, 22 Jan 2020 23:24:53 +1100
Subject: [PATCH] libopenmpt: add template file + update shlibs
---
common/shlibs | 1 +
srcpkgs/libopenmpt-devel | 1 +
srcpkgs/libopenmpt/template | 85 +++++++++++++++++++++++++++++++++++++
srcpkgs/openmpt123 | 1 +
4 files changed, 88 insertions(+)
create mode 120000 srcpkgs/libopenmpt-devel
create mode 100644 srcpkgs/libopenmpt/template
create mode 120000 srcpkgs/openmpt123
diff --git a/common/shlibs b/common/shlibs
index 35fcd4de243..7a7e1abafc8 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -331,6 +331,7 @@ libglademm-2.4.so.1 libglademm-2.6.7_1
libthunarx-3.so.0 Thunar-1.8.1_1
libexif.so.12 libexif-0.6.17_1
liboil-0.3.so.0 liboil-0.3.16_1
+libopenmpt.so.0 libopenmpt-0.4.11_1
libogg.so.0 libogg-1.3.0_1
libvorbis.so.0 libvorbis-1.2.1rc1_1
libvorbisenc.so.2 libvorbis-1.2.1rc1_1
diff --git a/srcpkgs/libopenmpt-devel b/srcpkgs/libopenmpt-devel
new file mode 120000
index 00000000000..4a03b0fc889
--- /dev/null
+++ b/srcpkgs/libopenmpt-devel
@@ -0,0 +1 @@
+libopenmpt
\ No newline at end of file
diff --git a/srcpkgs/libopenmpt/template b/srcpkgs/libopenmpt/template
new file mode 100644
index 00000000000..dcf44a81967
--- /dev/null
+++ b/srcpkgs/libopenmpt/template
@@ -0,0 +1,85 @@
+# Template file for 'libopenmpt'
+pkgname=libopenmpt
+version=0.4.11
+revision=1
+wrksrc="libopenmpt-${version}+release.autotools"
+build_style=gnu-configure
+configure_args="--prefix=/usr
+ $(vopt_with zlib)
+ $(vopt_with mpg123)
+ $(vopt_with ogg) $(vopt_with vorbis) $(vopt_with vorbis vorbisfile)
+ $(vopt_with pulseaudio)
+ $(vopt_with portaudio) $(vopt_with portaudiocpp)
+ $(vopt_with sdl2) $(vopt_with sdl)
+ $(vopt_with sndfile)
+ $(vopt_with flac)
+ $(vopt_enable libopenmpt_modplug) $(vopt_enable libmodplug)
+ $(vopt_enable openmpt123)"
+hostmakedepends="pkg-config"
+makedepends="
+ $(vopt_if zlib zlib-devel)
+ $(vopt_if mpg123 mpg123-devel)
+ $(vopt_if ogg libogg-devel) $(vopt_if vorbis libvorbis-devel)
+ $(vopt_if pulseaudio pulseaudio-devel)
+ $(vopt_if portaudio portaudio-devel) $(vopt_if portaudiocpp portaudio-cpp-devel)
+ $(vopt_if sdl2 SDL2-devel) $(vopt_if sdl SDL-devel)
+ $(vopt_if sndfile libsndfile-devel)
+ $(vopt_if flac libflac-devel)"
+depends="
+ $(vopt_if zlib zlib)
+ $(vopt_if mpg123 libmpg123)
+ $(vopt_if ogg libogg) $(vopt_if vorbis libvorbis)
+ $(vopt_if pulseaudio libpulseaudio)
+ $(vopt_if portaudio portaudio) $(vopt_if portaudiocpp portaudio-cpp)
+ $(vopt_if sdl2 SDL2) $(vopt_if sdl SDL)
+ $(vopt_if sndfile libsndfile)
+ $(vopt_if flac libflac)"
+short_desc="Cross-platform C & C++ library to decode tracked music files (modules)"
+maintainer="a dinosaur <nick@a-dinosaur.com>"
+license="BSD-3-Clause"
+homepage="https://lib.openmpt.org/libopenmpt/"
+distfiles="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"
+checksum=260e92cc2f6af37113442bff2c75a3c36a09eba4078dc593203a0502f95d26bd
+conflicts="$(vopt_if libmodplug libmodplug)"
+
+post_install() {
+ vlicense LICENSE
+}
+
+# Package build options
+build_options="
+ zlib
+ mpg123
+ ogg vorbis
+ pulseaudio
+ portaudio portaudiocpp
+ sdl2 sdl
+ sndfile
+ flac
+ libopenmpt_modplug libmodplug
+ openmpt123"
+build_options_default="zlib mpg123 ogg vorbis pulseaudio portaudio portaudiocpp sndfile flac openmpt123"
+vopt_conflict sdl2 sdl
+
+libopenmpt-devel_package() {
+ depends="${sourcepkg}-${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/share/doc/libopenmpt/examples
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ }
+}
+
+if [ ! -z "$build_option_openmpt123" ]; then
+ openmpt123_package() {
+ depends="${sourcepkg}-${version}_${revision}"
+ short_desc="Cross-platform command-line or terminal based module file player"
+ pkg_install() {
+ vmove usr/bin/openmpt123
+ vmove usr/share/man/man1/openmpt123.1
+ }
+ }
+fi
diff --git a/srcpkgs/openmpt123 b/srcpkgs/openmpt123
new file mode 120000
index 00000000000..4a03b0fc889
--- /dev/null
+++ b/srcpkgs/openmpt123
@@ -0,0 +1 @@
+libopenmpt
\ No newline at end of file
next reply other threads:[~2020-01-22 12:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-22 12:49 voidlinux-github [this message]
2020-01-26 7:54 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-26 9:18 ` voidlinux-github
2020-01-26 10:52 ` voidlinux-github
2020-01-26 10:53 ` voidlinux-github
2020-01-26 15:28 ` [PR PATCH] [Merged]: " voidlinux-github
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-18468@inbox.vuxu.org \
--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).