Added snack build file. Snack insists on seeing a shared build of tcl.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 30 Mar 2007 23:34:29 +0000 (23:34 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 30 Mar 2007 23:34:29 +0000 (23:34 +0000)
git-svn-id: svn://svn.equi4.com/kitgen/trunk@1343 9e558909-932a-0410-a563-af77432da1eb

extdefs/snack.kbs [new file with mode: 0644]

diff --git a/extdefs/snack.kbs b/extdefs/snack.kbs
new file mode 100644 (file)
index 0000000..b33659b
--- /dev/null
@@ -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*]