head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2013.01.10.23.03.35;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.11.20.23.18.40;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.08.30.14.54.17;	author flo;	state Exp;
branches;
next	1.1;

1.1
date	2012.07.26.21.49.58;	author flo;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310207
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310207 | flo | 2013-01-10 22:29:23 +0000 (Thu, 10 Jan 2013) | 9 lines
## SVN ##
## SVN ## - update www/firefox to 18.0
## SVN ## - update www/firefox-esr to 17.0.2
## SVN ## - update www/seamonkey to 2.15 (enigmail to 1.5.0)
## SVN ## - remove QT4 option to avoid confusion (it turned out to be too experimental)
## SVN ##
## SVN ## In collaboration with: Jan Beich <jbeich@@tormail.org>
## SVN ##
## SVN ## Security:	http://www.vuxml.org/freebsd/a4ed6632-5aa9-11e2-8fcb-c8600054b392.html
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@diff --git configure.in configure.in
index 5980b76..11f5f77 100644
--- configure.in
+++ configure.in
@@@@ -5618,11 +5618,25 @@@@ dnl ========================================================
 
 dnl If using sydneyaudio with Linux, ensure that the alsa library is available
 if test -n "$MOZ_SYDNEYAUDIO" -a "$OS_TARGET" = "Linux"; then
+    MOZ_ALSA=1
+fi
+
+MOZ_ARG_ENABLE_BOOL(alsa,
+[  --enable-alsa          Enable Alsa support (default on Linux)],
+MOZ_ALSA=1,
+MOZ_ALSA=)
+
+if test -n "$MOZ_ALSA"; then
+    AC_DEFINE(MOZ_CUBEB)
     PKG_CHECK_MODULES(MOZ_ALSA, alsa, ,
          [echo "$MOZ_ALSA_PKG_ERRORS"
           AC_MSG_ERROR([Need alsa for Ogg, Wave or WebM decoding on Linux.  Disable with --disable-ogg --disable-wave --disable-webm.  (On Ubuntu, you might try installing the package libasound2-dev.)])])
 fi
 
+AC_SUBST(MOZ_ALSA)
+AC_SUBST(MOZ_ALSA_CFLAGS)
+AC_SUBST(MOZ_ALSA_LIBS)
+
 dnl ========================================================
 dnl = Enable PulseAudio
 dnl ========================================================
@@@@ -8633,8 +8647,6 @@@@ AC_SUBST(MOZ_VP8_ERROR_CONCEALMENT)
 AC_SUBST(MOZ_VP8_ENCODER)
 AC_SUBST(MOZ_VP8)
 AC_SUBST(MOZ_OGG)
-AC_SUBST(MOZ_ALSA_LIBS)
-AC_SUBST(MOZ_ALSA_CFLAGS)
 AC_SUBST(VPX_AS)
 AC_SUBST(VPX_ASFLAGS)
 AC_SUBST(VPX_DASH_C_FLAG)
diff --git media/libcubeb/src/Makefile.in media/libcubeb/src/Makefile.in
index 5ab4dd8..c8df26f 100644
--- media/libcubeb/src/Makefile.in
+++ media/libcubeb/src/Makefile.in
@@@@ -24,10 +24,6 @@@@ endif
 
 ifeq ($(OS_TARGET),Android)
 # No Android implementation of libcubeb yet.
-else ifeq ($(OS_TARGET),Linux)
-CSRCS         = \
-              cubeb_alsa.c \
-              $(NULL)
 endif
 
 ifeq ($(OS_TARGET),Darwin)
@@@@ -42,6 +38,12 @@@@ CSRCS           = \
                 $(NULL)
 endif
 
+ifdef MOZ_ALSA
+CSRCS         = \
+              cubeb_alsa.c \
+              $(NULL)
+endif
+
 ifdef MOZ_PULSEAUDIO
 CSRCS		= \
 		cubeb_pulse.c \
diff --git media/libsydneyaudio/src/Makefile.in media/libsydneyaudio/src/Makefile.in
index 8dda8ce..b19641d 100644
--- media/libsydneyaudio/src/Makefile.in
+++ media/libsydneyaudio/src/Makefile.in
@@@@ -30,10 +30,6 @@@@ else ifeq ($(MOZ_WIDGET_TOOLKIT),android)
 CSRCS		= \
 		sydney_audio_android.c \
 		$(NULL)
-else ifeq ($(OS_ARCH),Linux)
-CSRCS		= \
-		sydney_audio_alsa.c \
-		$(NULL)
 endif
 
 ifeq ($(OS_ARCH),WINNT)
@@@@ -68,6 +64,18 @@@@ CSRCS		= \
 		$(NULL)
 endif
 
+ifdef MOZ_ALSA
+CSRCS		= \
+		sydney_audio_alsa.c \
+		$(NULL)
+endif
+
+ifdef MOZ_PULSEAUDIO
+CSRCS		= \
+		sydney_audio_pulseaudio.c \
+		$(NULL)
+endif
+
 ifeq ($(OS_ARCH),WINNT)
 OS_LIBS += winmm.lib
 endif
