author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Sun, 13 Nov 2016 21:09:09 -0800 | |
changeset 7334 | 95f9efb22a51 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
7334
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
21 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
25 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
26 |
BUILD_BITS= 64 |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
27 |
# For now, all things built for C++11 require gcc. |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPILER = gcc |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
29 |
include ../../../make-rules/shared-macros.mk |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
30 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_NAME= espeak |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_VERSION= 1.44.05 |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
33 |
IPS_COMPONENT_VERSION= 1.44.0.5 |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_PROJECT_URL= http://espeak.sourceforge.net/ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-source |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_HASH= \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
sha256:89c37e69a7348d638c859ea492958145a790d0d57a057b29f2f5d913541f8ef9 |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
39 |
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/espeak/files/$(COMPONENT_NAME)/$(COMPONENT_NAME)-$(basename $(COMPONENT_VERSION))/$(COMPONENT_ARCHIVE) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
40 |
COMPONENT_BUGDB= gnome/accessibility |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
41 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
TPNO= 7478 |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
43 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
44 |
BUILD_STYLE = justmake |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
45 |
TEST_TARGET = $(NO_TESTS) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
47 |
include $(WS_MAKE_RULES)/common.mk |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
48 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
49 |
COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D)) ; |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
50 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
51 |
CPPFLAGS.sparc += -DBYTE_ORDER=BIG_ENDIAN |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
52 |
CPPFLAGS += $(CPPFLAGS.$(MACH)) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
53 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
54 |
# wave_sada.cpp won't build without -fpermissive |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
55 |
CXXFLAGS += -fpermissive |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
56 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
57 |
COMPONENT_BUILD_ARGS += AUDIO="sada" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
58 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
59 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CPPFLAGS) $(CFLAGS)" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
60 |
COMPONENT_BUILD_ARGS += CXX="$(CXX)" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
61 |
COMPONENT_BUILD_ARGS += CXXFLAGS="$(CPPFLAGS) $(CXXFLAGS)" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
62 |
COMPONENT_BUILD_ARGS += EXTRA_LIBS="-lm" |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
63 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
64 |
COMPONENT_PRE_BUILD_ACTION.sparc += \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
65 |
(cd $(@D)/platforms/big_endian ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
66 |
$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS) ; \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
67 |
./espeak-phoneme-data $(SOURCE_DIR)/espeak-data ../../espeak-data ) ; |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
68 |
COMPONENT_PRE_BUILD_ACTION += $(COMPONENT_PRE_BUILD_ACTION.$(MACH)) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
69 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
70 |
# Need to override defaults from justmake.mk to cd into src subdirectory |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
71 |
COMPONENT_BUILD_ACTION = \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
72 |
cd $(@D)/src; $(ENV) $(COMPONENT_BUILD_ENV) \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
73 |
$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
74 |
COMPONENT_INSTALL_ACTION = \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
75 |
cd $(@D)/src ; $(ENV) $(COMPONENT_INSTALL_ENV) \ |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
76 |
$(GMAKE) $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
77 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
78 |
COMPONENT_INSTALL_ARGS += $(COMPONENT_BUILD_ARGS) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
79 |
COMPONENT_INSTALL_ARGS += LIBDIR=$(USRLIB) |
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
80 |
|
95f9efb22a51
23245468 Move espeak 1.44.05 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
81 |
REQUIRED_PACKAGES += system/library/math |