[PATCH] wine.inf: Add sRGB color profile

Alex Henrie alexhenrie24 at gmail.com
Mon Aug 31 02:42:43 CDT 2020


"This profile is made available by the International Color Consortium,
and may be copied, distributed, embedded, made, used, and sold without
restriction. Altered versions of this profile shall have the original
identification and copyright information removed and shall not be
misrepresented as the original profile."

See http://www.color.org/srgbprofiles.xalter

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37396
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
The Microsoft version of this file is tagged "sRGB IEC61966-2.1". Any
differences from the standard sRGB IEC61966-2.1 profile available on
color.org are not likely to be perceptible.

In addition to a couple of ICM files, on Windows the directory
C:\Windows\System32\spool\drivers\color also has some CAMP, GMMP, and
CDMP files. I have generically named the new source directory "color" so
that we have a place for these other files in the future.
---
 Makefile.in                        |   1 +
 color/Makefile.in                  |   2 ++
 color/sRGB_Color_Space_Profile.icm | Bin 0 -> 3024 bytes
 configure.ac                       |   1 +
 loader/wine.inf.in                 |  14 +++++++++-----
 tools/makedep.c                    |  12 ++++++++++++
 6 files changed, 25 insertions(+), 5 deletions(-)
 create mode 100644 color/Makefile.in
 create mode 100644 color/sRGB_Color_Space_Profile.icm

diff --git a/Makefile.in b/Makefile.in
index 0e1f6cd6ca..a4b384c09c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -27,6 +27,7 @@ datarootdir     = @datarootdir@
 datadir         = @datadir@
 mandir          = @mandir@
 includedir      = @includedir@
+colordir        = ${datadir}/wine/color
 fontdir         = ${datadir}/wine/fonts
 nlsdir          = ${datadir}/wine/nls
 dlldir          = ${libdir}/wine
diff --git a/color/Makefile.in b/color/Makefile.in
new file mode 100644
index 0000000000..f9f6f62a3b
--- /dev/null
+++ b/color/Makefile.in
@@ -0,0 +1,2 @@
+SOURCES = \
+	sRGB_Color_Space_Profile.icm
diff --git a/color/sRGB_Color_Space_Profile.icm b/color/sRGB_Color_Space_Profile.icm
new file mode 100644
index 0000000000000000000000000000000000000000..49afbfef10f22a1832590b68369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23;gpmIcJWHm~TE
zsB!?>_W&UKaK(pgBT{F`Sk`1q_=ApIvi~>1Kja-poFc8Ycg2 at f3jlK-0Mx-$UJPB7
z<Qx!4|Dg|z0B$r_z~v)H4d!t(c>EaT{Co~CjhDoy^Z4|Cv`LizZ;q8ZSF~{&Hxtp1
zNS#T^TLiqA*fhE)KaDHkvqTlK5|(a9AgVDnNsz`9Ca$I<O41yF)M!(arP?5}3nKHL
eE-t>)0svP6z_+5s#f6&1#cxP2P~!kx7XBBF2+<<|

literal 0
HcmV?d00001

diff --git a/configure.ac b/configure.ac
index e4b0999f76..38d1e83398 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2830,6 +2830,7 @@ depend: \$(MAKEDEP) dummy
 WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
 WINE_CONFIG_SYMLINK(wine64,tools/winewrapper,["x$enable_win64" != xno -o -n "$with_wine64"])
 
+WINE_CONFIG_MAKEFILE(color)
 WINE_CONFIG_MAKEFILE(dlls/acledit)
 WINE_CONFIG_MAKEFILE(dlls/aclui)
 WINE_CONFIG_MAKEFILE(dlls/activeds.tlb)
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index 1efc7f9e3b..a9e7e4701e 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -30,7 +30,7 @@ signature="$CHICAGO$"
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin32,FakeDlls
 UpdateInis=SystemIni
-CopyFiles=InfFiles,NlsFiles,SortFiles
+CopyFiles=ColorFiles,InfFiles,NlsFiles,SortFiles
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -54,7 +54,7 @@ AddReg=\
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin32,FakeDlls
 UpdateInis=SystemIni
-CopyFiles=InfFiles,NlsFiles,SortFiles
+CopyFiles=ColorFiles,InfFiles,NlsFiles,SortFiles
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -80,7 +80,7 @@ RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin64,FakeDlls
 WinePreInstall=Wow64
 UpdateInis=SystemIni
-CopyFiles=InfFiles,NlsFiles,SortFiles
+CopyFiles=ColorFiles,InfFiles,NlsFiles,SortFiles
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -107,7 +107,7 @@ RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin64,FakeDlls
 WinePreInstall=Wow64
 UpdateInis=SystemIni
-CopyFiles=InfFiles,NlsFiles,SortFiles
+CopyFiles=ColorFiles,InfFiles,NlsFiles,SortFiles
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -2680,7 +2680,6 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
 11,catroot,
 11,mui,
 11,tasks,
-11,spool\drivers\color,
 11,spool\printers,
 10,,explorer.exe
 10,,hh.exe
@@ -3886,6 +3885,9 @@ HKLM,Software\Wine\LicenseInformation,"Shell-InBoxGames-Solitaire-EnableGame",0x
 HKLM,Software\Wine\LicenseInformation,"Shell-InBoxGames-SpiderSolitaire-EnableGame",0x10001,0x00000001
 HKLM,Software\Wine\LicenseInformation,"Shell-PremiumInBoxGames-Chess-EnableGame",0x10001,0x00000001
 
+[ColorFiles]
+"sRGB Color Space Profile.icm",sRGB_Color_Space_Profile.icm
+
 [InfFiles]
 winebus.inf
 winehid.inf
@@ -3968,10 +3970,12 @@ normnfkd.nls
 sortdefault.nls
 
 [WineSourceDirs]
+ColorFiles = color
 NlsFiles  = nls
 SortFiles = nls
 
 [DestinationDirs]
+ColorFiles = 11,spool\drivers\color
 InfFiles  = 17
 NlsFiles  = 11
 SortFiles = 10,globalization\sorting
diff --git a/tools/makedep.c b/tools/makedep.c
index 4bd20d469d..c5765a3330 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -2955,6 +2955,17 @@ static void output_source_svg( struct makefile *make, struct incl_file *source,
 }
 
 
+/*******************************************************************
+ *         output_source_icm
+ */
+static void output_source_icm( struct makefile *make, struct incl_file *source, const char *obj )
+{
+    add_install_rule( make, source->name, source->name,
+                      strmake( "D$(colordir)/%s", source->name ));
+    output_srcdir_symlink( make, strmake( "%s.icm", obj ));
+}
+
+
 /*******************************************************************
  *         output_source_nls
  */
@@ -3169,6 +3180,7 @@ static const struct
     { "tlb", output_source_tlb },
     { "sfd", output_source_sfd },
     { "svg", output_source_svg },
+    { "icm", output_source_icm },
     { "nls", output_source_nls },
     { "desktop", output_source_desktop },
     { "po", output_source_po },
-- 
2.28.0




More information about the wine-devel mailing list