blob: 348d9902851d8d12a73a8538970eacbf14d65ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
}
|