diff --git toolkit/library/Makefile.in toolkit/library/Makefile.in
index 43384e9..e46a6e3 100644
--- toolkit/library/Makefile.in
+++ toolkit/library/Makefile.in
@@@@ -370,14 +370,11 @@@@ endif
 
 EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib) 
 
-ifdef MOZ_SYDNEYAUDIO
-ifeq ($(OS_ARCH),Linux)
+ifneq (,$(MOZ_CUBEB)$(MOZ_SYDNEYAUDIO))
+ifdef MOZ_ALSA
 EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
 endif
-endif
-
 ifdef MOZ_PULSEAUDIO
-ifdef MOZ_CUBEB
 EXTRA_DSO_LDOPTS += $(MOZ_PULSEAUDIO_LIBS)
 endif
 endif
@


1.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307606
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307606 | flo | 2012-11-20 23:01:15 +0000 (Tue, 20 Nov 2012) | 14 lines
## SVN ##
## SVN ## - Update firefox and thunderbird to 17.0
## SVN ## - Update seamonkey to 2.14
## SVN ## - Update ESR ports and libxul to 10.0.11
## SVN ## - support more h264 codecs when using GSTREAMER with YouTube
## SVN ## - Unbreak firefox-esr, thunderbird-esr and libxul on head >= 1000024 [1]
## SVN ## - Buildsystem is not python 3 aware, use python up to 2.7 [2]
## SVN ##
## SVN ## PR:		ports/173679 [1]
## SVN ## Submitted by:	swills [1], demon [2]
## SVN ## In collaboration with:	Jan Beich <jbeich@@tormail.org>
## SVN ## Security:	d23119df-335d-11e2-b64c-c8600054b392
## SVN ## Approved by:	portmgr (beat)
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 3
@@@@ -5600,13 +5600,25 @@@@ dnl ========================================================
 dnl = Check alsa availability on Linux if using sydneyaudio
 dnl ========================================================
d7 5
d15 1
a15 7
+MOZ_ALSA= MOZ_ALSA_FORCE=$enableval)
+
 dnl If using sydneyaudio with Linux, ensure that the alsa library is available
-if test -n "$MOZ_SYDNEYAUDIO" -a "$OS_TARGET" = "Linux"; then
+if test -n "$MOZ_SYDNEYAUDIO" -a "$OS_TARGET" = "Linux" -a "$MOZ_ALSA_FORCE" != "no"; then
+    MOZ_ALSA=1
+fi
d25 2
d31 9
@


1.2
log
@SVN rev 303378 on 2012-08-30 14:54:17Z by flo

- update firefox and thunderbird to 15.0
- update firefox-esr, thunderbird-esr, linux-thunderbird and linux-firefox to 10.0.7
- update seamonkey and linux-seamonkey to 2.12
- update nss to 3.13.6
- update bsdipc code (posix_spawn, SysV shared memory)
- rename patches to easily track those not (yet) submitted upstream
- reduce package size, except for www/libxul[1]
- restore default objdir to what it was in 13.0
- fix mail/enigmail after thunderbird build changes
- don't accidentally pick up headers from installed ports[3]
- add support for PREFIX != LOCALBASE to Makefile.webplugins [4]
- document vulnerabilities in vuln.xml
- *miscellaneous cleanups and fixups*

Obtained from:	OpenBSD ports[1]
PR:		ports/159831, ports/160933, ports/170467[3], ports/170236 [4]
Submitted by:	avilla [4]
In collaboration with:	Jan Beich <jbeich@@tormail.net> Who did most of the hard
			work.
@
text
@a0 19
diff --git config/autoconf.mk.in config/autoconf.mk.in
index 44c0b06..748511b 100644
--- config/autoconf.mk.in
+++ config/autoconf.mk.in
@@@@ -536,9 +536,14 @@@@ MOZ_LIBNOTIFY_CFLAGS	= @@MOZ_LIBNOTIFY_CFLAGS@@
 MOZ_LIBNOTIFY_LIBS	= @@MOZ_LIBNOTIFY_LIBS@@
 MOZ_ENABLE_LIBNOTIFY	= @@MOZ_ENABLE_LIBNOTIFY@@
 
+MOZ_ALSA                = @@MOZ_ALSA@@
 MOZ_ALSA_LIBS           = @@MOZ_ALSA_LIBS@@
 MOZ_ALSA_CFLAGS         = @@MOZ_ALSA_CFLAGS@@
 
+MOZ_PULSEAUDIO          = @@MOZ_PULSEAUDIO@@
+MOZ_PULSEAUDIO_LIBS     = @@MOZ_PULSEAUDIO_LIBS@@
+MOZ_PULSEAUDIO_CFLAGS   = @@MOZ_PULSEAUDIO_CFLAGS@@
+
 GLIB_CFLAGS	= @@GLIB_CFLAGS@@
 GLIB_LIBS	= @@GLIB_LIBS@@
 GLIB_GMODULE_LIBS	= @@GLIB_GMODULE_LIBS@@
