dynamically adapt to the installed python version
parent
52cf5c8602
commit
615a3b00ae
|
@ -1,3 +1,5 @@
|
||||||
|
import os
|
||||||
|
|
||||||
BUILDDIR = '#build/debug'
|
BUILDDIR = '#build/debug'
|
||||||
DISTDIR = '#dist'
|
DISTDIR = '#dist'
|
||||||
CXX = 'g++'
|
CXX = 'g++'
|
||||||
|
@ -16,7 +18,13 @@ XERCESLIB = ['xerces-c']
|
||||||
GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11']
|
GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11']
|
||||||
GLFLAGS = ['-DGLEW_MX']
|
GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTLIB = ['boost_system', 'boost_filesystem']
|
BOOSTLIB = ['boost_system', 'boost_filesystem']
|
||||||
PYTHONINCLUDE = ['/usr/include/python2.6']
|
|
||||||
PYTHONLIB = ['python2.6', 'boost_python']
|
|
||||||
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
||||||
COLLADALIB = ['collada14dom']
|
COLLADALIB = ['collada14dom']
|
||||||
|
PYTHONINCLUDE = []
|
||||||
|
PYTHONLIB = ['boost_python']
|
||||||
|
|
||||||
|
for entry in os.popen("pkg-config --cflags --libs python").read().split():
|
||||||
|
if entry[:2] == '-I':
|
||||||
|
PYTHONINCLUDE += [entry[2:]]
|
||||||
|
if entry[:2] == '-l':
|
||||||
|
PYTHONLIB += [entry[2:]]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import os
|
||||||
|
|
||||||
BUILDDIR = '#build/release'
|
BUILDDIR = '#build/release'
|
||||||
DISTDIR = '#dist'
|
DISTDIR = '#dist'
|
||||||
CXX = 'g++'
|
CXX = 'g++'
|
||||||
|
@ -16,7 +18,13 @@ XERCESLIB = ['xerces-c']
|
||||||
GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11']
|
GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11']
|
||||||
GLFLAGS = ['-DGLEW_MX']
|
GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTLIB = ['boost_system', 'boost_filesystem']
|
BOOSTLIB = ['boost_system', 'boost_filesystem']
|
||||||
PYTHONINCLUDE = ['/usr/include/python2.6']
|
|
||||||
PYTHONLIB = ['python2.6', 'boost_python']
|
|
||||||
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
||||||
COLLADALIB = ['collada14dom']
|
COLLADALIB = ['collada14dom']
|
||||||
|
PYTHONINCLUDE = []
|
||||||
|
PYTHONLIB = ['boost_python']
|
||||||
|
|
||||||
|
for entry in os.popen("pkg-config --cflags --libs python").read().split():
|
||||||
|
if entry[:2] == '-I':
|
||||||
|
PYTHONINCLUDE += [entry[2:]]
|
||||||
|
if entry[:2] == '-l':
|
||||||
|
PYTHONLIB += [entry[2:]]
|
||||||
|
|
|
@ -6,7 +6,7 @@ dist/mtsimport /usr/bin
|
||||||
dist/libmitsuba-hw.so /usr/lib
|
dist/libmitsuba-hw.so /usr/lib
|
||||||
dist/libmitsuba-render.so /usr/lib
|
dist/libmitsuba-render.so /usr/lib
|
||||||
dist/libmitsuba-core.so /usr/lib
|
dist/libmitsuba-core.so /usr/lib
|
||||||
dist/python/mitsuba.so /usr/lib/pyshared/python2.7
|
dist/python/mitsuba.so /usr/lib/pyshared/PYTHONVERSION
|
||||||
dist/plugins/* /usr/share/mitsuba/plugins
|
dist/plugins/* /usr/share/mitsuba/plugins
|
||||||
dist/data/* /usr/share/mitsuba/data
|
dist/data/* /usr/share/mitsuba/data
|
||||||
src/qtgui/resources/mitsuba48.png /usr/share/pixmaps
|
src/qtgui/resources/mitsuba48.png /usr/share/pixmaps
|
|
@ -28,6 +28,7 @@ binary-arch:
|
||||||
scons -j 2
|
scons -j 2
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
dh_auto_install
|
dh_auto_install
|
||||||
|
cat debian/mitsuba.install.template | sed -e s/PYTHONVERSION/`pkg-config --modversion python`/ > debian/mitsuba.install
|
||||||
dh_install
|
dh_install
|
||||||
dh_installmenu
|
dh_installmenu
|
||||||
dh_compress
|
dh_compress
|
||||||
|
|
Loading…
Reference in New Issue