Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 08:24:21 +0100
From:      Sid <sid@bsdmail.com>
To:        freebsd-ports@freebsd.org, gurenchan@gmail.com
Subject:   Re: Canberra
Message-ID:  <trinity-c56f90aa-5e22-497a-9574-d73cb24d73bd-1513668261752@3c-app-mailcom-lxa03>

next in thread | raw e-mail | index | archive | help
> blubee blubeeme
> I am porting py-canberra which isn't required but an
> optional dependency for another port that I am working on.

> I wonder should I leave it as is or make a dependency from this thing
you're working on instead?

> blubee blubeeme
> py-canberra is just a python wrapper for libcanberra

Perhaps audio/libcanberra should be a dependency of devel/pycanberra. audio/libcanberra-gtk3 looks like it has options and requests for unnecessary dependencies.

> Sid
> Canberra is an audio application for playing simple sounds like "DING!".
> For playing sound, I am convinced that graphical dependencies for audio/libcanberra and audio/libcanberra-gtk3 aren't needed: x11-toolkits/gtk30, x11-toolkits/gtk20, accessibility/atk.
> According to Freshports, both libcanberra and libcanberra-gtk3 refer to the file libcanberra-0.30.tar.xz of the same SHA256 and size.
> The difference between these two is one pulls in gtk3 as well.

libcanberra-gtk3 also has options for pulseaudio, and gstreamer. 

> Pango is for left to right text, perhaps for displaying audio information to the user.
> Its description is its "code is platform- and toolkit-independent."
> For it to display a simple banner or visual it shouldn't require heavy graphical dependencies.
> Also, Pango should be made into an option for Canberra, so it can definitely be compiled without atk, gtk30 or gtk20.
> Pango doesn't require these three graphical dependencies, so Canberra especially shouldn't.

> The port audio/freedesktop-sound-theme just has sound files, and no libraries.

pango and freedesktop-sound-themes should be options for libcanberra.

I'm convinced that gtk30, gtk20, atk, pulseaudio, and gstreamer shouldn't be options or required in libcanberra or libcanberra-gtk3. (pango and atk are not in the Makefiles, but Freshports shows them.)
libcanberra-gtk3 should be merged back into libcanberra. I've only tested removing all of these options for one port that asked for both canberra libraries, and it compiled and played sound.


Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-c56f90aa-5e22-497a-9574-d73cb24d73bd-1513668261752>