ENV.x11: only use SDK when CLT is missing and X11 is from Apple
This commit is contained in:
parent
b2bb0e22f4
commit
2bbe2dba16
@ -288,10 +288,11 @@ module Stdenv
|
|||||||
|
|
||||||
append_path 'ACLOCAL_PATH', MacOS::X11.share/'aclocal'
|
append_path 'ACLOCAL_PATH', MacOS::X11.share/'aclocal'
|
||||||
|
|
||||||
unless MacOS::CLT.installed?
|
if MacOS::XQuartz.provided_by_apple? and not MacOS::CLT.installed?
|
||||||
append_path 'CMAKE_PREFIX_PATH', MacOS.sdk_path/'usr/X11'
|
append_path 'CMAKE_PREFIX_PATH', MacOS.sdk_path/'usr/X11'
|
||||||
append 'CFLAGS', "-I#{MacOS::X11.include}"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
append 'CFLAGS', "-I#{MacOS::X11.include}" unless MacOS::CLT.installed?
|
||||||
end
|
end
|
||||||
alias_method :libpng, :x11
|
alias_method :libpng, :x11
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user