You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
import 'compile/qt5source'
|
|
|
|
name=qt5
|
|
majver=5.7
|
|
version=$majver.0
|
|
|
|
optional_libraries='libpng libjpeg doubleconversion freetype harfbuzz'
|
|
for opt in $optional_libraries; do
|
|
define_option "$opt: Enable support for $opt."
|
|
done
|
|
|
|
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qtbase-opensource-src-$version.tar.xz" \
|
|
'184f9460b40752d71b15b827260580c2'
|
|
header_end
|
|
|
|
cd "qtbase-opensource-src-$version"
|
|
|
|
# Build using custom CFLAGS, CXXFLAGS and LDFLAGS (Shamelessly stolen from ArchLinux)
|
|
sed -i -e "s/^\(QMAKE_CFLAGS_RELEASE.*\)/\1 $(safe_sed "$CFLAGS")/" 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
|
|
|
|
optional=""
|
|
for opt in $optional_libraries; do
|
|
option $opt && optional="$optional -system-$opt" || optional="$optional -no-$opt"
|
|
done
|
|
|
|
echo "$optional"
|
|
|
|
# Make sure all the possible libraries are linked from the OS, as Qt might use it's own if they aren't available.
|
|
compile_qt5source \
|
|
-system-sqlite \
|
|
-system-zlib \
|
|
-system-pcre \
|
|
-system-xcb \
|
|
-system-xkbcommon-x11 \
|
|
-openssl-linked \
|
|
-dbus-linked \
|
|
-nomake examples \
|
|
$optional
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|
|
|