2015-08-20 21:29:37 +02:00
|
|
|
#
|
|
|
|
# This helper is for templates using Qt4/Qt5 qmake.
|
|
|
|
#
|
|
|
|
do_configure() {
|
|
|
|
if [ -n "$build_pie" ]; then
|
2015-08-21 12:00:26 +02:00
|
|
|
qmake ${configure_args} \
|
2015-08-20 21:29:37 +02:00
|
|
|
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \
|
|
|
|
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now"
|
|
|
|
else
|
2015-08-21 12:00:26 +02:00
|
|
|
qmake ${configure_args}
|
2015-08-20 21:29:37 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
: ${make_cmd:=make}
|
|
|
|
|
|
|
|
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
: ${make_cmd:=make}
|
|
|
|
: ${make_install_target:=install}
|
|
|
|
|
|
|
|
${make_cmd} STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} \
|
|
|
|
INSTALL_ROOT=${DESTDIR}/usr ${make_install_args} ${make_install_target}
|
|
|
|
}
|