Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 27 Nov 2015 15:17:02 +0100
|
||||
Subject: [PATCH] Fix build of shared library on architectures needing -fPIC
|
||||
|
||||
Certain architectures, like Sparc and Sparc64 require objects to be
|
||||
built with -fPIC (and not just -fpic) to be usable in shared
|
||||
libraries. On other architectures, -fPIC is the same as -fpic so this
|
||||
patch doesn't affect such architectures.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 95fe549..c293611 100755
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
|
||||
|
||||
|
||||
x_%.o: %.cpp
|
||||
- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
|
||||
+ $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \
|
||||
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
|
||||
|
||||
$(LIB_NAME): $(OBJS2)
|
||||
--
|
||||
2.6.3
|
||||
|
||||
40
deprecated/firmware/buildroot/package/espeak/Config.in
Normal file
40
deprecated/firmware/buildroot/package/espeak/Config.in
Normal file
@@ -0,0 +1,40 @@
|
||||
comment "espeak needs a toolchain w/ C++, wchar, threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
config BR2_PACKAGE_ESPEAK
|
||||
bool "espeak"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# does not properly support building only a static version
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
espeak is a speech synthesizer software for English and
|
||||
other languages.
|
||||
|
||||
http://espeak.sourceforge.net/
|
||||
|
||||
if BR2_PACKAGE_ESPEAK
|
||||
|
||||
choice
|
||||
prompt "choose audio backend"
|
||||
default BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE
|
||||
|
||||
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE
|
||||
bool "No sound backend, only produce wav files"
|
||||
|
||||
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA
|
||||
bool "alsa via portaudio"
|
||||
select BR2_PACKAGE_PORTAUDIO
|
||||
select BR2_PACKAGE_PORTAUDIO_CXX
|
||||
|
||||
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO
|
||||
bool "pulseaudio"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c
|
||||
select BR2_PACKAGE_PULSEAUDIO
|
||||
|
||||
endchoice
|
||||
|
||||
endif # BR2_PACKAGE_ESPEAK
|
||||
2
deprecated/firmware/buildroot/package/espeak/espeak.hash
Normal file
2
deprecated/firmware/buildroot/package/espeak/espeak.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659 espeak-1.48.04-source.zip
|
||||
43
deprecated/firmware/buildroot/package/espeak/espeak.mk
Normal file
43
deprecated/firmware/buildroot/package/espeak/espeak.mk
Normal file
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# espeak
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ESPEAK_VERSION_MAJOR = 1.48
|
||||
ESPEAK_VERSION = $(ESPEAK_VERSION_MAJOR).04
|
||||
ESPEAK_SOURCE = espeak-$(ESPEAK_VERSION)-source.zip
|
||||
ESPEAK_SITE = http://downloads.sourceforge.net/project/espeak/espeak/espeak-$(ESPEAK_VERSION_MAJOR)
|
||||
ESPEAK_LICENSE = GPLv3+
|
||||
ESPEAK_LICENSE_FILES = License.txt
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA),y)
|
||||
ESPEAK_AUDIO_BACKEND = portaudio
|
||||
ESPEAK_DEPENDENCIES = portaudio
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO),y)
|
||||
ESPEAK_AUDIO_BACKEND = pulseaudio
|
||||
ESPEAK_DEPENDENCIES = pulseaudio
|
||||
endif
|
||||
|
||||
define ESPEAK_EXTRACT_CMDS
|
||||
$(UNZIP) -d $(@D) $(DL_DIR)/$(ESPEAK_SOURCE)
|
||||
mv $(@D)/espeak-$(ESPEAK_VERSION)-source/* $(@D)
|
||||
$(RM) -r $(@D)/espeak-$(ESPEAK_VERSION)-source
|
||||
endef
|
||||
|
||||
define ESPEAK_CONFIGURE_CMDS
|
||||
# Buildroot provides portaudio V19, see ReadMe file for more details.
|
||||
cp $(@D)/src/portaudio19.h $(@D)/src/portaudio.h
|
||||
endef
|
||||
|
||||
define ESPEAK_BUILD_CMDS
|
||||
$(MAKE) -C $(@D)/src $(TARGET_CONFIGURE_OPTS) \
|
||||
AUDIO="$(ESPEAK_AUDIO_BACKEND)" all
|
||||
endef
|
||||
|
||||
define ESPEAK_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D)/src DESTDIR="$(TARGET_DIR)" install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user