Overview
Comment: | Updated to build GNU readline if needed |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 86fb425c6b64fabe31e8a91a85b667c19d05d63c |
User & Date: | rkeene on 2012-05-12 18:19:29 |
Other Links: | manifest | tags |
Context
2012-05-12
| ||
18:19 | Updated to allow user to specify platforms check-in: 60f3a1a967 user: rkeene tags: trunk | |
18:19 | Updated to build GNU readline if needed check-in: 86fb425c6b user: rkeene tags: trunk | |
2011-12-11
| ||
17:11 | Updated to build for Solaris 2.8 and Solaris 2.10 on SPARC check-in: aa587e91a7 user: rkeene tags: trunk | |
Changes
Modified server/buildpkgs/tclreadline/build.sh from [94cbef9772] to [d87890310c].
29 29 30 30 # TclReadLine doesn't know it should use stubs, force it. 31 31 CFLAGS="${CFLAGS} -DUSE_TCL_STUBS=1" 32 32 CPPFLAGS="${CPPFLAGS} -DUSE_TCL_STUBS=1" 33 33 LDFLAGS="${LDFLAGS} $(source "${TCLCONFIGDIR}/tclConfig.sh" 2>/dev/null; eval echo "${TCL_STUB_LIB_SPEC}")" 34 34 export CFLAGS CPPFLAGS LDFLAGS 35 35 36 - bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-tcl-includes="${TCLINSTDIR}/include" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} 36 + need_gnu_readline='0' 37 + case "${PLATFORM}" in 38 + solaris2*) 39 + need_gnu_readline='1' 40 + ;; 41 + esac 42 + 43 + if [ "${need_gnu_readline}" = '1' ]; then 44 + wget 'http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz' 45 + gzip -dc readline-6.2.tar.gz | tar -xf - 46 + 47 + ( 48 + cd readline-6.2 49 + mkdir INST INST/lib INST/include 50 + 51 + ./configure --prefix=$(pwd)/INST --disable-shared --enable-static ${CONFIGUREEXTRA} 52 + 53 + ${MAKE:-make} || exit 1 54 + ${MAKE:-make} install || exit 1 55 + ) 56 + 57 + if [ -d "$(pwd)/readline-6.2/INST/include" ]; then 58 + ln -s . "$(pwd)/readline-6.2/INST/include/readline/readline" 59 + 60 + CONFIGUREEXTRA="${CONFIGUREEXTRA} --with-readline-includes=\"$(pwd)/readline-6.2/INST/include/readline\" --with-readline-library=\"-L$(pwd)/readline-6.2/INST/lib -lreadline\"" 61 + fi 62 + fi 63 + 64 + sed 's|@TCLRL_LIBDIR@|[file dirname [info script]]|g' tclreadlineInit.tcl.in > tclreadlineInit.tcl.in.new 65 + cat tclreadlineInit.tcl.in.new > tclreadlineInit.tcl.in 66 + rm -f tclreadlineInit.tcl.in.new 67 + 68 + echo " * Running ./configure --enable-shared --with-tcl=\"${TCLCONFIGDIR}\" --with-tcl-includes=\"${TCLINSTDIR}/include\" --prefix=\"${PLATDIR}\" --libdir=\"${PLATDIR}\" --bindir=\"${PLATDIR}\" ${CONFIGUREEXTRA}" 69 + eval "bash ./configure --enable-shared --with-tcl=\"${TCLCONFIGDIR}\" --with-tcl-includes=\"${TCLINSTDIR}/include\" --prefix=\"${PLATDIR}\" --libdir=\"${PLATDIR}\" --bindir=\"${PLATDIR}\"" "${CONFIGUREEXTRA}" 37 70 38 71 ${MAKE:-make} || exit 1 39 72 40 73 ${MAKE:-make} install || exit 1 41 74 42 75 ) || exit 1 43 76