# Depends on: cmake doxygen mesa libglade

description="A C++ binding for the OpenGL API, generated using the gl.xml specification." 
url="http://www.glbinding.org"
contributors="berlius, tnut, greg"
packager="tnut <tnut@nutyx.org>"


name=glbinding
version=2.1.3
release=3

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/cginternals/$name/archive/v$version.tar.gz)
 

prepare() {
  cd $name-$version

  rm -rf build
  mkdir build
}

build() {
  cd $name-$version/build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
    -DOPTION_BUILD_TESTS=OFF
  make
}

package() {
  cd $name-$version

  make -C build DESTDIR=$PKG/ install

}
