From: Pat Thoyts <patthoyts@users.sourceforge.net>
Date: Fri, 30 Mar 2007 23:34:29 +0000 (+0000)
Subject: Added snack build file. Snack insists on seeing a shared build of tcl.
X-Git-Url: http://www.privyetmir.co.uk/gitweb?a=commitdiff_plain;h=728478dd9cfac056fe8915e4db802c4c5adcfc4c;p=kitgen

Added snack build file. Snack insists on seeing a shared build of tcl.


git-svn-id: svn://svn.equi4.com/kitgen/trunk@1343 9e558909-932a-0410-a563-af77432da1eb
---

diff --git a/extdefs/snack.kbs b/extdefs/snack.kbs
new file mode 100644
index 0000000..b33659b
--- /dev/null
+++ b/extdefs/snack.kbs
@@ -0,0 +1,18 @@
+Version 2.2.10
+
+Sources fetch http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz
+
+Build {
+  if {![file exists [Libdir]/tclConfig.orig]} {
+    file copy [Libdir]/tclConfig.sh [Libdir]/tclConfig.orig
+    set f [open [Libdir]/tclConfig.sh r]; set d [read $f] ; close $f
+    set d [string map [list "TCL_SHARED_BUILD=0" "TCL_SHARED_BUILD=1"] $d]
+    set f [open [Libdir]/tclConfig.sh w]; puts -nonewline $f $d; close $f
+  }
+  Sh [Srcdir]/unix/configure \
+     --with-tcl=[Libdir] --with-tk=[Libdir] --libdir=[Libdir]
+  Sh make install
+  Sh strip -x [Unglob ../lib/snack2*/libsnack*]
+}
+
+Result [Unglob ../lib/snack2*]