]> git.pld-linux.org Git - packages/blender.git/blob - blender-bmake.patch
- patch for building blender plugins using given opt. flags
[packages/blender.git] / blender-bmake.patch
1 diff -durN blender2.14-linux-glibc2.1.2-i386.orig/plugins/bmake blender2.14-linux-glibc2.1.2-i386/plugins/bmake
2 --- blender2.14-linux-glibc2.1.2-i386.orig/plugins/bmake        Fri Jul 13 19:00:18 2001
3 +++ blender2.14-linux-glibc2.1.2-i386/plugins/bmake     Thu Aug  2 15:07:52 2001
4 @@ -5,35 +5,36 @@
5  UNAME=`uname`
6  if ( test $UNAME = "IRIX64" ) then
7         CC="cc";
8 -       CFLAGS="-KPIC -O2";
9 +       CFLAGS="-KPIC";
10  
11         LD="ld";
12         LDFLAGS="-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 +CFLAGS="$CFLAGS $OPTFLAGS"
43  
44  if ( test "$#" = "1" ) then 
45         if ( test -f $1 ) then
46 @@ -66,6 +67,8 @@
47         INCLUDES=-I..;
48  elif ( test -f "../include/plugin.h" ) then
49         INCLUDES=-I../include
50 +elif ( test -f "/usr/X11R6/include/blender/plugin.h" ) then
51 +       INCLUDES=-I/usr/X11R6/include/blender
52  else 
53         echo "Couldn't find plugin.h";
54         exit;
This page took 0.081329 seconds and 4 git commands to generate.