updates for Fedora Core 20
parent
e8e8aba757
commit
5fc6286107
|
@ -24,7 +24,7 @@ building custom plugins and other extensions for Mitsuba.
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%build
|
%build
|
||||||
cat build/config-linux-gcc.py | sed -e "s/\(boost_[^']*\)/\1-mt/g" > config.py
|
cat build/config-linux-gcc.py | sed -e "s/collada14dom/libcollada-dom2.4-dp/g" | sed -e "s/include\/collada-dom/include\/collada-dom2.4/g" > config.py
|
||||||
scons
|
scons
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
|
@ -7,10 +7,7 @@ if hasCollada:
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
colladaEnv = mainEnv.Clone()
|
colladaEnv = mainEnv.Clone()
|
||||||
if platform.linux_distribution()[0] == 'Fedora':
|
colladaEnv.Prepend(CXXFLAGS=['-DCOLLADA_DOM_2_4'])
|
||||||
pass # Use old COLLADA-DOM 2.3
|
|
||||||
else: # Everyone else uses 2.4
|
|
||||||
colladaEnv.Prepend(CXXFLAGS=['-DCOLLADA_DOM_2_4'])
|
|
||||||
|
|
||||||
# Build the COLLADA importer if COLLADA-DOM is vailable
|
# Build the COLLADA importer if COLLADA-DOM is vailable
|
||||||
colladaEnv.Append(LIBS=['mitsuba-hw'])
|
colladaEnv.Append(LIBS=['mitsuba-hw'])
|
||||||
|
|
Loading…
Reference in New Issue