From 728478dd9cfac056fe8915e4db802c4c5adcfc4c Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Fri, 30 Mar 2007 23:34:29 +0000 Subject: [PATCH] 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 --- extdefs/snack.kbs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 extdefs/snack.kbs 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*] -- 2.23.0