Permalink
Browse files

argyll-cms: fix case-sensitive build failure

A lower-case "g" in the word "graphics" should be used for the include
of 'IOKit/graphics/IOGraphicsInterface.h'.

This fixes the build error "spectro/dispwin.c:116:10: fatal error:
'IOKit/Graphics/IOGraphicsLib.h' file not found" on case-sensitive
volumes.

Reference:
https://developer.apple.com/library/mac/documentation/IOKit/Reference/IOGraphicsLib_header_reference/

Closes Homebrew/legacy-homebrew#49440.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information...
ilovezfs authored and MikeMcQuaid committed Feb 23, 2016
1 parent d4a2836 commit d846819e5a5f4f55fc7aeb1b38fd9d9ec9c191f5
Showing with 17 additions and 0 deletions.
  1. +17 −0 Formula/argyll-cms.rb
View
@@ -18,6 +18,8 @@ class ArgyllCms < Formula
conflicts_with "num-utils", :because => "both install `average` binaries"
patch :DATA
def install
system "sh", "makeall.sh"
system "./makeinstall.sh"
@@ -31,3 +33,18 @@ def install
%w[test.ti1.ps test.ti1.ti1 test.ti1.ti2].each { |f| File.exist? f }
end
end
__END__
diff --git a/spectro/dispwin.c b/spectro/dispwin.c
index fffbaee..18343db 100755
--- a/spectro/dispwin.c
+++ b/spectro/dispwin.c
@@ -113,7 +113,7 @@ typedef float CGFloat;
#endif
#endif /* !NSINTEGER_DEFINED */
-#include <IOKit/Graphics/IOGraphicsLib.h>
+#include <IOKit/graphics/IOGraphicsLib.h>
#if __MAC_OS_X_VERSION_MAX_ALLOWED <= 1060
/* This wasn't declared in 10.6, although it is needed */

0 comments on commit d846819

Please sign in to comment.