]> git.pld-linux.org Git - packages/blender.git/blob - blender-bmake.patch
- fix bug
[packages/blender.git] / blender-bmake.patch
1 diff -durN blender2.20-linux-glibc2.1.2-i386.orig/plugins/bmake blender2.20-linux-glibc2.1.2-i386/plugins/bmake
2 --- blender2.20-linux-glibc2.1.2-i386.orig/plugins/bmake        Tue Aug 14 16:23:07 2001
3 +++ blender2.20-linux-glibc2.1.2-i386/plugins/bmake     Sat Sep  1 18:24:24 2001
4 @@ -5,36 +5,36 @@
5  UNAME=`uname`
6  if ( test $UNAME = "IRIX64" -o $UNAME = "IRIX" ) then
7         CC="cc";
8 -       CFLAGS="-KPIC -O2 -mips3";
9 +       CFLAGS="-KPIC -mips3";
10  
11         LD="ld";
12         LDFLAGS="-shared -U";   
13  elif ( test $UNAME = "FreeBSD" ) then
14         CC="gcc";
15 -       CFLAGS="-fPIC -funsigned-char -O2";
16 +       CFLAGS="-fPIC -funsigned-char";
17  
18         LD="ld";
19         LDFLAGS="-Bshareable";
20  elif ( test $UNAME = "OpenBSD" ) then
21         CC="gcc";
22 -       CFLAGS="-fPIC -funsigned-char -O2";
23 +       CFLAGS="-fPIC -funsigned-char";
24  
25         LD="ld";
26         LDFLAGS="-Bshareable";
27  elif ( test $UNAME = "Linux" ) then
28         CC="gcc";
29 -       CFLAGS="-fPIC -funsigned-char -O2";
30 +       CFLAGS="-fPIC -funsigned-char";
31  
32         LD="ld";
33         LDFLAGS="-Bshareable";
34  elif ( test $UNAME = "SunOS" ) then
35         CC="cc";
36 -       CFLAGS="-O2";
37 +       CFLAGS="";
38  
39         LD="ld";
40         LDFLAGS="-r";
41  fi
42 -
43 +CFLAGS="$CFLAGS $OPTFLAGS"
44  if ( test "$#" = "1" ) then 
45         if ( test -f $1 ) then
46                 BASE_FILE=`echo $1 | sed -e "1 s/\.c//g"`;
47 @@ -66,6 +66,8 @@
48         INCLUDES=-I..;
49  elif ( test -f "../include/plugin.h" ) then
50         INCLUDES=-I../include
51 +elif ( test -f "/usr/X11R6/include/blender/plugin.h" ) then
52 +       INCLUDES=-I/usr/X11R6/include/blender
53  else 
54         echo "Couldn't find plugin.h";
55         exit;
This page took 0.073214 seconds and 3 git commands to generate.