bsdmake: only fix X11 prefix if X11 is installed
Fixes Homebrew/homebrew#14014. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
fc4f5f4339
commit
a92674251b
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Bsdmake < Formula
|
|||
'@PREFIX@', prefix
|
||||
|
||||
# X11 path shouldn't be munged
|
||||
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix
|
||||
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix if MacOS::X11.installed?
|
||||
|
||||
inreplace 'mk/bsd.own.mk' do |s|
|
||||
s.gsub! '@INSTALL_USER@', `id -un`.chomp
|
||||
|
|
Loading…
Reference in a new issue