Lines 38-54
IGNORE= 'USES+= qmake' must be accompani
Link Here
|
38 |
# targets (currently, only qmake-configure), without qmake being added to the |
38 |
# targets (currently, only qmake-configure), without qmake being added to the |
39 |
# configure stage. |
39 |
# configure stage. |
40 |
_VALID_ARGS= norecursive outsource _env |
40 |
_VALID_ARGS= norecursive outsource _env |
41 |
_qmake_ARGS= ${qmake_ARGS:S/\:/ /g} |
|
|
42 |
|
41 |
|
43 |
.if defined(qmake_ARGS) |
42 |
.for arg in ${qmake_ARGS} |
44 |
. for arg in ${_qmake_ARGS} |
|
|
45 |
. if empty(_VALID_ARGS:M${arg}) |
43 |
. if empty(_VALID_ARGS:M${arg}) |
46 |
IGNORE= Incorrect 'USES+= qmake' usage: argument '${arg}' is not recognized |
44 |
IGNORE= Incorrect 'USES+= qmake' usage: argument '${arg}' is not recognized |
47 |
. endif |
45 |
. endif |
48 |
. endfor |
46 |
.endfor |
49 |
.endif |
|
|
50 |
|
47 |
|
51 |
.if ! ${_qmake_ARGS:M_env} |
48 |
.if ! ${qmake_ARGS:M_env} |
52 |
USE_QT${_QT_VERSION:R:R}+= qmake_build |
49 |
USE_QT${_QT_VERSION:R:R}+= qmake_build |
53 |
.endif |
50 |
.endif |
54 |
|
51 |
|
Lines 76-82
QMAKE_ARGS+= CONFIG+="release" \
Link Here
|
76 |
.endif # defined(WITH_DEBUG) |
73 |
.endif # defined(WITH_DEBUG) |
77 |
|
74 |
|
78 |
# We set -recursive by default to keep qmake from running in the build stage. |
75 |
# We set -recursive by default to keep qmake from running in the build stage. |
79 |
.if ! ${_qmake_ARGS:Mnorecursive} |
76 |
.if ! ${qmake_ARGS:Mnorecursive} |
80 |
QMAKE_ARGS+= -recursive |
77 |
QMAKE_ARGS+= -recursive |
81 |
.endif |
78 |
.endif |
82 |
|
79 |
|
Lines 88-94
QMAKE_ARGS+= -d
Link Here
|
88 |
# use it for both qtbase and USES=qmake ports. They are private, not supposed to |
85 |
# use it for both qtbase and USES=qmake ports. They are private, not supposed to |
89 |
# be used anywhere else. |
86 |
# be used anywhere else. |
90 |
_QMAKE_WRKSRC?= ${CONFIGURE_WRKSRC} |
87 |
_QMAKE_WRKSRC?= ${CONFIGURE_WRKSRC} |
91 |
.if ${_qmake_ARGS:Moutsource} |
88 |
.if ${qmake_ARGS:Moutsource} |
92 |
CONFIGURE_WRKSRC= ${WRKDIR}/.build |
89 |
CONFIGURE_WRKSRC= ${WRKDIR}/.build |
93 |
BUILD_WRKSRC= ${CONFIGURE_WRKSRC} |
90 |
BUILD_WRKSRC= ${CONFIGURE_WRKSRC} |
94 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
91 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
Lines 97-103
QMAKE_SOURCE_PATH?= ${WRKSRC}
Link Here
|
97 |
QMAKE_SOURCE_PATH?= # empty |
94 |
QMAKE_SOURCE_PATH?= # empty |
98 |
.endif |
95 |
.endif |
99 |
|
96 |
|
100 |
.if ! ${_qmake_ARGS:M_env} |
97 |
.if ! ${qmake_ARGS:M_env} |
101 |
DESTDIRNAME= INSTALL_ROOT |
98 |
DESTDIRNAME= INSTALL_ROOT |
102 |
.endif |
99 |
.endif |
103 |
|
100 |
|
Lines 108-114
qmake-configure:
Link Here
|
108 |
@cd ${_QMAKE_WRKSRC} && \ |
105 |
@cd ${_QMAKE_WRKSRC} && \ |
109 |
${SETENV} ${QMAKE_ENV} ${_QMAKE} ${QMAKE_ARGS} ${QMAKE_SOURCE_PATH} |
106 |
${SETENV} ${QMAKE_ENV} ${_QMAKE} ${QMAKE_ARGS} ${QMAKE_SOURCE_PATH} |
110 |
|
107 |
|
111 |
.if !target(do-configure) && ! ${_qmake_ARGS:M_env} |
108 |
.if !target(do-configure) && ! ${qmake_ARGS:M_env} |
112 |
do-configure: qmake-configure |
109 |
do-configure: qmake-configure |
113 |
@${DO_NADA} |
110 |
@${DO_NADA} |
114 |
.endif |
111 |
.endif |