* [libraw] Updated port to version 0.21.1
* [freeimage] Updated port to prepare for libraw version 0.21
* Add const in the right position
* Portfile modernization
* [libraw] Revise dependencies
* Add dng-lossy feature
* Update versions
* Add license
* Fix license name
---------
Co-authored-by: Anders Klemets <anderskl@microsoft.com>
Update from the latest release 0.19 to use the latest snapshot
LibRaw-201903 (SHA-1:d4f05dd1b9b2d44c8f7e82043cbad3c724db2416).
The rationale is that LibRaw publishes:
- snapshots every 5-7 months (in master branch)
- releases (0.18, 0.19, etc.) every 1-1.5 years.
- security hotfixes for releases (0.19.1, 0.19.2, etc.)
Hence, from user point of view, it is practical to refer to
the latest snapshot, instead of the latest release.
Another issue is that the latest release 0.19 does not include
support for C++17 (does not allow to replace std::auto_ptr with
std::unique_ptr). The latest LibRaw-201903 includes related fixes.
error
```
CMake Error at ports/libraw/portfile.cmake:53 (file):
file RENAME failed to rename
/opt/vcpkg/packages/libraw_x64-linux/lib/raw_r.lib
to
/opt/vcpkg/packages/libraw_x64-linux/lib/raw.lib
because: No such file or directory
Call Stack (most recent call first):
scripts/ports.cmake:71 (include)
```
```
Include files should not be duplicated into the /debug/include directory. If this cannot be disabled in the project cmake, use
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
/debug/share should not exist. Please reorganize any important files, then use
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
Found 2 error(s). Please correct the portfile:
/opt/vcpkg/ports/libraw/portfile.cmake
-- Performing post-build validation done
```
* Patch libraw-local FindLCMS2.cmake to handle debug postfix
* Remove library statement from def as name is incorrect for debug builds
https://msdn.microsoft.com/en-us/library/d91k01sh.aspx claims it is
required, but works fine (better) without.
* Patch FindLibRaw.cmake to handle debug postfix
* [lcms] Use vcpkg_from_github()'s PATCHES parameter