Top Level Namespace

Defined Under Namespace

Modules: GLUT, Glut

Constant Summary collapse

LIBFREEGLUT_VERSION =
ENV['LIBFREEGLUT_VERSION'] || '2.8.1'
LIBFREEGLUT_SOURCE_URI =
"http://downloads.sourceforge.net/project/freeglut/freeglut/#{LIBFREEGLUT_VERSION}/freeglut-#{LIBFREEGLUT_VERSION}.tar.gz"

Instance Method Summary collapse

Instance Method Details

#have_framework(fw, &b) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'ext/glut/extconf.rb', line 3

def have_framework(fw, &b)
  checking_for fw do
    src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
    if try_link(src, opt = "-ObjC -framework #{fw}", &b)
      $defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
      $LDFLAGS << " " << opt
      true
    else
      false
    end
  end
end