blob: cae408c3093c50f404117f3b3b8d26251d83a09e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
pkg:setup
inreplace "bootstrap", "11 10 9 8 7 6 5", '$(seq -s " " 5 99)'
inreplace "bootstrap", "aclocal${amvers} ${aclocalflags}", "aclocal${amvers} ${aclocalflags} -I#{HOMEBREW_PREFIX}/share/aclocal"
inreplace "src/net/fileman.cpp", "ushort", "unsigned short"
inreplace "src/sdlport/setup.cpp", "UInt8", "uint8_t"
inreplace "configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS"
inreplace "configure.ac", "#error\t/* Error so the compile fails on OSX */", "#include <OpenGL/gl.h>"
./bootstrap
pkg:configure --disable-dependency-tracking --disable-sdltest --with-assetdir=${PKG_TAPF}/share --with-sdl-prefix=#{Formula[sdl"].opt_prefix}"
%w[. src src/imlib src/lisp src/net src/sdlport].each do |p|
inreplace "#{p}/Makefile", "-lGL", "-framework OpenGL"
|