d5 1
a5 1
@@@@ -5600,13 +5600,45 @@@@ dnl ========================================================
a28 20
+dnl ========================================================
+dnl = Enable PulseAudio
+dnl ========================================================
+
+MOZ_ARG_ENABLE_BOOL(pulseaudio,
+[  --enable-pulseaudio          Enable PulseAudio support],
+MOZ_PULSEAUDIO=1,
+MOZ_PULSEAUDIO=)
+
+if test -n "$MOZ_PULSEAUDIO"; then
+    AC_DEFINE(MOZ_CUBEB)
+    PKG_CHECK_MODULES(MOZ_PULSEAUDIO, libpulse, ,
+         [echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
+          AC_MSG_ERROR([pulseaudio audio backend requires libpulse package])])
+fi
+
+AC_SUBST(MOZ_PULSEAUDIO_CFLAGS)
+AC_SUBST(MOZ_PULSEAUDIO_LIBS)
+AC_SUBST(MOZ_PULSEAUDIO)
+
d30 1
a30 1
 dnl = Enable GStreamer
d47 1
a47 1
@@@@ -42,4 +38,16 @@@@ CSRCS           = \
d57 3
a59 19
+ifdef MOZ_PULSEAUDIO
+CSRCS		= \
+		cubeb_pulse.c \
+		$(NULL)
+endif
+
 include $(topsrcdir)/config/rules.mk
diff --git media/libcubeb/src/cubeb_alsa.c media/libcubeb/src/cubeb_alsa.c
index 599aea2..41fd5af 100644
--- media/libcubeb/src/cubeb_alsa.c
+++ media/libcubeb/src/cubeb_alsa.c
@@@@ -6,6 +6,6 @@@@
 #undef NDEBUG
 #define _BSD_SOURCE
-#define _POSIX_SOURCE
+#define _XOPEN_SOURCE 500
 #include <pthread.h>
 #include <sys/time.h>
 #include <assert.h>
d98 1
a98 1
@@@@ -379,10 +379,13 @@@@ endif
d108 6
a113 3
+ifdef MOZ_PULSEAUDIO
+EXTRA_DSO_LDOPTS += $(MOZ_PULSEAUDIO_LIBS)
+endif
a114 2
 
 ifdef HAVE_CLOCK_MONOTONIC
@


1.1
log
@SVN rev 301582 on 2012-07-26 21:49:58Z by flo

- update firefox/thunderbird ESR versions to 10.0.6
- update firefox 14.0.1
- update thunderbird to 14.0
- update seamonkey to 2.11
- switch to new options framework
- add experimental rendering via cairo-qt (QT4 option)
- add audio backend options (ALSA and PulseAudio)
- rename SMB option to GNOMEVFS2
- turn on LOGGING by default (like upstream linux builds)
- improve about:memory output
- unbreak PGO
- use system libs [1]
- switch to libevent2 [2]
- fix conflict with devel/libunwind and base gcc [3]
- unbreak clang/libc++ build [4]
- unbreak build with base gcc on >= 9.x [5]
- use common IPC code with other BSDs[6]
- and *miscellaneous improvements*

PR:		ports/146231 [1], ports/161421 [2]
		ports/150631, ports/168369, ports/168637, ports/168793, ports/168978 [3]
		ports/163454, ports/164905, ports/169231 [4]
       		ports/169389, ports/169479 [5]
Obtained from:	pkgsrc via bugzilla #753046 [6]
In collaboration with:	Jan Beich (who did the major part of this work and
			deserves a special thank you!)
@
text
@d1 3
a3 1
--- config/autoconf.mk.in~
d5 1
a5 1
@@@@ -568,8 +568,13 @@@@ MOZ_LIBNOTIFY_CFLAGS	= @@MOZ_LIBNOTIFY_CF
d12 1
a12 1
+
d16 1
a16 1
 
d19 4
a22 1
--- configure.in~
d24 1
a24 1
@@@@ -5758,17 +5775,47 @@@@ dnl ====================================
d29 1
a29 1
+[  --enable-alsa          Enable Alsa support],
d34 3
a36 7
-if test -n "$MOZ_SYDNEYAUDIO"; then
+if test -n "$MOZ_SYDNEYAUDIO" -a "$MOZ_ALSA_FORCE" != "no"; then
    case "$target_os" in
 linux*)
+      MOZ_ALSA=1
+      ;;
+   esac
d40 2
a41 1
       PKG_CHECK_MODULES(MOZ_ALSA, alsa, ,
a43 2
-      ;;
-   esac
d58 1
d69 1
a69 1
 dnl Permissions System
d71 47
a117 1
--- media/libsydneyaudio/src/Makefile.in~
d149 3
a151 1
--- toolkit/library/Makefile.in~
d153 1
a153 1
@@@@ -375,10 +375,12 @@@@ endif
d159 1
a162 1
+
d165 1
@

