Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mediastreamer2
Source: https://gitlab.linphone.org/BC/public/mediastreamer2
Upstream-Contact: https://www.linphone.org/contact
Files-Excluded: include/OpenGL/*
 tester/*

Files: *
Copyright: 2006-2022 Belledonne Communications SARL, Grenoble, France
License: GPL-3+

Files:
 include/mediastreamer2/msvideoswitcher.h
 include/mediastreamer2/upnp_igd.h
 src/audiofilters/msiounit.mm
 src/videofilters/ioscapture.m
 src/videofilters/iosdisplay.mm
 src/videofilters/msosxdisplay.m
 src/videofilters/qtcapture.m
 src/voip/ioshardware.m
 src/voip/offeranswer.c
 src/voip/scaler_arm.S
Copyright: 2006-2021 Belledonne Communications SARL, Grenoble, France
License: GPL-2+

Files: src/audiofilters/aqsnd.m
Copyright: 2008  Hiroki Mori (himori@users.sourceforge.net)
           2006  Simon MORLAT (simon.morlat@linphone.org)
License: GPL-2+

Files:
 src/utils/g722_decode.c
 src/utils/g722_encode.c
 src/utils/g722.h
Copyright: 2005 Steve Underwood
           1993 CMU Computer Science, Speech Group, Chengxiang Lu and Alex Hauptmann
Comment: NOTE: this code was relicensed to LGPL-2.1 in newer copies of spandsp
License: Public-domain
 Despite my general liking of the GPL, I place my own contributions
 to this code in the public domain for the benefit of all mankind -
 even the slimy ones who might try to proprietize my work and use it
 to my detriment.

Files: src/android/media/*
Copyright: 2014 The Android Open Source Project
License: Apache-2.0

Files:
 src/audiofilters/macsnd.c
Copyright: 2007  Hiroki Mori
           2010-2019 Belledonne Communications SARL.
License: GPL-3+

# See comment at the license body
Files:
 src/audiofilters/g711.c
 src/audiofilters/g711.h
Copyright: Sun Microsystems, Inc.
License: Sun

Files:
 src/utils/opengl_debug.h
 src/utils/shader_util.c
 src/utils/shader_util.h
Copyright: 2014 Apple Inc. All Rights Reserved.
           2017 Belledonne Communications SARL.
License: Apple

Files:
 src/utils/dsptools.c
 include/mediastreamer2/dsptools.h
Copyright: 2002-2006 Jean-Marc Valin
           2010-2019 Belledonne Communications SARL.
License: GPL-3+

Files:
 src/android/AudioTrack.h
 src/android/audio.h
Copyright: 2007, 2011 The Android Open Source Project
License: Apache-2.0

Files:
 src/utils/_kiss_fft_guts.h
 src/utils/kiss_fft.c
 src/utils/kiss_fftr.c
Copyright:
 2003-2004 Mark Borgerding,
 2005-2007 Jean-Marc Valin
License: BSD-3-clause

Files:
 src/upnp/upnp_igd.c
 src/upnp/upnp_igd_cmd.c
 src/upnp/upnp_igd_private.h
 src/upnp/upnp_igd_utils.c
 src/upnp/upnp_igd_utils.h
Copyright: 2000-2003 Intel Corporation
License: BSD-3-clause

Files:
 src/ortp-deps/b64.c
 src/ortp-deps/ortp/b64.h
Copyright: 2004-2008 Matthew Wilson and Synesis Software
License: BSD-3-clause

Files:
 include/MSVC/inttypes.h
 include/MSVC/stdint.h
Copyright: 2006-2008 Alexander Chemeris
License: GPL-3+

Files: debian/*
Copyright: 2015 Felix Lechner <felix.lechner@gmail.com>
           2020-2022 Bernhard Schmidt <berni@debian.org>
           2021-2022 Dennis Filder <d.filder@web.de>
License: GPL-3+

Files:
 cmake/*
 build/android/Android.mk
 help/CMakeLists.txt
 CMakeLists.txt
 build/CMakeLists.txt
 src/voip/h26x/CMakeLists.txt
 src/CMakeLists.txt
 tools/CMakeLists.txt
 include/CMakeLists.txt
Copyright: 2010-2021  Belledonne Communications, Grenoble, France
License: GPL-2+

License: GPL-2+
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
 .
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public
 License along with this program. If not, see
 <http://www.gnu.org/licenses/>
 .
 On Debian systems, the complete text of the GNU General Public
 License version 2 can be found in
 "/usr/share/common-licenses/GPL-2".

License: GPL-3+
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 .
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 .
 On Debian systems, the complete text of the GNU General Public
 License version 3 can be found in
 "/usr/share/common-licenses/GPL-3".

License: LGPL-2.1+
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
 .
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
 .
 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the
 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 Boston, MA 02110-1301, USA
 .
 On Debian systems, the complete text of the GNU Lesser General
 Public License version 2.1 can be found in
 "/usr/share/common-licenses/LGPL-2.1".

License: Apache-2.0
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 .
      http://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

License: BSD-3-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 .
    * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
    copyright notice, this list of conditions and the following
    disclaimer in the documentation and/or other materials provided
    with the distribution.
    * Neither the author nor the names of any contributors may be
    used to endorse or promote products derived from this software
    without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

License: Apple
 This Apple software is supplied to you by Apple Inc. ("Apple") in
 consideration of your agreement to the following terms, and your use,
 installation, modification or redistribution of this Apple software
 constitutes acceptance of these terms.  If you do not agree with
 these terms, please do not use, install, modify or redistribute this
 Apple software.
 .
 In consideration of your agreement to abide by the following terms, and
 subject to these terms, Apple grants you a personal, non-exclusive
 license, under Apple's copyrights in this original Apple software (the
 "Apple Software"), to use, reproduce, modify and redistribute the Apple
 Software, with or without modifications, in source and/or binary forms;
 provided that if you redistribute the Apple Software in its entirety and
 without modifications, you must retain this notice and the following
 text and disclaimers in all such redistributions of the Apple Software.
 Neither the name, trademarks, service marks or logos of Apple Inc. may
 be used to endorse or promote products derived from the Apple Software
 without specific prior written permission from Apple.  Except as
 expressly stated in this notice, no other rights or licenses, express or
 implied, are granted by Apple herein, including but not limited to any
 patent rights that may be infringed by your derivative works or by other
 works in which the Apple Software may be incorporated.
 .
 The Apple Software is provided by Apple on an "AS IS" basis.  APPLE
 MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
 THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
 FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
 OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
 .
 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
 MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
 AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
 STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

# This one might actually be problematic as the license does not talk about redistribution and sales.
# Previous discussion:
# * this post (Michael Poole) thinks its fine: <https://lists.debian.org/debian-legal/2006/06/msg00288.html>
# * this post (Paul Wise) calls it broken: <https://lists.debian.org/debian-legal/2009/11/msg00017.html>
# an older, different copy (speaking of CMU) here: https://pastebin.com/jPahv6SY
# This license document from Oracle for its Enterprise Communications Broker PCZ1.0.0 mentions G.711 and has the license in it: https://docs.oracle.com/cd/E55725_01/doc/ecb_pcz200_license.pdf
License: Sun
 This source code is a product of Sun Microsystems, Inc. and is provided
 for unrestricted use.  Users may copy or modify this source code without
 charge.
 .
 SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING
 THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
 PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
 .
 Sun source code is provided with no support and without any obligation on
 the part of Sun Microsystems, Inc. to assist in its use, correction,
 modification or enhancement.
 .
 SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
 INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE
 OR ANY PART THEREOF.
 .
 In no event will Sun Microsystems, Inc. be liable for any lost revenue
 or profits or other special, indirect and consequential damages, even if
 Sun has been advised of the possibility of such damages.
