summaryrefslogtreecommitdiffstats
path: root/audio-soft
diff options
context:
space:
mode:
authorVlad Glagolev2019-04-12 02:24:58 +0000
committerVlad Glagolev2019-04-12 02:24:58 +0000
commit34b042d0e73b24ce7f61a4358eb4a88f48750f98 (patch)
treeb00ac18f8db9396397db7e58e3816d26fac62d49 /audio-soft
parent5fb57065f0bd80056a6cdd660726d59c09841d96 (diff)
ncpamixer: new spell, ncurses PulseAudio mixer
Diffstat (limited to 'audio-soft')
-rwxr-xr-xaudio-soft/ncpamixer/BUILD6
-rwxr-xr-xaudio-soft/ncpamixer/DEPENDS12
-rwxr-xr-xaudio-soft/ncpamixer/DETAILS13
-rw-r--r--audio-soft/ncpamixer/HISTORY2
-rwxr-xr-xaudio-soft/ncpamixer/PRE_BUILD6
-rw-r--r--audio-soft/ncpamixer/build.patch22
6 files changed, 61 insertions, 0 deletions
diff --git a/audio-soft/ncpamixer/BUILD b/audio-soft/ncpamixer/BUILD
new file mode 100755
index 0000000000..c367241233
--- /dev/null
+++ b/audio-soft/ncpamixer/BUILD
@@ -0,0 +1,6 @@
+if is_depends_enabled ${SPELL} llvm; then
+ CXXFLAGS="-stdlib=libc++ -I${INSTALL_ROOT}/usr/include ${CXXFLAGS}" &&
+ LDFLAGS="-lc++ -lc++abi ${LDFLAGS}"
+fi &&
+
+cmake_build
diff --git a/audio-soft/ncpamixer/DEPENDS b/audio-soft/ncpamixer/DEPENDS
new file mode 100755
index 0000000000..c38a38b3d2
--- /dev/null
+++ b/audio-soft/ncpamixer/DEPENDS
@@ -0,0 +1,12 @@
+depends cmake &&
+depends pulseaudio &&
+depends ncurses &&
+
+optional_depends llvm \
+ "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" \
+ "" \
+ "to build ncpamixer with clang++" &&
+
+if ! is_depends_enabled ${SPELL} llvm; then
+ depends -sub CXX gcc
+fi
diff --git a/audio-soft/ncpamixer/DETAILS b/audio-soft/ncpamixer/DETAILS
new file mode 100755
index 0000000000..60a05aa6fc
--- /dev/null
+++ b/audio-soft/ncpamixer/DETAILS
@@ -0,0 +1,13 @@
+ SPELL=ncpamixer
+ VERSION=1.3.3
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://github.com/fulhax/${SPELL}/archive/${VERSION}.tar.gz
+ SOURCE_HASH=sha512:f86fe4a8c3e505399e4eae831ded56dffbf0dc00f4392873a90e6dac10f8964becba65dad2ddcee128de636635a488fb9769a10909c2f7e1202d69d016358da6
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=https://github.com/fulhax/ncpamixer
+ LICENSE[0]=MIT
+ ENTERED=20190411
+ SHORT="ncurses PulseAudio mixer"
+cat << EOF
+ncpamixer is a ncurses mixer for PulseAudio inspired by pavucontrol.
+EOF
diff --git a/audio-soft/ncpamixer/HISTORY b/audio-soft/ncpamixer/HISTORY
new file mode 100644
index 0000000000..3c2b91d109
--- /dev/null
+++ b/audio-soft/ncpamixer/HISTORY
@@ -0,0 +1,2 @@
+2019-04-11 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD: created spell, version 1.3.3
diff --git a/audio-soft/ncpamixer/PRE_BUILD b/audio-soft/ncpamixer/PRE_BUILD
new file mode 100755
index 0000000000..2161f17cc1
--- /dev/null
+++ b/audio-soft/ncpamixer/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+mv src/* . &&
+
+patch -p0 < "${SPELL_DIRECTORY}/build.patch"
diff --git a/audio-soft/ncpamixer/build.patch b/audio-soft/ncpamixer/build.patch
new file mode 100644
index 0000000000..117f03e9e9
--- /dev/null
+++ b/audio-soft/ncpamixer/build.patch
@@ -0,0 +1,22 @@
+--- pa.cpp.orig
++++ pa.cpp
+@@ -1,7 +1,7 @@
+ #include "pa.hpp"
+
+ #include <unistd.h>
+-
++#include <iostream>
+ #include <cstring>
+ #include <functional>
+ #include <thread>
+--- ui/ui.cpp.orig
++++ ui/ui.cpp
+@@ -2,7 +2,7 @@
+
+ #include <sys/ioctl.h>
+ #include <unistd.h>
+-
++#include <locale>
+ #include <cstdio>
+ #include <cstring>
+ #include <string>