openbsd-ports/audio/espeak/patches/patch-src_speech_h

30 lines
801 B
Plaintext
Executable File

$OpenBSD: patch-src_speech_h,v 1.2 2009/03/23 12:02:28 ajacoutot Exp $
- Don't define USE_ASYNC, this required sem_timedwait() to be present.
--- src/speech.h.orig Mon Dec 22 23:36:40 2008
+++ src/speech.h Mon Mar 23 12:39:44 2009
@@ -37,19 +37,19 @@
#define ESPEAK_API extern "C"
#ifdef LIBRARY
-#define USE_ASYNC
+//#define USE_ASYNC
//#define USE_MBROLA_LIB
#endif
#ifdef _ESPEAKEDIT
#define USE_PORTAUDIO
-#define USE_ASYNC
+//#define USE_ASYNC
#define LOG_FRAMES // write keyframe info to log-espeakedit
#endif
// will look for espeak_data directory here, and also in user's home directory
#ifndef PATH_ESPEAK_DATA
- #define PATH_ESPEAK_DATA "/usr/share/espeak-data"
+ #define PATH_ESPEAK_DATA "${PREFIX}/share/espeak-data"
#endif
typedef unsigned short USHORT;