summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xthird_party/devscripts/licensecheck.pl11
-rwxr-xr-xtools/checklicenses/checklicenses.py3
2 files changed, 14 insertions, 0 deletions
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl
index 5e03327..77dc370 100755
--- a/third_party/devscripts/licensecheck.pl
+++ b/third_party/devscripts/licensecheck.pl
@@ -630,6 +630,17 @@ sub parselicense($) {
$license = $license . "Khronos Group";
}
+ if ($licensetext =~ /This file is part of the FreeType project, and may only be used(,)? modified(,)? and distributed under the terms of the FreeType project license, LICENSE\.TXT\. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully/) {
+ $license = "FreeType (BSD like) $license";
+ }
+ if ($licensetext =~ /This software, and all works of authorship, whether in source or object code form as indicated by the copyright notice.*is made available, and may only be used, modified, and distributed under the FreeType Project License, LICENSE\.TXT\. Additionally, subject to the terms and conditions of the FreeType Project License, each contributor to the Work hereby grants to any individual or legal entity exercising permissions granted by the FreeType Project License and this section.*a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable.*patent license to make/) {
+ $license = "FreeType (BSD like) with patent clause $license";
+ }
+
+ if ($licensetext =~ /Anti-Grain Geometry.*Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided as is without express or impl/) {
+ $license = "Anti-Grain Geometry $license";
+ }
+
$license = "UNKNOWN" unless $license;
# Remove trailing spaces.
diff --git a/tools/checklicenses/checklicenses.py b/tools/checklicenses/checklicenses.py
index 31e490b..3c288d5 100755
--- a/tools/checklicenses/checklicenses.py
+++ b/tools/checklicenses/checklicenses.py
@@ -30,6 +30,7 @@ Examples:
WHITELISTED_LICENSES = [
+ 'Anti-Grain Geometry',
'Apache (v2.0)',
'Apache (v2.0) BSD (2 clause)',
'Apache (v2.0) GPL (v2)',
@@ -53,6 +54,8 @@ WHITELISTED_LICENSES = [
'BSD-like MIT/X11 (BSD like)',
'BSL (v1.0)',
+ 'FreeType (BSD like)',
+ 'FreeType (BSD like) with patent clause',
'GPL (v2) LGPL (v2.1 or later)',
'GPL (v2 or later) with Bison parser exception',
'GPL (v2 or later) with libtool exception',