diff options
Diffstat (limited to 'homebrew/espeak/.make.sh-auto')
-rw-r--r-- | homebrew/espeak/.make.sh-auto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/homebrew/espeak/.make.sh-auto b/homebrew/espeak/.make.sh-auto new file mode 100644 index 000000000..aa5ec25b5 --- /dev/null +++ b/homebrew/espeak/.make.sh-auto @@ -0,0 +1,14 @@ +pkg:setup +share.install "espeak-data" +doc.install Dir["docs/*"] +cd "src" +rm "portaudio.h" +inreplace "Makefile", "SONAME_OPT=-Wl,-soname,", "SONAME_OPT=-Wl,-install_name," +inreplace "speech.h", "#define USE_ASYNC", "//#define USE_ASYNC" +make speak DATADIR=#{share}/espeak-data PREFIX=${PKG_TAPF} +bin.install "speak" => "espeak" +make libespeak.a DATADIR=#{share}/espeak-data PREFIX=${PKG_TAPF} +lib.install "libespeak.a" +make libespeak.so DATADIR=#{share}/espeak-data PREFIX=${PKG_TAPF} +lib.install "libespeak.so.1.1.48" => "libespeak.dylib" +MachO::Tools.change_dylib_id("#{lib}/libespeak.dylib", "#{lib}/libespeak.dylib") |