mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
musikcube: update to 0.99.4
This commit is contained in:
parent
ee619ab761
commit
e210b6f463
6 changed files with 55 additions and 28 deletions
1
srcpkgs/musikcube-alsa
Symbolic link
1
srcpkgs/musikcube-alsa
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
musikcube
|
1
srcpkgs/musikcube-gme
Symbolic link
1
srcpkgs/musikcube-gme
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
musikcube
|
1
srcpkgs/musikcube-portaudio
Symbolic link
1
srcpkgs/musikcube-portaudio
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
musikcube
|
|
@ -36,7 +36,7 @@ index 62d3c003..01ef58ac 100644
|
||||||
DESTINATION bin/
|
DESTINATION bin/
|
||||||
PERMISSIONS
|
PERMISSIONS
|
||||||
OWNER_EXECUTE OWNER_READ OWNER_WRITE
|
OWNER_EXECUTE OWNER_READ OWNER_WRITE
|
||||||
@@ -66,14 +58,6 @@ install(
|
@@ -58,14 +50,6 @@ install(
|
||||||
# executable and shell script for daemon
|
# executable and shell script for daemon
|
||||||
install(
|
install(
|
||||||
FILES bin/musikcubed
|
FILES bin/musikcubed
|
||||||
|
@ -54,8 +54,8 @@ index 62d3c003..01ef58ac 100644
|
||||||
diff --git a/src/musikcore/support/Common.cpp b/src/musikcore/support/Common.cpp
|
diff --git a/src/musikcore/support/Common.cpp b/src/musikcore/support/Common.cpp
|
||||||
index 31703117..53aa8a88 100644
|
index 31703117..53aa8a88 100644
|
||||||
--- a/src/musikcore/support/Common.cpp
|
--- a/src/musikcore/support/Common.cpp
|
||||||
+++ b/src/musikcore/support/Common.cpp
|
+++ a/src/musikcore/support/Common.cpp
|
||||||
@@ -82,65 +82,11 @@ static inline void silentDelete(const std::string fn) {
|
@@ -87,78 +87,11 @@
|
||||||
namespace musik { namespace core {
|
namespace musik { namespace core {
|
||||||
|
|
||||||
std::string GetPluginDirectory() {
|
std::string GetPluginDirectory() {
|
||||||
|
@ -105,15 +105,28 @@ index 31703117..53aa8a88 100644
|
||||||
- argv = new char*[len];
|
- argv = new char*[len];
|
||||||
- if (sysctl(mib, 4, argv, &len, nullptr, 0) < 0) abort();
|
- if (sysctl(mib, 4, argv, &len, nullptr, 0) < 0) abort();
|
||||||
-
|
-
|
||||||
- boost::filesystem::path command = boost::filesystem::system_complete(argv[0]);
|
- fs::path command = fs::absolute(fs::path(fs::u8path(argv[0])));
|
||||||
- realpath(command.c_str(), pathbuf);
|
- realpath(command.u8string().c_str(), pathbuf);
|
||||||
- delete[] argv;
|
- delete[] argv;
|
||||||
|
- #elif defined __HAIKU__
|
||||||
|
- image_info ii;
|
||||||
|
- int32 c = 0;
|
||||||
|
- while (get_next_image_info(0, &c, &ii) == B_OK) {
|
||||||
|
- if (ii.type == B_APP_IMAGE) {
|
||||||
|
- if (strlen(ii.name)) {
|
||||||
|
- std::string fn(ii.name);
|
||||||
|
- result = fs::u8path(fn).u8string();
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- }
|
||||||
- #else
|
- #else
|
||||||
- std::string pathToProc = u8fmt("/proc/%d/exe", (int) getpid());
|
- std::string pathToProc = u8fmt("/proc/%d/exe", (int) getpid());
|
||||||
- readlink(pathToProc.c_str(), pathbuf, PATH_MAX);
|
- readlink(pathToProc.c_str(), pathbuf, PATH_MAX);
|
||||||
- #endif
|
- #endif
|
||||||
-
|
-
|
||||||
- result.assign(pathbuf);
|
- if (!result.size() && strlen(pathbuf)) {
|
||||||
|
- result.assign(pathbuf);
|
||||||
|
- }
|
||||||
- size_t last = result.find_last_of("/");
|
- size_t last = result.find_last_of("/");
|
||||||
- result = result.substr(0, last); /* remove filename component */
|
- result = result.substr(0, last); /* remove filename component */
|
||||||
- #endif
|
- #endif
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
Taken from libgme patches.
|
|
||||||
|
|
||||||
--- a/src/plugins/gmedecoder/gme/blargg_endian.h
|
|
||||||
+++ b/src/plugins/gmedecoder/gme/blargg_endian.h
|
|
||||||
@@ -36,7 +36,7 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
|
|
||||||
- defined (__sparc__) || BLARGG_CPU_POWERPC || \
|
|
||||||
+ defined (__sparc__) || \
|
|
||||||
(defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
|
|
||||||
#define BLARGG_BIG_ENDIAN 1
|
|
||||||
#elif !defined (__mips__)
|
|
|
@ -1,23 +1,23 @@
|
||||||
# Template file for 'musikcube'
|
# Template file for 'musikcube'
|
||||||
pkgname=musikcube
|
pkgname=musikcube
|
||||||
version=0.98.0
|
version=0.99.4
|
||||||
revision=3
|
revision=1
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
make_cmd=make
|
make_cmd=make
|
||||||
configure_args="-DNO_NCURSESW=1 -DENABLE_BUNDLED_TAGLIB=false"
|
configure_args="-DNO_NCURSESW=1"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="boost-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
|
makedepends="libgme-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
|
||||||
openssl-devel pulseaudio-devel lame-devel zlib-devel alsa-lib-devel
|
openssl-devel pulseaudio-devel lame-devel zlib-devel alsa-lib-devel
|
||||||
libvorbis-devel libcurl-devel ncurses-devel libev-devel taglib-devel
|
libvorbis-devel libcurl-devel ncurses-devel libev-devel taglib-devel
|
||||||
sndio-devel pipewire-devel ncurses-libtinfo-devel libopenmpt-devel
|
sndio-devel pipewire-devel ncurses-libtinfo-devel libopenmpt-devel
|
||||||
$(vopt_if elogind elogind-devel)"
|
portaudio-devel asio $(vopt_if elogind elogind-devel)"
|
||||||
short_desc="Terminal-based music player in c++"
|
short_desc="Terminal-based music player in c++"
|
||||||
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
|
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://musikcube.com/"
|
homepage="https://musikcube.com/"
|
||||||
changelog="https://raw.githubusercontent.com/clangen/musikcube/master/CHANGELOG.txt"
|
changelog="https://raw.githubusercontent.com/clangen/musikcube/master/CHANGELOG.txt"
|
||||||
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
|
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
|
||||||
checksum=a4ae9d6d0fa5ce99de2e7bbc1de75cc8638704a2284b38a51178e23bbe55499c
|
checksum=dd8e74c8c8460250c0da325941db2df0f7dcca77f2c68a0295ab21e81f8dd8a4
|
||||||
build_options="elogind"
|
build_options="elogind"
|
||||||
desc_option_elogind="Support MPRIS interface via elogind"
|
desc_option_elogind="Support MPRIS interface via elogind"
|
||||||
build_options_default="elogind"
|
build_options_default="elogind"
|
||||||
|
@ -40,11 +40,11 @@ musikcube-devel_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
musikcube-sndio_package() {
|
musikcube-alsa_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - sndio output plugin"
|
short_desc+=" - alsa output plugin"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/musikcube/plugins/libsndioout.so
|
vmove usr/lib/musikcube/plugins/libalsaout.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +56,30 @@ musikcube-pipewire_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
musikcube-portaudio_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - portaudio output plugin"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/musikcube/plugins/libportaudioout.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
musikcube-sndio_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - sndio output plugin"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/musikcube/plugins/libsndioout.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
musikcube-gme_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - gme decoder plugin"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/musikcube/plugins/libgmedecoder.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
musikcube-openmpt_package() {
|
musikcube-openmpt_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - openmpt decoder plugin"
|
short_desc+=" - openmpt decoder plugin"
|
||||||
|
|
Loading…
Add table
Reference in a new issue