aboutsummaryrefslogtreecommitdiff
path: root/audio/espeak/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-18 19:03:25 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-18 19:03:25 +0000
commit90f5d0ab810dc0d84cb21d51df98b7ea324b4837 (patch)
treec9ae868dcf5ec45d33a8e728584ec8b7c7bab591 /audio/espeak/files
parenta4c83232465ce31cf6a51971471e5b95c49af801 (diff)
downloadports-90f5d0ab810dc0d84cb21d51df98b7ea324b4837.tar.gz
ports-90f5d0ab810dc0d84cb21d51df98b7ea324b4837.zip
Notes
Diffstat (limited to 'audio/espeak/files')
-rw-r--r--audio/espeak/files/patch-src-Makefile33
-rw-r--r--audio/espeak/files/patch-src-speech.h11
2 files changed, 21 insertions, 23 deletions
diff --git a/audio/espeak/files/patch-src-Makefile b/audio/espeak/files/patch-src-Makefile
index 108f5bfaaa8f..fce1df3b2b35 100644
--- a/audio/espeak/files/patch-src-Makefile
+++ b/audio/espeak/files/patch-src-Makefile
@@ -1,6 +1,15 @@
---- src/Makefile Tue Sep 19 23:56:53 2006
-+++ src/Makefile.port Fri Sep 22 13:14:34 2006
-@@ -11,7 +11,7 @@
+--- src/Makefile Thu Nov 16 23:59:58 2006
++++ src/Makefile.port Fri Nov 17 23:23:12 2006
+@@ -1,7 +1,7 @@
+ BINDIR=/usr/local/bin
+ INCDIR=/usr/include/espeak
+ LIBDIR=/usr/lib
+-DATADIR=/usr/share/espeak-data
++DATADIR=%%DATADIR%%
+
+ RELEASE = 1.17
+ BIN_NAME = speak
+@@ -26,7 +26,7 @@
SRCS1=$(speak_SOURCES)
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
@@ -9,27 +18,27 @@
SRCS2=$(libespeak_SOURCES)
OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
-@@ -23,19 +23,19 @@
- mv libespeak.so libespeak.so.1.1.14
+@@ -39,19 +39,19 @@
+ mv $(LIB_NAME) $(LIB_NAME).$(LIBTAG)
.cpp.o:
-- $(CXX) $(CXXFLAGS) -O2 -Wall -pedantic -I. -c -fno-exceptions $<
-+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -Wall -pedantic -I. -c -fno-exceptions $<
+- $(CXX) $(CXXFLAGS) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS)-D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
- speak: $(OBJS1)
+ $(BIN_NAME): $(OBJS1)
- $(CXX) -o $@ $(OBJS1) $(LIBS1)
+ $(CXX) $(PTHREAD_LIBS) -o $@ $(OBJS1) $(LIBS1)
x_%.o: %.cpp
-- $(CXX) $(CXXFLAGS) -O2 -Wall -fpic -fvisibility=hidden -pedantic \
+- $(CXX) $(CXXFLAGS) -Wall -fpic -fvisibility=hidden -pedantic \
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -Wall -fPIC -pedantic \
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
- libespeak.so: $(OBJS2)
-- $(CXX) -shared -Wl,-soname,libespeak.so.1 -o $@ $(OBJS2) $(LIBS2)
-+ $(CXX) $(PTHREAD_LIBS) -shared -Wl,-soname,libespeak.so.1 -o $@ $(OBJS2) $(LIBS2)
+ $(LIB_NAME): $(OBJS2)
+- $(CXX) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2)
++ $(CXX) $(PTHREAD_LIBS) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2)
clean:
rm -f *.o *~
diff --git a/audio/espeak/files/patch-src-speech.h b/audio/espeak/files/patch-src-speech.h
deleted file mode 100644
index 405fb7a64650..000000000000
--- a/audio/espeak/files/patch-src-speech.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/speech.h Tue Oct 3 00:51:13 2006
-+++ src/speech.h.port Wed Oct 11 23:43:20 2006
-@@ -36,7 +36,7 @@
- #endif
-
- // will look for espeak_data directory here, and also in user's home directory
--#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
-+#define PATH_ESPEAK_DATA "%%DATADIR%%/espeak-data"
-
- typedef unsigned short USHORT;
- typedef unsigned char UCHAR;