# apply patch for phonon module
local patch_phonon_module=1
if [ "${patch_phonon_module}" = "1" ] ; then
- echo -n ".. Patching PyQt sources: fix problem with improper phonon detection..." && \
- sed -i "s%new Phonon::VideoWidget()%(new Phonon::VideoWidget())->shapshot()%g" ${PRODUCT_SRC_DIR}/configure.py >& /dev/null
+ ( cd ${PRODUCT_SRC_DIR} && sed -i "s%new Phonon::VideoWidget()%(new Phonon::VideoWidget())->shapshot()%g" configure.py )
fi
# apply additional patch (if there's any)
#
# QSCINTILLA version
#
-QSCINTILLA_VERSION=2.7.0
+QSCINTILLA_VERSION=2.7
check_version(){
if [ -z "${QSCINTILLA_DIR}" ]; then
# apply patch (if there's any)
( test -f patches/${PRODUCT}.patch && cp patches/${PRODUCT}.patch ${PRODUCT_SRC_DIR} && cd ${PRODUCT_SRC_DIR} && patch -p1 < ${PRODUCT}.patch )
+# patch build procedure
+local patch_build_procedure=1
+if [ "${patch_build_procedure}" = "1" ] ; then
+ # patch installation folder
+ cd ${PRODUCT_SRC_DIR}/Qt4Qt5
+ sed -e "s%\(target.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/lib%g" \
+ -e "s%\(header.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/include%g" \
+ -e "s%\(trans.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/translations%g" \
+ -e "s%\(qsci.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}%g" \
+ qscintilla.pro > qscintilla.pro.new
+ mv -f qscintilla.pro.new qscintilla.pro
+fi
+
+
# to generate environment scripts
try_preinstalled
}
cd ${PRODUCT_SRC_DIR}/Qt4Qt5
-local patch_build_procedure=1
-if [ "${patch_build_procedure}" = "1" ] ; then
- # patch installation folder
- sed -e "s%\(target.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/lib%g" \
- -e "s%\(header.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/include%g" \
- -e "s%\(trans.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}/translations%g" \
- -e "s%\(qsci.path[[:space:]]*=[[:space:]]*\).*%\1${PRODUCT_DIR}%g" \
- qscintilla.pro > qscintilla.pro.new
- mv -f qscintilla.pro.new qscintilla.pro
-fi
-
qmake -o Makefile qscintilla.pro
check_job ${PRODUCT_DIR}/MAKE.LOG make
check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install