Commit 8ed234d7 authored by Olivier Duchateau's avatar Olivier Duchateau
Browse files

- Bump PORTREVISION due to new port audio/libcanberra-gtk2

parent d2b465fc
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: head/audio/libcanberra-gtk3/Makefile 548219 2020-09-10 18:55:41Z tcberner $
# $MCom: ports/trunk/audio/libcanberra-gtk3/Makefile 19814 2014-08-15 20:17:00Z gusi $
CATEGORIES= audio devel
MAINTAINER= desktop@FreeBSD.org
COMMENT= Gtk+ 2 bindings for libcanberra
MASTERDIR= ${.CURDIR}/../../audio/libcanberra
PLIST= ${.CURDIR}/pkg-plist
_SLAVE_PORT= gtk2
do-install:
@${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/
.for i in .so .so.0 .so.0.1.9
${INSTALL_LIB} ${WRKSRC}/src/.libs/libcanberra-gtk${i} \
${STAGEDIR}${PREFIX}/lib/
.endfor
@cd ${WRKSRC}/src && env DESTDIR=${STAGEDIR} ${GMAKE} install-gtkmoduleLTLIBRARIES
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gtk-2.0/modules/libcanberra-gtk-module.so
.include "${MASTERDIR}/Makefile"
lib/gtk-2.0/modules/libcanberra-gtk-module.so
lib/libcanberra-gtk.so
lib/libcanberra-gtk.so.0
lib/libcanberra-gtk.so.0.1.9
libdata/pkgconfig/libcanberra-gtk.pc
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: head/audio/libcanberra-gtk3/Makefile 548219 2020-09-10 18:55:41Z tcberner $
# $MCom: ports/trunk/audio/libcanberra-gtk3/Makefile 19814 2014-08-15 20:17:00Z gusi $
CATEGORIES= audio devel
MAINTAINER= desktop@FreeBSD.org
COMMENT= Gtk+ 3 bindings for libcanberra
MASTERDIR= ${.CURDIR}/../../audio/libcanberra
PLIST= ${.CURDIR}/pkg-plist
_SLAVE_PORT= gtk3
pre-build:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnome-settings-daemon-3.0/gtk-modules
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gdm/autostart/LoginWindow
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/autostart
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/shutdown
@${MKDIR} ${STAGEDIR}${PREFIX}/share/vala/vapi
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/src/.libs/canberra-gtk-play \
${STAGEDIR}${PREFIX}/bin/
@${INSTALL_DATA} ${WRKSRC}/src/canberra-gtk.h \
${STAGEDIR}${PREFIX}/include/
@${INSTALL_DATA} ${WRKSRC}/src/canberra-gtk-module.desktop \
${STAGEDIR}${PREFIX}/lib/gnome-settings-daemon-3.0/gtk-modules/
@${INSTALL_DATA} ${WRKSRC}/src/libcanberra-ready-sound.desktop \
${STAGEDIR}${PREFIX}/share/gdm/autostart/LoginWindow/
@${INSTALL_DATA} ${WRKSRC}/src/libcanberra-login-sound.desktop \
${STAGEDIR}${PREFIX}/share/gnome/autostart/
@${INSTALL_SCRIPT} ${WRKSRC}/src/libcanberra-logout-sound.sh \
${STAGEDIR}${PREFIX}/share/gnome/shutdown/
@${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk3.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/
@${INSTALL_DATA} ${WRKSRC}/vala/libcanberra-gtk.vapi \
${STAGEDIR}${PREFIX}/share/vala/vapi/
.for i in .so .so.0 .so.0.1.9
${INSTALL_LIB} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \
${STAGEDIR}${PREFIX}/lib/
.endfor
@cd ${WRKSRC}/src && env DESTDIR=${STAGEDIR} ${GMAKE} install-gtk3moduleLTLIBRARIES
${LN} -sf libcanberra-gtk3-module.so \
${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules/libcanberra-gtk-module.so
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/canberra-gtk-play
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules/libcanberra-gtk3-module.so
.include "${MASTERDIR}/Makefile"
bin/canberra-gtk-play
include/canberra-gtk.h
lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop
lib/gtk-3.0/modules/libcanberra-gtk-module.so
lib/gtk-3.0/modules/libcanberra-gtk3-module.so
lib/libcanberra-gtk3.so
lib/libcanberra-gtk3.so.0
lib/libcanberra-gtk3.so.0.1.9
libdata/pkgconfig/libcanberra-gtk3.pc
share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
share/gnome/autostart/libcanberra-login-sound.desktop
share/gnome/shutdown/libcanberra-logout-sound.sh
share/vala/vapi/libcanberra-gtk.vapi
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: head/audio/libcanberra/Makefile 548219 2020-09-10 18:55:41Z tcberner $
# $MCom: ports/trunk/audio/libcanberra/Makefile 20031 2014-11-02 21:47:55Z kwm $
PORTNAME= libcanberra
PORTVERSION= 0.30
PORTREVISION= 6
CATEGORIES= audio devel
MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/ \
http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/
MAINTAINER= desktop@FreeBSD.org
COMMENT= Implementation of the Freedesktop sound theme spec
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LGPL
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libltdl.so:devel/libltdl \
libpulse.so:audio/pulseaudio
USES= gmake gnome libtool pathfix pkgconfig tar:xz
USE_GNOME= gnomeprefix glib20
USE_GSTREAMER1= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa \
--without-html-dir \
--without-systemdsystemunitdir
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
_SLAVE_PORT?= main
PLIST_SUB= VERSION=${PORTVERSION}
.if ${_SLAVE_PORT} == main
CONFIGURE_ARGS+=--disable-gtk3 \
--disable-gtk
.else
PKGNAMESUFFIX= -${_SLAVE_PORT}
LIB_DEPENDS+= libcanberra.so:audio/libcanberra \
libharfbuzz.so:print/harfbuzz
USES+= xorg
USE_GNOME+= atk cairo gdkpixbuf2 pango
USE_XORG= x11
INSTALL_TARGET= # empty
.endif
# GTK slave ports
.if ${_SLAVE_PORT} == gtk2
# It avoids conflict
LIB_DEPENDS+= libcanberra-gtk3.so:audio/libcanberra-gtk3
USE_GNOME+= gtk20
CONFIGURE_ARGS+=--disable-gtk3 --enable-gtk
.elif ${_SLAVE_PORT} == gtk3
USE_GNOME+= gtk30
CONFIGURE_ARGS+=--enable-gtk3 --disable-gtk
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
.include <bsd.port.mk>
SHA256 (libcanberra-0.30.tar.xz) = c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
SIZE (libcanberra-0.30.tar.xz) = 318960
gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland
Obtained from: upstream (c0620e432650e81062c1967cc669829dbd29b310)
--- src/canberra-gtk-module.c.orig
+++ src/canberra-gtk-module.c
@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {
guchar *data = NULL;
gint ret = -1;
+#ifdef GDK_IS_X11_DISPLAY
+ if (!GDK_IS_X11_DISPLAY(d))
+ return 0;
+#endif
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),
gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"),
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) {
guchar *data = NULL;
gint ret = -1;
+#ifdef GDK_IS_X11_DISPLAY
+ if (!GDK_IS_X11_DISPLAY(d))
+ return 0;
+#endif
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)),
gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"),
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) {
gboolean ret = FALSE;
Atom xembed;
+#ifdef GDK_IS_X11_DISPLAY
+ if (!GDK_IS_X11_DISPLAY(d))
+ return FALSE;
+#endif
+
/* Gnome Panel applets are XEMBED windows. We need to make sure we
* ignore them */
--- src/canberra-gtk.c.orig
+++ src/canberra-gtk.c
@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {
guchar *data = NULL;
gint ret = -1;
+#ifdef GDK_IS_X11_DISPLAY
+ if (!GDK_IS_X11_DISPLAY(d))
+ return 0;
+#endif
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),
gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"),
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
--- src/oss.c.orig 2011-02-23 01:51:00 UTC
+++ src/oss.c
@@ -259,7 +259,7 @@ static int open_oss(ca_context *c, struc
val = AFMT_S16_NE;
break;
case CA_SAMPLE_S16RE:
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if _BYTE_ORDER == _LITTLE_ENDIAN
val = AFMT_S16_BE;
#else
val = AFMT_S16_LE;
Libcanberra is an implementation of the Freedesktop Sound Theme
specification. It allows developers to play sounds given a list of events.
WWW: http://0pointer.de/lennart/projects/libcanberra/
include/canberra.h
lib/libcanberra.so
lib/libcanberra.so.0
lib/libcanberra.so.0.2.5
lib/libcanberra-%%VERSION%%/libcanberra-gstreamer.so
lib/libcanberra-%%VERSION%%/libcanberra-multi.so
lib/libcanberra-%%VERSION%%/libcanberra-null.so
lib/libcanberra-%%VERSION%%/libcanberra-oss.so
lib/libcanberra-%%VERSION%%/libcanberra-pulse.so
libdata/pkgconfig/libcanberra.pc
share/vala/vapi/libcanberra.vapi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment