QMAKE-MODULE(5) | File Formats Manual | QMAKE-MODULE(5)

# NAME

`qmake-module` — devel/qmake port module

# DESCRIPTION

This manual page documents the behavior of setting `MODULES=devel/qmake` in the ports(7) tree.

This module automates usage of qmake, independently of the actual version of Qt being used. This module requires that one of the x11/qt* to be used as well.

If `CONFIGURE_STYLE` was not set before, sets its value to ‘qmake’. If `CONFIGURE_STYLE` contains ‘qmake’ the module will define each of the do-build and do-install targets, unless port already defines one; also, `SEPARATE_BUILD` will be set to ‘Yes’ unless it's already set to some value. Also, unless `NO_TEST` is set, the do-test target will be defined.

The following variables could be used in qmake-based ports:

`MODQMAKE_ARGS`
  Additional arguments for qmake invocation. The module already defines some.
`MODQMAKE_INSTALL_ROOT`
  Root directory for fake install. Normally, it's a WRKINST, but some (broken) ports require another value, like PREFIX.
`MODQMAKE_PROJECTS`
  List of qmake project files to be used, relative to WRKSRC. Directories containing those projects could be used as well, see qmake documentation for details. Defaults to ‘.’, which means the (only) project in WRKSRC directory.
`MODQMAKE_RECURSIVE`
  If ‘Yes’, then qmake will be run recursively during configure stage; otherwise, only projects mentioned in `MODQMAKE_PROJECTS` will be processed during configure stage, and their descendants will be visited during main build phase. Sometimes a qmake project processing depends on files generated by other qmake project during build, and recursive builds break this. Defaults to ‘Yes’.
`MODQMAKE_build`
  Actual commands that module will use to build all `MODQMAKE_PROJECTS` provided. To be used in complicated cases, when port have to use its own do-build target or mix different `CONFIGURE_STYLE` values.
`MODQMAKE_install`
  Same as for `MODQMAKE_build`, but used in do-install stage.

# SEE ALSO

port-modules(5)

November 27, 2022 | Debian