diff --git a/talimatname/genel/pavucontrol/pavucontrol-gtk2.patch b/talimatname/genel/pavucontrol/pavucontrol-gtk2.patch new file mode 100644 index 000000000..ae29c674e --- /dev/null +++ b/talimatname/genel/pavucontrol/pavucontrol-gtk2.patch @@ -0,0 +1,32 @@ +diff -u -r pavucontrol-2.0.orig/src/devicewidget.cc pavucontrol-2.0/src/devicewidget.cc +--- pavucontrol-2.0.orig/src/devicewidget.cc 2014-11-10 10:30:36.273878918 +0900 ++++ pavucontrol-2.0/src/devicewidget.cc 2014-11-10 10:39:18.554891364 +0900 +@@ -63,8 +63,13 @@ + for (unsigned i = 0; i < PA_CHANNELS_MAX; i++) + channelWidgets[i] = NULL; + ++#ifdef HAVE_GTK3 + offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); + offsetButton->configure(offsetAdjustment, 0, 2); ++#else ++ offsetAdjustment = new Gtk::Adjustment(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); ++ offsetButton->configure(*offsetAdjustment, 0, 2); ++#endif + } + + void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) { +diff -u -r pavucontrol-2.0.orig/src/devicewidget.h pavucontrol-2.0/src/devicewidget.h +--- pavucontrol-2.0.orig/src/devicewidget.h 2014-11-10 10:30:36.273878918 +0900 ++++ pavucontrol-2.0/src/devicewidget.h 2014-11-10 10:39:12.869891228 +0900 +@@ -98,7 +98,11 @@ + Gtk::HBox *portSelect, *offsetSelect; + Gtk::ComboBox *portList; + Glib::RefPtr treeModel; ++#ifdef HAVE_GTK3 + Glib::RefPtr offsetAdjustment; ++#else ++ Gtk::Adjustment *offsetAdjustment; ++#endif + + private: + Glib::ustring mDeviceType; diff --git a/talimatname/genel/pavucontrol/talimat b/talimatname/genel/pavucontrol/talimat new file mode 100644 index 000000000..4098b31bb --- /dev/null +++ b/talimatname/genel/pavucontrol/talimat @@ -0,0 +1,28 @@ +# Description: Pulseaudio graphical mixer +# URL: http://www.freedesktop.org/software/pulseaudio/pavucontrol/ +# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve +# packager: milisarge +# Depends on: pulseaudio gtk2 libcanberra gtkmm libsigc++ + +name=pavucontrol +version=2.0 +release=1 +source=(http://freedesktop.org/software/pulseaudio/pavucontrol/$name-$version.tar.xz pavucontrol-gtk2.patch) + +build() { + cd $name-$version + + # Fix gtk2 compilation + patch -p1 -i $SRC/pavucontrol-gtk2.patch + + export CXXFLAGS="$CXXFLAGS -std=c++11" + ./configure \ + --prefix=/usr \ + --disable-gtk3 \ + --disable-lynx \ + --disable-dependency-tracking + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/doc +}