This patch contains all the Debian-specific
changes mixed together. To review them
separately, please inspect the GIT history
at http://gitorious.org/openscad-debian/opencsg.
--- opencsg-1.3.1.orig/Makefile
+++ opencsg-1.3.1/Makefile
@@ -1,4 +1,4 @@
-SUBDIRS = glew src example
+SUBDIRS = src example
 
 all:
 	for X in $(SUBDIRS); do make -C $$X ; done
--- opencsg-1.3.1.orig/src/Makefile
+++ opencsg-1.3.1/src/Makefile
@@ -16,9 +16,9 @@ CFLAGS   = -pipe -Wall -W -O2 -fPIC
 CXXFLAGS = -pipe -Wall -W -O2 -fPIC
 LEXFLAGS = 
 YACCFLAGS= -d
-INCPATH  = -I. -I../include -I../glew/include -I.. -I/usr/X11R6/include
+INCPATH  = -I. -I../include -I.. -I/usr/X11R6/include
 LINK     = g++
-LFLAGS   =  -shared -Wl,-soname,libopencsg.so.1 -Wl,-rpath,../lib
+LFLAGS   =  -shared -Wl,-soname,libopencsg.so.1 -Wl
 LIBS     = $(SUBLIBS) -L/usr/X11R6/lib -lGLU -lGL -lXmu
 AR       = ar cqs
 RANLIB   = 
