forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mesalib-glw: import from homebrew/x11.
Remove `--enable-static` option which doesn't seem to work. Skip adding a test for now for speed of tearing down homebrew/x11. Closes Homebrew#9324. Signed-off-by: Mike McQuaid <[email protected]>
- Loading branch information
1 parent
845ee44
commit 71d7118
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class MesalibGlw < Formula | ||
homepage "http://www.mesa3d.org" | ||
url "https://downloads.sourceforge.net/project/mesa3d/MesaLib/7.2/MesaLib-7.2.tar.gz" | ||
sha256 "a7b7cc8201006685184e7348c47cb76aecf71be81475c71c35e3f5fe9de909c6" | ||
|
||
depends_on :x11 | ||
|
||
def install | ||
system "./configure", "--disable-debug", | ||
"--disable-dependency-tracking", | ||
"--prefix=#{prefix}", | ||
"--with-driver=xlib", | ||
"--disable-gl-osmesa", | ||
"--disable-glu", | ||
"--disable-glut" | ||
|
||
inreplace "configs/autoconf" do |s| | ||
s.gsub! /.so/, ".dylib" | ||
s.gsub! /SRC_DIRS = mesa glw/, "SRC_DIRS = glw" | ||
s.gsub! %r{-L\$\(TOP\)/\$\(LIB_DIR\)}, "-L#{MacOS::X11.lib}" | ||
end | ||
|
||
inreplace "src/glw/Makefile" do |s| | ||
s.gsub! %r{-I\$\(TOP\)/include }, "" | ||
end | ||
|
||
system "make" | ||
|
||
(include+"GL").mkpath | ||
(include+"GL").install Dir["src/glw/*.h"] | ||
lib.install Dir["lib/*"] | ||
end | ||
end |