KMix is an audio mixer controller. On OpenBSD it is forced to use

PulseAudio as backend.
This commit is contained in:
zhuk 2013-04-24 12:12:22 +00:00
parent 36d2d6fa29
commit f5618971c1
6 changed files with 127 additions and 0 deletions

21
x11/kde4/kmix/Makefile Normal file
View File

@ -0,0 +1,21 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 12:12:22 zhuk Exp $
COMMENT = KDE audio mixer
CATEGORIES = audio
DISTNAME = kmix-${MODKDE4_VERSION}
WANTLIB = c m pthread stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtSvg lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kdeui ${KDE4LIB}/plasma ${KDE4LIB}/solid
WANTLIB += canberra glib-2.0 pulse pulse-mainloop-glib
MODKDE4_USE = libs
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
LIB_DEPENDS = audio/pulseaudio \
audio/libcanberra
CONFIGURE_ARGS = -DCMAKE_DISABLE_FIND_PACKAGE_Alsa:Bool=Yes
.include <bsd.port.mk>

2
x11/kde4/kmix/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kde/kmix-4.10.2.tar.xz) = +CAsLqPo4w+bdE13iUTYs3a3d9+a+Tc8aVGevDOxlcM=
SIZE (kde/kmix-4.10.2.tar.xz) = 385736

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2013/04/24 12:12:22 zhuk Exp $
--- CMakeLists.txt.orig Fri Sep 14 11:50:36 2012
+++ CMakeLists.txt Fri Sep 14 15:21:11 2012
@@ -14,7 +14,9 @@ find_package(GLIB2)
macro_optional_find_package(Canberra)
macro_log_feature(CANBERRA_FOUND "libcanberra" "libcanberra audio library" "http://0pointer.de/lennart/projects/libcanberra/" FALSE "" "libcanberra is needed for kmix sound feedback")
-alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+if (HAVE_LIBASOUND2)
+ alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+endif (HAVE_LIBASOUND2)
add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} )

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-backends_kmix-backends_cpp,v 1.1.1.1 2013/04/24 12:12:22 zhuk Exp $
--- backends/kmix-backends.cpp.orig Fri Sep 14 11:54:39 2012
+++ backends/kmix-backends.cpp Fri Sep 14 15:32:28 2012
@@ -23,8 +23,11 @@
/* This code is being #include'd from mixer.cpp */
#include <config.h>
-#include <config-alsa.h>
+#if defined(HAVE_LIBASOUND2)
+# include <config-alsa.h>
+#endif
+
#include "mixer_backend.h"
#include "core/mixer.h"
@@ -41,7 +44,7 @@
#define OSS_MIXER
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(_UNIXWARE)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(_UNIXWARE)
#define OSS_MIXER
#endif

2
x11/kde4/kmix/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
KMix is an audio mixer controller. On OpenBSD it is forced to use
PulseAudio as backend.

63
x11/kde4/kmix/pkg/PLIST Normal file
View File

@ -0,0 +1,63 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 12:12:22 zhuk Exp $
@bin bin/kmix
@bin bin/kmixctrl
lib/kde4/kded_kmixd.so
lib/kde4/plasma_engine_mixer.so
lib/libkdeinit4_kmix.so
lib/libkdeinit4_kmixctrl.so
share/applications/kde4/kmix.desktop
share/apps/kmix/
share/apps/kmix/kmixui.rc
share/apps/kmix/pics/
share/apps/kmix/pics/kmixdocked.png
share/apps/kmix/pics/kmixdocked_error.png
share/apps/kmix/pics/kmixdocked_mute.png
share/apps/kmix/pics/mixer-ac97.png
share/apps/kmix/pics/mixer-capture.png
share/apps/kmix/pics/mixer-cd.png
share/apps/kmix/pics/mixer-digital.png
share/apps/kmix/pics/mixer-front.png
share/apps/kmix/pics/mixer-headset.png
share/apps/kmix/pics/mixer-lfe.png
share/apps/kmix/pics/mixer-line.png
share/apps/kmix/pics/mixer-master.png
share/apps/kmix/pics/mixer-microphone.png
share/apps/kmix/pics/mixer-midi.png
share/apps/kmix/pics/mixer-pcm-default.png
share/apps/kmix/pics/mixer-pcm.png
share/apps/kmix/pics/mixer-surround.png
share/apps/kmix/pics/mixer-video.png
share/apps/kmix/profiles/
share/apps/kmix/profiles/ALSA.TerraTec_DMX6Fire.1.default.xml
share/apps/kmix/profiles/ALSA.capture.xml
share/apps/kmix/profiles/ALSA.default.xml
share/apps/kmix/profiles/ALSA.playback.xml
share/apps/kmix/profiles/OSS.default.xml
share/apps/plasma/services/mixer.operations
share/autostart/
share/autostart/kmix_autostart.desktop
share/autostart/restore_kmix_volumes.desktop
share/dbus-1/interfaces/org.kde.kmix.control.xml
share/dbus-1/interfaces/org.kde.kmix.mixer.xml
share/dbus-1/interfaces/org.kde.kmix.mixset.xml
share/doc/HTML/en/kmix/
share/doc/HTML/en/kmix/common
share/doc/HTML/en/kmix/index.cache.bz2
share/doc/HTML/en/kmix/index.docbook
share/doc/HTML/en/kmix/kmix-configure.png
share/doc/HTML/en/kmix/kmix-file.png
share/doc/HTML/en/kmix/kmix-master.png
share/doc/HTML/en/kmix/kmix-options.png
share/doc/HTML/en/kmix/kmix.png
share/icons/hicolor/128x128/apps/kmix.png
share/icons/hicolor/16x16/apps/kmix.png
share/icons/hicolor/32x32/apps/kmix.png
share/icons/hicolor/48x48/apps/kmix.png
share/icons/hicolor/64x64/apps/kmix.png
share/kde4/services/kded/kmixd.desktop
share/kde4/services/kmixctrl_restore.desktop
share/kde4/services/plasma-engine-mixer.desktop
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor