updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / blendelf / makefile.patch
blob083c242a5e068de13dc591b58a0e18eb9183f5a4
1 --- blendelf-0.9-beta3-source/Makefile 2010-09-03 00:33:22.000000000 +0200
2 +++ src/blendelf-0.9-beta3-source/Makefile 2011-08-21 16:39:23.000000000 +0200
3 @@ -4,10 +4,10 @@
4 STA_CFLAGS = -Wall -O2 -DELF_PLAYER -DELF_LINUX
5 SHR_CFLAGS = -fPIC -Wall -O2 -DELF_LINUX
7 -INCS = -Igfx -Ielf -I/usr/include/lua5.1 -I/usr/include/freetype2
8 +INCS = -Igfx -Ielf -I/usr/include/lua5.1 -I/usr/include/freetype2 -I/usr/include/bullet
10 BLENDELF_LIBS = -lGL -lGLEW -lglfw -lXxf86vm -lXrandr -lXrender -pthread \
11 - -lfreeimage -lvorbisfile -lvorbis -logg -lopenal -llua5.1 -lfreetype \
12 + -lfreeimage -lvorbisfile -lvorbis -logg -lopenal -llua -lfreetype \
13 -lBulletDynamics -lLinearMath -lBulletCollision -lenet -lassimp
15 BLENDELF_STATIC_LIBS = -lGL -lGLU /usr/lib/libGLEW.a /usr/lib/libglfw.a \
16 @@ -19,8 +19,8 @@
17 /usr/local/lib/libBulletCollision.a \
18 -lfreeimage -lfreetype -lopenal -pthread -lassimp
20 -all:
21 - python genwraps.py
22 +all: shared
23 + python2 genwraps.py
24 gcc -c elf/blendelf.c $(DEV_CFLAGS) $(INCS)
25 gcc -c gfx/gfx.c $(DEV_CFLAGS) $(INCS)
26 gcc -c elf/audio.c $(DEV_CFLAGS) $(INCS)
27 @@ -29,11 +29,11 @@
28 g++ -c elf/physics.cpp $(DEV_CFLAGS) $(INCS)
29 g++ -c elf/binds.cpp $(DEV_CFLAGS) $(INCS)
30 g++ -c elf/blendelf_wrap.cxx $(DEV_CFLAGS) $(INCS)
31 - gcc -Wl,-rpath,linux_libraries -o blendelf *.o $(DEV_CFLAGS) $(BLENDELF_LIBS)
32 + gcc -o blendelf *.o $(DEV_CFLAGS) $(BLENDELF_LIBS)
33 rm *.o
35 static:
36 - python genwraps.py
37 + python2 genwraps.py
38 gcc -c elf/blendelf.c $(STA_CFLAGS) $(INCS)
39 gcc -c gfx/gfx.c $(STA_CFLAGS) $(INCS)
40 gcc -c elf/audio.c $(STA_CFLAGS) $(INCS)
41 @@ -42,11 +42,11 @@
42 g++ -c elf/physics.cpp $(STA_CFLAGS) $(INCS)
43 g++ -c elf/binds.cpp $(STA_CFLAGS) $(INCS)
44 g++ -c elf/blendelf_wrap.cxx $(STA_CFLAGS) $(INCS)
45 - gcc -Wl,-rpath,linux_libraries -o blendelf *.o $(STA_CFLAGS) $(BLENDELF_STATIC_LIBS)
46 + gcc -o blendelf *.o $(STA_CFLAGS) $(BLENDELF_STATIC_LIBS)
47 rm *.o
49 shared:
50 - python genwraps.py
51 + python2 genwraps.py
52 gcc -c -fPIC elf/blendelf.c $(SHR_CFLAGS) $(INCS)
53 gcc -c -fPIC gfx/gfx.c $(SHR_CFLAGS) $(INCS)
54 gcc -c -fPIC elf/audio.c $(SHR_CFLAGS) $(INCS)
55 @@ -55,6 +55,18 @@
56 g++ -c -fPIC elf/physics.cpp $(SHR_CFLAGS) $(INCS)
57 g++ -c -fPIC elf/binds.cpp $(SHR_CFLAGS) $(INCS)
58 g++ -c -fPIC elf/blendelf_wrap.cxx $(SHR_CFLAGS) $(INCS)
59 - gcc -Wl,-rpath,linux_libraries -shared -o libblendelf.so *.o $(SHR_CFLAGS) $(BLENDELF_STATIC_LIBS)
60 + gcc -shared -o libblendelf.so *.o $(SHR_CFLAGS) $(BLENDELF_LIBS)
61 rm *.o
63 +install:
64 + install -d $(DESTDIR)/usr/bin
65 + install -d $(DESTDIR)/usr/lib
66 + install -d $(DESTDIR)/usr/include
67 + install -d $(DESTDIR)/usr/share/doc/blendelf
68 + install -d $(DESTDIR)/usr/share/licenses/blendelf
70 + install -Dm755 blendelf $(DESTDIR)/usr/bin
71 + install -Dm755 libblendelf.so $(DESTDIR)/usr/lib
72 + install -Dm644 cppsdk/blendelf.h $(DESTDIR)/usr/include
73 + cp -a docs/* $(DESTDIR)/usr/share/doc/blendelf
74 + install -Dm644 LICENSE.txt $(DESTDIR)/usr/share/licenses/blendelf