2015-08-20 19:29:37 +00:00
|
|
|
#
|
|
|
|
# This helper is for templates using Qt4/Qt5 qmake.
|
|
|
|
#
|
|
|
|
do_configure() {
|
2015-08-23 15:45:45 +00:00
|
|
|
qmake ${configure_args} \
|
|
|
|
PREFIX=/usr \
|
|
|
|
LIB=/usr/lib \
|
|
|
|
QMAKE_CFLAGS="${CFLAGS}" \
|
|
|
|
QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
QMAKE_LFLAGS="${LDFLAGS}"
|
2015-08-20 19:29:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
: ${make_cmd:=make}
|
|
|
|
|
2016-10-05 12:03:16 +00:00
|
|
|
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target} \
|
|
|
|
CC="$CC" CXX="$CXX" LINK="$CXX"
|
2015-08-20 19:29:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
: ${make_cmd:=make}
|
|
|
|
: ${make_install_target:=install}
|
|
|
|
|
|
|
|
${make_cmd} STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} \
|
2015-08-22 17:32:38 +00:00
|
|
|
INSTALL_ROOT=${DESTDIR} ${make_install_args} ${make_install_target}
|
2015-08-20 19:29:37 +00:00
|
|
|
}
|