%{?_cmake_lib_suffix64} \\\
%endif \
%{?_cmake_skip_rpath} \\\
- -DBUILD_SHARED_LIBS:BOOL=ON
-
+ -DBUILD_SHARED_LIBS:BOOL=ON \\\
+ \${EXTRA_OECMAKE}
+
# tmp remove toolchain
# \\\
# -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake
def __create_compile( self ,file_d):
code=self.__spec_parser.get_build_section()
code=code.replace("\n","\n ")
+
file_d.write( "do_compile() {\n" )
file_d.write( " %s\n" % code )
file_d.write( "}\n" )
'''
Writes the pre/post (un)install sections of the recipe.
'''
- code=code.replace("/sbin/ldconfig","ldconfig")
+ code=code.replace("/sbin/ldconfig","[ \"x\$D\" != \"x\" ] && ldconfig")
code=code.replace("${prefix}","$D${prefix}")