OpenCiv2: third-party software
==============================

The OpenCiv2 programs (the releases: OpenCiv2.exe, OpenCiv2, OpenCiv2.app)
contain the following software by others, under their licences, given in
full or as their notices require below.  The game itself (Civilization II)
is not included: it is set up from the player's own copy.

  1. unshield 1.6.2           MIT licence; its MD5 code: RSA's notice
  2. zlib 1.3.1               zlib licence
  3. libogg 1.3.5             BSD licence (3 clauses)
  4. libvorbis 1.3.7          BSD licence (3 clauses)
  5. stb_vorbis 1.22          MIT licence (or public domain)
  6. SDL 2                    zlib licence
  7. Indeo 4 decoder (FFmpeg) GNU LGPL 2.1 or later
  8. wasm2c runtime (wabt)    Apache License 2.0
  9. wasi-libc (wasi-sdk)     MIT licence (and others, see below)
 10. Liberation fonts 2.1.5   SIL Open Font License 1.1
 11. stb_image 2.30           MIT licence (or public domain)

and, not in the programs but used by them when the player installs it
(make hd, tools/fetch_hd_pack.py; docs/HD-GRAPHICS.md):

 12. openciv2-assets          MIT licence: the HD graphics' art

unshield, zlib (the set-up's reader of the CD's InstallShield cabinet),
libogg and libvorbis (its Ogg Vorbis encoder of the CD's music) are in the
program as their authors released them (tools/fetch-toolchain.sh); the
others as src/third_party and tools/build_port.py say.


1. unshield  https://github.com/twogood/unshield
------------------------------------------------

Copyright (c) 2003 David Eriksson <twogood@users.sourceforge.net>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


unshield's lib/md5 is derived from the RSA Data Security, Inc. MD5
Message-Digest Algorithm:

/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.

License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.

License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.
 */


2. zlib  https://zlib.net
-------------------------

Copyright notice:

 (C) 1995-2022 Jean-loup Gailly and Mark Adler

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

  Jean-loup Gailly        Mark Adler
  jloup@gzip.org          madler@alumni.caltech.edu


3. libogg  https://xiph.org/ogg/
--------------------------------

Copyright (c) 2002, Xiph.org Foundation

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 name of the Xiph.org Foundation nor the names of its
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 FOUNDATION
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.


4. libvorbis  https://xiph.org/vorbis/
--------------------------------------

Copyright (c) 2002-2020 Xiph.org Foundation

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 name of the Xiph.org Foundation nor the names of its
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 FOUNDATION
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.


5. stb_vorbis  https://github.com/nothings/stb  (src/third_party/stb_vorbis)
----------------------------------------------------------------------------

This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------


6. SDL 2  https://www.libsdl.org
--------------------------------

Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>

This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.



7. Indeo 4 decoder, from FFmpeg  https://ffmpeg.org  (src/third_party/indeo4)
-----------------------------------------------------------------------------

The game's videos are decoded with FFmpeg's Indeo 4 decoder (libavcodec's
indeo4.c, ivi.c, ivi_dsp.c and what they use), under the GNU Lesser General
Public License, version 2.1 or later.  Its source code, as built into the
program, is in src/third_party/indeo4 of OpenCiv2's repository, with the
licence's text, which is also beside this file (COPYING.LGPLv2.1) and at
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html


8. wasm2c runtime, from wabt  https://github.com/WebAssembly/wabt
-----------------------------------------------------------------

The game is compiled to WebAssembly and turned into C by wasm2c; the
runtime that C uses (wasm-rt-impl.c, wasm-rt-mem-impl.c,
wasm-rt-exceptions-impl.c and their headers) is wabt's:

  Copyright 2018 WebAssembly Community Group participants

  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

  (the licence's text is beside this file: LICENSE-Apache-2.0.txt)

  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.


9. wasi-libc, from wasi-sdk  https://github.com/WebAssembly/wasi-libc
---------------------------------------------------------------------

The game's C library (in its WebAssembly module) is wasi-libc, mostly
musl's code (MIT licence: Copyright (c) 2005-2020 Rich Felker, et al.),
under the licences in its repository: MIT, Apache License 2.0 with LLVM
exception, and others (https://github.com/WebAssembly/wasi-libc, files
LICENSE*).


10. Liberation fonts 2.1.5  https://github.com/liberationfonts
--------------------------------------------------------------

data/fonts_win.bin and data/fonts_win_aa.bin are the Liberation Serif,
Sans and Mono fonts (which have the widths of Times New Roman, Arial and
Courier New) rendered as bitmaps (tools/probe/fontdump.c, fontdump_aa.c).
As a Modified Version of the Font Software they are under the SIL Open
Font License 1.1, not OpenCiv2's licence, and are not named after the
Reserved Font Names.

  Digitized data copyright (c) 2010 Google Corporation
  with Reserved Font Arimo, Tinos and Cousine.
  Copyright (c) 2012 Red Hat, Inc. with Reserved Font Name Liberation.

  This Font Software is licensed under the SIL Open Font License,
  Version 1.1.

  SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

  PREAMBLE The goals of the Open Font License (OFL) are to stimulate
  worldwide development of collaborative font projects, to support the font
  creation efforts of academic and linguistic communities, and to provide
  a free and open framework in which fonts may be shared and improved in
  partnership with others.

  The OFL allows the licensed fonts to be used, studied, modified and
  redistributed freely as long as they are not sold by themselves.
  The fonts, including any derivative works, can be bundled, embedded,
  redistributed and/or sold with any software provided that any reserved
  names are not used by derivative works.  The fonts and derivatives,
  however, cannot be released under any other type of license.  The
  requirement for fonts to remain under this license does not apply to
  any document created using the fonts or their derivatives.



  DEFINITIONS
  "Font Software" refers to the set of files released by the Copyright
  Holder(s) under this license and clearly marked as such.
  This may include source files, build scripts and documentation.

  "Reserved Font Name" refers to any names specified as such after the
  copyright statement(s).

  "Original Version" refers to the collection of Font Software components
  as distributed by the Copyright Holder(s).

  "Modified Version" refers to any derivative made by adding to, deleting,
  or substituting -- in part or in whole --
  any of the components of the Original Version, by changing formats or
  by porting the Font Software to a new environment.

  "Author" refers to any designer, engineer, programmer, technical writer
  or other person who contributed to the Font Software.


  PERMISSION & CONDITIONS

  Permission is hereby granted, free of charge, to any person obtaining a
  copy of the Font Software, to use, study, copy, merge, embed, modify,
  redistribute, and sell modified and unmodified copies of the Font
  Software, subject to the following conditions:

  1) Neither the Font Software nor any of its individual components,in
     Original or Modified Versions, may be sold by itself.

  2) Original or Modified Versions of the Font Software may be bundled,
     redistributed and/or sold with any software, provided that each copy
     contains the above copyright notice and this license. These can be
     included either as stand-alone text files, human-readable headers or
     in the appropriate machine-readable metadata fields within text or
     binary files as long as those fields can be easily viewed by the user.

  3) No Modified Version of the Font Software may use the Reserved Font
     Name(s) unless explicit written permission is granted by the
     corresponding Copyright Holder. This restriction only applies to the
     primary font name as presented to the users.

  4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
     Software shall not be used to promote, endorse or advertise any
     Modified Version, except to acknowledge the contribution(s) of the
     Copyright Holder(s) and the Author(s) or with their explicit written
     permission.

  5) The Font Software, modified or unmodified, in part or in whole, must
     be distributed entirely under this license, and must not be distributed
     under any other license. The requirement for fonts to remain under
     this license does not apply to any document created using the Font
     Software.



  TERMINATION
  This license becomes null and void if any of the above conditions are not met.



  DISCLAIMER
  THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
  OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT.  IN NO EVENT SHALL THE
  COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
  DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
  DEALINGS IN THE FONT SOFTWARE.


11. stb_image  https://github.com/nothings/stb  (src/third_party/stb_image)
----------------------------------------------------------------------------

The PNG decoder of the HD graphics (src/platform/hd.c).  Like stb_vorbis
(5.), by Sean Barrett, available under 2 licences, whichever is preferred:
the MIT licence, Copyright (c) 2017 Sean Barrett, as in 5., or public
domain (www.unlicense.org); the full text is at the end of the file.


12. openciv2-assets  https://github.com/PeterJohnson/openciv2-assets
---------------------------------------------------------------------

The replacement art of the optional HD graphics, by Peter Johnson: the
release pinned in data/hd-pack.json, downloaded and installed by the player
(data/native/hd), with its LICENSE, THIRD-PARTY.txt (the notices of what
its art was made with) and ATLAS-PROVENANCE.md (how it was made).  Not part
of this repository nor of OpenCiv2's releases.

MIT License

Copyright (c) 2026 Peter Johnson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
