wok rev 17980

Add pavucontrol
author Richard Dunbar <mojo@slitaz.org>
date Sun Apr 19 11:47:11 2015 -0400 (2015-04-19)
parents f6642d800b04
children adb299446f40
files pavucontrol/receipt pavucontrol/stuff/pavucontrol-2.0-gtk2.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pavucontrol/receipt	Sun Apr 19 11:47:11 2015 -0400
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pavucontrol"
     1.7 +VERSION="2.0"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="A GTK volume control for PulseAudio"
    1.10 +MAINTAINER="mojo@slitaz.org"
    1.11 +LICENSE="LGPL2.1 GPL2 MIT"
    1.12 +WEB_SITE="http://freedesktop.org/software/pulseaudio/pavucontrol"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.14 +WGET_URL="$WEB_SITE/$TARBALL"
    1.15 +
    1.16 +DEPENDS="gnome-icon-theme libcanberra gtkmm libsigc++"
    1.17 +BUILD_DEPENDS="intltool lynx libcanberra-dev gtkmm-dev libsigc++-dev \
    1.18 +pulseaudio-dev libglade-dev libglademm-dev libltdl"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +        patch -Np1 -i $stuff/pavucontrol-2.0-gtk2.patch
    1.24 +	./configure $CONFIGURE_ARGS --disable-gtk3 \
    1.25 +        && make && make install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	cp -a $install/* $fs
    1.32 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pavucontrol/stuff/pavucontrol-2.0-gtk2.patch	Sun Apr 19 11:47:11 2015 -0400
     2.3 @@ -0,0 +1,47 @@
     2.4 +From 0aa2afc1b5ce24329f65c507111bfc1de5c53706 Mon Sep 17 00:00:00 2001
     2.5 +From: Alam Arias <Alam.GBC@gmail.com>
     2.6 +Date: Fri, 8 Mar 2013 13:33:42 -0500
     2.7 +Subject: [PATCH] added back support for gtkmm-2.4 builds
     2.8 +
     2.9 +---
    2.10 + src/devicewidget.cc | 5 +++++
    2.11 + src/devicewidget.h  | 4 ++++
    2.12 + 2 files changed, 9 insertions(+)
    2.13 +
    2.14 +diff --git a/src/devicewidget.cc b/src/devicewidget.cc
    2.15 +index 1c34ea6..1a148ee 100644
    2.16 +--- a/src/devicewidget.cc
    2.17 ++++ b/src/devicewidget.cc
    2.18 +@@ -63,8 +63,13 @@
    2.19 +     for (unsigned i = 0; i < PA_CHANNELS_MAX; i++)
    2.20 +         channelWidgets[i] = NULL;
    2.21 + 
    2.22 ++#ifdef HAVE_GTK3
    2.23 +     offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0);
    2.24 +     offsetButton->configure(offsetAdjustment, 0, 2);
    2.25 ++#else
    2.26 ++    offsetAdjustment = new Gtk::Adjustment(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0);
    2.27 ++    offsetButton->configure(*offsetAdjustment, 0.0, 2);
    2.28 ++#endif  /* HAVE_GTK3 */
    2.29 + }
    2.30 + 
    2.31 + void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) {
    2.32 +diff --git a/src/devicewidget.h b/src/devicewidget.h
    2.33 +index d2dff51..586c2cf 100644
    2.34 +--- a/src/devicewidget.h
    2.35 ++++ b/src/devicewidget.h
    2.36 +@@ -98,7 +98,11 @@ class DeviceWidget : public MinimalStreamWidget {
    2.37 +     Gtk::HBox *portSelect, *offsetSelect;
    2.38 +     Gtk::ComboBox *portList;
    2.39 +     Glib::RefPtr<Gtk::ListStore> treeModel;
    2.40 ++#ifdef HAVE_GTK3
    2.41 +     Glib::RefPtr<Gtk::Adjustment> offsetAdjustment;
    2.42 ++#else
    2.43 ++    Gtk::Adjustment *offsetAdjustment;
    2.44 ++#endif /* HAVE_GTK3 */
    2.45 + 
    2.46 + private:
    2.47 +     Glib::ustring mDeviceType;
    2.48 +-- 
    2.49 +1.8.1.6
    2.50 +