|
@ -1,10 +1,10 @@ |
|
|
name=qt5 |
|
|
name=qt5 |
|
|
submodule=base |
|
|
submodule=base |
|
|
majver=5.10 |
|
|
majver=5.11 |
|
|
version=$majver.1 |
|
|
version=$majver.1 |
|
|
|
|
|
|
|
|
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qt$submodule-everywhere-src-$version.tar.xz" \ |
|
|
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qt$submodule-everywhere-src-$version.tar.xz" \ |
|
|
'1d5ebf49abb2897d573cee622a12f54d' |
|
|
'c656471f138d3810187a523293e2cc28' |
|
|
_ |
|
|
_ |
|
|
|
|
|
|
|
|
cd "qt$submodule-everywhere-src-$version" |
|
|
cd "qt$submodule-everywhere-src-$version" |
|
@ -14,13 +14,15 @@ sed -i -e "s/^\(QMAKE_CFLAGS_RELEASE.*\)/\1 $(safe_sed "$CFLAGS")/" mkspecs/comm |
|
|
sed -i -e "s/^\(QMAKE_CXXFLAGS_RELEASE.*\)/\1 $(safe_sed "$CXXFLAGS")/" mkspecs/common/gcc-base.conf |
|
|
sed -i -e "s/^\(QMAKE_CXXFLAGS_RELEASE.*\)/\1 $(safe_sed "$CXXFLAGS")/" mkspecs/common/gcc-base.conf |
|
|
sed -i -e "s/^\(QMAKE_LFLAGS_RELEASE.*\)/\1 $(safe_sed "$LDFLAGS")/" mkspecs/common/g++-unix.conf |
|
|
sed -i -e "s/^\(QMAKE_LFLAGS_RELEASE.*\)/\1 $(safe_sed "$LDFLAGS")/" mkspecs/common/g++-unix.conf |
|
|
|
|
|
|
|
|
# Make sure all the possible libraries are linked from the OS, as Qt might use it's own if they aren't available. |
|
|
# Make sure all the possible libraries are linked from the OS, as Qt might use its own if they aren't available. |
|
|
optional="" |
|
|
optional="" |
|
|
for opt in libpng libjpeg freetype harfbuzz xcb xkbcommon-x11; do |
|
|
for opt in libpng libjpeg freetype harfbuzz xcb xkbcommon-x11; do |
|
|
lib="$opt" |
|
|
lib="$opt" |
|
|
[ "$lib" = freetype ] && lib=freetype2 |
|
|
opts= |
|
|
|
|
|
[ "$lib" = 'freetype' ] && lib=freetype2 |
|
|
|
|
|
[ "$lib" = 'harfbuzz' ] && opts='--atleast-version 1.6.0' |
|
|
|
|
|
|
|
|
pkg-config --exists "$lib" && optional+=" -system-$opt" || optional+=" -no-$opt" |
|
|
pkg-config --exists $opts "$lib" && optional+=" -system-$opt" || optional+=" -no-$opt" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
# TODO: Use system double-conversion |
|
|
# TODO: Use system double-conversion |
|
|