cd ${PRODUCT_SRC_DIR}
test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-sed -i 's%PYTHON_LIBS="\(.*\)"%PYTHON_LIBS="-L\$PYTHON_PREFIX/lib \1"%g' configure
-sed -i "s%echo 'puts \[info tclversion\]' | \$TCLSH%echo 'puts \[info tclversion\]' | \$TCLSH 2>/dev/null | grep -E '^[0-9.]+$'%g" configure
+local patch_build_procedure=1
+if [ "${patch_build_procedure}" = "1" ] ; then
+ sed -i 's%PYTHON_LIBS="\(.*\)"%PYTHON_LIBS="-L\$PYTHON_PREFIX/lib \1"%g' configure
+ sed -i "s%echo 'puts \[info tclversion\]' | \$TCLSH%echo 'puts \[info tclversion\]' | \$TCLSH 2>/dev/null | grep -E '^[0-9.]+$'%g" configure
+fi
CONFIGURE_FLAGS="--disable-rpath -without-qt"
if [ "${EXPAT_ROOT}" != "" ] ; then
local patch_pthread=1
if [ "${patch_pthread}" = "1" ] ; then
- echo -n ".. Patching scotch sources: fix pb with linking to pthread..." && \
- cd ${PRODUCT_SRC_DIR}/src && \
- sed -i "s%^\(LDFLAGS.*\)%\1 -lpthread%g" Makefile.inc
+ cd ${PRODUCT_SRC_DIR}/src
+ sed -i "s%^\(LDFLAGS.*\)%\1 -lpthread%g" $(readlink Makefile.inc)
fi
# make