Diff

Differences From Artifact [f3b15d2312]:

To Artifact [f8e3e2d4f8]:


    13     13   
    14     14   TCLVFSVERS="20080503"
    15     15   SRC="src/tclvfs-${TCLVFSVERS}.tar.gz"
    16     16   SRCURL="http://sourceforge.net/projects/tclvfs/files/tclvfs/tclvfs-${TCLVFSVERS}/tclvfs-${TCLVFSVERS}.tar.gz/download"
    17     17   BUILDDIR="$(pwd)/build/tclvfs-${TCLVFSVERS}"
    18     18   OUTDIR="$(pwd)/out"
    19     19   INSTDIR="$(pwd)/inst"
    20         -export TCLVFSVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR
           20  +PATCHDIR="$(pwd)/patches"
           21  +export TCLVFSVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR
    21     22   
    22     23   rm -rf 'build' 'out' 'inst'
    23     24   mkdir 'build' 'out' 'inst' || exit 1
           25  +
           26  +TCL_VERSION="unknown"
           27  +if [ -f "${TCLCONFIGDIR}/tclConfig.sh" ]; then
           28  +	source "${TCLCONFIGDIR}/tclConfig.sh"
           29  +fi
           30  +export TCL_VERSION
    24     31   
    25     32   if [ ! -f "${SRC}" ]; then
    26     33   	mkdir 'src' >/dev/null 2>/dev/null
    27     34   
    28     35   	wget -O "${SRC}" "${SRCURL}" || exit 1
    29     36   fi
    30     37   
................................................................................
    31     38   (
    32     39   	cd 'build' || exit 1
    33     40   
    34     41   	gzip -dc "../${SRC}" | tar -xf -
    35     42   
    36     43   	cd "${BUILDDIR}" || exit 1
    37     44   
           45  +        # Apply required patches
           46  +	for patch in "${PATCHDIR}/all"/tclvfs-${TCLVFSVERS}-*.diff "${PATCHDIR}/${TCL_VERSION}"/tclvfs-${TCLVFSVERS}-*.diff; do
           47  +		if [ ! -f "${patch}" ]; then
           48  +			continue
           49  +		fi
           50  +
           51  +		echo "Applying: ${patch}"
           52  +		patch -p1 < "${patch}"
           53  +	done                                                                                                                               
           54  +
    38     55   	cp generic/vfs.c .
    39     56   
    40     57   	# Build static version
    41     58   	./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
    42     59   	"${MAKE:-make}" || exit 1
    43     60   	"${MAKE:-make}" install
    44     61