These macros are used in the build instructions of packages.
Table C.1. GPT Build Macros
Name | Description | Example |
---|---|---|
INSTALLDIR_GPTMACRO | The installation directory that GPT is building into | <Build_Step> ./configure --prefix=INSTALLDIR_GPTMACRO </Build_Step> |
FLAVOR_GPTMACRO | The flavor label that GPT is building with | <Build_Step> ./configure --with-flavor=FLAVOR_GPTMACRO </Build_Step> |
BUILDDIR_GPTMACRO | The build directory that GPT is building in | <Build_Step> cd BUILDDIR_GPTMACRO </Build_Step> |
STATIC_LINK_GPTMACRO | Set to 'yes' if GPT is linking to static libraries or 'no' if GPT is linking to shared libraries | <Build_Step> if test "STATIC_LINK_GPTMACRO" = "yes"; then ./configure --enable-static fi </Build_Step> |
MAKE_GPTMACRO | The location of GNU make that GPT is using | <Build_Step> MAKE_GPTMACRO install </Build_Step> |
CONFIGOPTS_GPTMACRO | Switches defined by the package and the flavor which are passed into the configure build step. | <build_step> ./configure CONFIGOPTS_GPTMACRO </build_step> |
CONFIGENV_GPTMACRO | Variables that need to be set before running configure. The values of these variables are determined by the package data and the flavor. All of the available variables are used. | <build_step> CONFIGENV_GPTMACRO ./configure --with-flavor=FLAVOR_GPTMACRO </build_step> |
RUN_FLAVOR_INSTALL_GPTMACRO | GPT function which moves header files in the INSTALLDIR_GPTMACRO/include into a subdirectory named with the flavor | <Build_Step> RUN_FLAVOR_INSTALL_GPTMACRO </Build_Step> |
RUN_FLAVOR_MAKEFILES_GPTMACRO | GPT function which adds the flavor name to shared library names that are found in configure scripts, Makefiles, files ending with the 'mk' or 'mak' extensions, and files found in a shlib directory. Shared library names need to be listed in the Macro_Args attribute. The example shows the function being executed for the openldap build flavoring both dependent security libraries and the libraries built by openldap. The libraries are listed by soname. | <Build_Step Macro_Args="libs='ssl crypto sasl lber ldap ldap_r ltdl lutil'"> RUN_FLAVOR_MAKEFILES_GPTMACRO </Build_Step> |