homebrew-core/Formula/mess.rb
Fernando Tarlá Cardoso Lemos 50f7285d67 mess: drop the x11 requirement
It was only being used to get the OpenGL headers. Solved by using
the OpenGL framework.

Closes Homebrew/homebrew#28352.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-14 19:42:32 -07:00

61 lines
1.6 KiB
Ruby

require 'formula'
class Mess < Formula
homepage 'http://www.mess.org/'
url 'svn://dspnet.fr/mame/trunk', :revision => '29406'
version '0.153'
head 'svn://dspnet.fr/mame/trunk'
depends_on 'sdl'
# Fixes finding OpenGL headers, already patched upstream
# See: http://git.redump.net/mame/commit/?id=e5e4c0de7169d5cce7167e28a66a75f98d2484c4
patch :DATA unless build.head?
def install
ENV['MACOSX_USE_LIBSDL'] = '1'
ENV['PTR64'] = (MacOS.prefer_64_bit? ? '1' : '0')
system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}",
"TARGET=mess", "SUBTARGET=mess"
if MacOS.prefer_64_bit?
bin.install 'mess64' => 'mess'
else
bin.install 'mess'
end
end
end
__END__
diff --git a/src/osd/sdl/osd_opengl.h b/src/osd/sdl/osd_opengl.h
index c7709f7..73ef207 100644
--- a/src/osd/sdl/osd_opengl.h
+++ b/src/osd/sdl/osd_opengl.h
@@ -45,8 +45,8 @@
#define APIENTRY
#endif
- #include "GL/gl.h"
- #include "GL/glext.h"
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glext.h>
typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum target);
#endif
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak
index 819f465..9d92061 100644
--- a/src/osd/sdl/sdl.mak
+++ b/src/osd/sdl/sdl.mak
@@ -478,7 +478,7 @@ else
INCPATH += `sdl-config --cflags | sed 's:/SDL::'`
CCOMFLAGS += -DNO_SDL_GLEXT
# Remove libSDLmain, as its symbols conflict with SDLMain_tmpl.m
-LIBS += `sdl-config --libs | sed 's/-lSDLmain//'` -lpthread
+LIBS += `sdl-config --libs | sed 's/-lSDLmain//'` -lpthread -framework OpenGL
DEFS += -DMACOSX_USE_LIBSDL
endif # MACOSX_USE_LIBSDL
--
cgit v0.9.2-21-gd62e