Index: server/buildpkgs/Tclx/build.sh ================================================================== --- server/buildpkgs/Tclx/build.sh +++ server/buildpkgs/Tclx/build.sh @@ -10,11 +10,11 @@ SRC="src/tclx${VERS}.tar.bz2" SRCURL="http://sourceforge.net/projects/tclx/files/TclX/${VERS}.0/tclx${VERS}.tar.bz2/download" BUILDDIR="tclx${VERS}" WORKDIR="${TMPDIR:-/tmp}/tclx-$$${RANDOM}${RANDOM}${RANDOM}" PLATFORM="$(../platform)" -PLATDIR="out/${PLATFORM}" +PLATDIR="$(pwd)/out/${PLATFORM}" export VERS SRC SRCURL BUILDDIR WORKDIR PLATFORM PLATDIR if [ ! -f "${SRC}" ]; then mkdir src >/dev/null 2>/dev/null @@ -75,20 +75,27 @@ if ((objc < 2) || (objc > 3)) { return TclX_WrongArgs (interp, objv [0], __EOF__ - bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" + + TCLPRIVATE="${TCLCONFIGDIR}/../include/tcl-private" + echo "TCLPRIVATE = \"${TCLPRIVATE}\"" + if [ -d "${TCLPRIVATE}" ]; then + CFLAGS="${CFLAGS} -I${TCLPRIVATE} -I${TCLPRIVATE}/generic -I${TCLPRIVATE}/unix" + export CFLAGS + fi + + + bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --libdir="${PLATDIR}" ${MAKE:-make} || exit 1 ) || exit 1 ( mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null - cp "build/${BUILDDIR}/libtls1.6.so" "${PLATDIR}/" - cp "build/${BUILDDIR}/pkgIndex.tcl" "${PLATDIR}/" - cp "build/${BUILDDIR}/tls.tcl" "${PLATDIR}/" + ${MAKE:-make} install-lib-binaries PKG_DIR='' || exit 1 ../create_teapot "${PLATDIR}/teapot.txt" "Tclx" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "Extended Tcl" ) || exit 1 exit 0