Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
57bbeb3b
Commit
57bbeb3b
authored
14 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
Put /usr/X11/bin in PATH when requesting X11.
parent
74727560
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/extend/ENV.rb
+5
-1
5 additions, 1 deletion
Library/Homebrew/extend/ENV.rb
with
5 additions
and
1 deletion
Library/Homebrew/extend/ENV.rb
+
5
−
1
View file @
57bbeb3b
...
...
@@ -151,9 +151,12 @@ module HomebrewEnvExtension
def
libxml2
append_to_cflags
' -I/usr/include/libxml2'
end
def
x11
opoo
"You do not have X11 installed, this formula may not build."
if
not
x11_installed?
# There are some config scripts (e.g. freetype) here that should go in the path
ENV
.
prepend
'PATH'
,
'/usr/X11/bin'
,
':'
# CPPFLAGS are the C-PreProcessor flags, *not* C++!
append
'CPPFLAGS'
,
'-I/usr/X11R6/include'
append
'LDFLAGS'
,
'-L/usr/X11R6/lib'
...
...
@@ -161,6 +164,7 @@ module HomebrewEnvExtension
append
'CMAKE_PREFIX_PATH'
,
'/usr/X11R6'
,
':'
end
alias_method
:libpng
,
:x11
# we've seen some packages fail to build when warnings are disabled!
def
enable_warnings
remove_from_cflags
'-w'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment