#!/bin/sh # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1} && export VERSION=$(echo ${1} | sed "s!tcl\(.*\)!\1!g") export V=`echo $VERSION | cut -d "." -f 1,2` && export DIR=$PWD && cd unix && sed -i "s/relid'/relid/" configure && ./configure \ --prefix=/usr \ --enable-threads && make && sed -i -e "s:${DIR}/unix:/usr/lib:" \ -e "s:${DIR}:/usr/include/tcl${V}:" \ -e "s:^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so':\ TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\":" tclConfig.sh && make install && install -d /usr/include/tcl${V}/unix && install -m644 *.h /usr/include/tcl${V}/unix/ && install -d /usr/include/tcl${V}/generic && install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ && rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h && ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include && ln -sf libtcl${V}.so /usr/lib/libtcl.so && ln -sf tclsh${V} /usr/bin/tclsh && ldconfig # Return last error exit $?