/[gentoo-x86]/app-accessibility/espeak/files/espeak-1.35-makefile.patch
Gentoo

Contents of /app-accessibility/espeak/files/espeak-1.35-makefile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 10 01:01:41 2008 UTC (6 years, 4 months ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Version bump and removed old version.
(Portage version: 2.1.4.4)

1 --- espeak-1.35-source/src/Makefile.orig 2008-03-09 12:23:30.000000000 -0500
2 +++ espeak-1.35-source/src/Makefile 2008-03-09 12:42:37.000000000 -0500
3 @@ -30,12 +30,14 @@
4
5 ifeq ($(AUDIO),pulseaudio)
6 WAVE=wave_pulse.cpp
7 -LIB_AUDIO=pulse
8 -USE_AUDIO=USE_PULSEAUDIO
9 +LIB_AUDIO=-lpulse
10 +USE_AUDIO=-DUSE_PULSEAUDIO
11 +else ifeq ($(AUDIO),portaudio)
12 +WAVE=wave.cpp
13 +LIB_AUDIO=-lportaudio
14 +USE_AUDIO=-DUSE_PORTAUDIO
15 else
16 WAVE=wave.cpp
17 -LIB_AUDIO=portaudio
18 -USE_AUDIO=USE_PORTAUDIO
19 endif
20
21 speak_SOURCES = speak.cpp compiledict.cpp dictionary.cpp intonation.cpp \
22 @@ -51,24 +53,24 @@
23
24 SRCS1=$(speak_SOURCES)
25 OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
26 -LIBS1=-lstdc++ -l$(LIB_AUDIO) -lpthread $(EXTRA_LIBS)
27 +LIBS1=-lstdc++ $(LIB_AUDIO) -lpthread $(EXTRA_LIBS)
28
29 SRCS2=$(libespeak_SOURCES)
30 OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
31 -LIBS2=-lstdc++ -l$(LIB_AUDIO) -lpthread
32 +LIBS2=-lstdc++ $(LIB_AUDIO) -lpthread
33
34 SRCS3 = espeak.cpp
35 OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
36 LIBS3=-lstdc++ -L . -lespeak
37
38 -CXXFLAGS=-O2 -D$(USE_AUDIO)
39 +CXXFLAGS=-O2
40
41
42 all: $(BIN_NAME) $(LIB_NAME) $(STATIC_LIB_NAME) $(BIN2_NAME)
43 mv $(LIB_NAME) $(LIB_NAME).$(LIBTAG)
44
45 .cpp.o:
46 - $(CXX) $(CXXFLAGS) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
47 + $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
48
49 $(BIN_NAME): $(OBJS1)
50 $(CXX) -o $@ $(OBJS1) $(LIBS1)
51 @@ -79,7 +81,7 @@
52
53
54 x_%.o: %.cpp
55 - $(CXX) $(CXXFLAGS) -Wall -fpic -pedantic \
56 + $(CXX) $(CXXFLAGS) $(USE_AUDIO) -Wall -fpic -pedantic \
57 -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
58
59 $(LIB_NAME): $(OBJS2)

  ViewVC Help
Powered by ViewVC 1.1.20