# Description: library for image-based CSG rendering using OpenGL # URL: http://www.opencsg.org/ # Maintainer: Erich Eckner, crux at eckner dot net # Contributor: Joe M, joe9mail at gmail dot com # Depends on: glew freeglut name=opencsg version=1.6.0 release=1 source=(http://www.opencsg.org/OpenCSG-$version.tar.gz) build () { cd OpenCSG-$version sed -i -e 's/SUBDIRS = glew/SUBDIRS = /g' Makefile sed -i -e 's,-I../glew/include,,g' src/Makefile sed -i -e 's,-L../glew/lib,,g' example/Makefile make mkdir -p $PKG/usr/{lib,include} cp -r lib/* $PKG/usr/lib/ cp -r include/* $PKG/usr/include/ # cd glew # make DESTDIR=$PKG GLEW_DEST=$PKG install }