Fix festival build 79/26779/1
authorRonan Le Martret <ronan@fridu.net>
Thu, 28 Aug 2014 15:32:07 +0000 (17:32 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 28 Aug 2014 15:32:07 +0000 (17:32 +0200)
Change-Id: I157af06061f9c7f479836e170bda01e377e37e93
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/festival/festival-extraconf.inc
recipes-tizen/festival/festival.inc

index e69de29..9634a56 100644 (file)
@@ -0,0 +1,40 @@
+do_prep_prepend() {
+ pushd ${S}/../
+ ln -s ${S} festival-2.1
+ popd 
+}
+
+INSANE_SKIP_${PN} = "dev-deps"
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+# festival
+
+ autotools_do_configure --prefix=${prefix} \
+            --libdir=${prefix}/lib \
+            --datadir=${prefix}/share/festival \
+            --sysconfdir=${sysconfdir}
+
+ cd ..
+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/speech_tools/lib
+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/festival-2.1/src/lib
+
+ # speech tools
+ cd speech_tools
+
+ ./configure --prefix=${prefix} \
+            --libdir=${prefix}/lib \
+                --datadir=${prefix}/share/festival \
+            --sysconfdir=${sysconfdir}
+
+ make CC="i586-poky-linux-gcc -fPIC $RPM_OPT_FLAGS" CXX="i586-poky-linux-g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend -ffriend-injection -fno-strict-aliasing"
+ cd ../festival-2.1
+ make CC="i586-poky-linux-gcc -fPIC $RPM_OPT_FLAGS" CXX="i586-poky-linux-g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend -ffriend-injection -fno-strict-aliasing"
+ make doc
+
+}
\ No newline at end of file
index 6d5db0a..f7a0fda 100644 (file)
@@ -115,14 +115,7 @@ do_install() {
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/speech_tools/lib
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/festival-2.1/src/lib
  cd -
- #
-   oe_runmake \
-         DESTDIR=${D} \
-         INSTALL_ROOT=${D} \
-         BINDIR=${prefix}/bin \
-   install  
-   rm -f ${D}${infodir}/dir 
-   find ${D} -regex ".*\.la$" | xargs rm -f -- 
+ #%%make_install
    find ${D} -regex ".*\.a$" | xargs rm -f --
  #make INSTALLED_BIN=$RPM_BUILD_ROOT${prefix}/bin make_installed_bin_shared
  cd ../speech_tools