Scroll to navigation

PMKFILE(5) File Formats Manual PMKFILE(5)

NAME

pmkfile
pmk specification file

DESCRIPTION

pmkfile is a file containing specifications that help configuring a package build on a given platform.

SYNTAX

See pmksyntax.5 to have an overview of the basic syntax of pmkfiles.

SPECIFIC COMMANDS

The following commands have no label.
This command sets pmk parameters.
Arguments:
type is 'quoted', enable autoconf compatibility (empty string or filename).
type is 'quoted', global default language.
type is 'list', list of target's filenames.
type is 'list', list of languages (compilers to identify).
For example:
SETTINGS { 
	AC_COMPAT="config.h" 
	LANG="C" 
	TARGET=("src/file.c","src/file.h") 
	DETECT=("CC") 
}
    
This command permits to define variables.
Arguments:
Those are the variables to be defined (quote data type only).
    
For example:
DEFINE { 
	PACKAGE="my_prog" 
	VERSION="0.1" 
}
    
This command is setting dependency switches (see further DEPEND definition).
Arguments:
For example:
SWITCHES { 
	use_curses=TRUE 
	use_gtk=FALSE 
}
    

STANDARD COMMANDS

All these commands need a label.
They can all have the following optional arguments:
Specify if this test is required to achieve the configuration. Type is 'bool'. If not specified, it is TRUE by default.
Specify check dependencies. Type is 'list'. A dependency is a label or a switch name. The value of each dependency can be negated by adding a leading '!' sign. If at least one of the dependencies is false then the check will be disabled.
For example:
DEPEND = ("header_gtk","!header_qt")
    
Specify additional defines. Type is 'list'. If the check succeeds then the given defines are also recorded else they are ignored.
Some of these commands can also have the following arguments:
Specify the language used in the following list:
, C++
 
Type is 'quoted', by default \"C\" is the used language.
Here the list of commands:
Check if a binary is in the path.
Arguments:
 
 
 
NAME
type is 'quoted', name of the binary.
type is 'quoted', variable name to store the path.
Check language header and optionally a function.
Arguments:
 
 
 
 
NAME
type is 'quoted', name of the header.
type is 'list', list of one or more compiler macros to check, optional.
type is 'quoted' or 'list', name or list of functions to check, optional.
type is 'quoted', variable name to store CFLAGS values, optional.
type is 'list', list of header dependencies, optional.
Check a library and optionally a function.
Arguments:
 
 
 
 
NAME
type is 'quoted', name of the library to check.
type is 'quoted' or 'list', name or list of functions to check, optional.
type is 'quoted', variable name to store LIBS values, optional.
Check using a *-config tool.
Arguments:
 
 
 
NAME
type is 'quoted', config tool name.
VERSION
type is 'quoted', minimal version needed, optional.
type is 'quoted', variable name to store CFLAGS values, optional.
type is 'quoted', variable name to store LIBS values, optional.
type is 'quoted', variable name to store the path of the config tool, optional.
Check a package using pkg-config.
Arguments:
 
 
 
NAME
type is 'quoted', package name.
VERSION
type is 'quoted', minimal version needed, optional.
type is 'quoted', variable name to store CFLAGS values, optional.
type is 'quoted', variable name to store LIBS values, optional.
Check if the given type exists.
Arguments:
 
 
 
 
NAME
type is 'quoted', name of the type to check.
type is quoted, name of the header where to find the given type.
type is quoted, name of a member of the structure given in NAME to be checked.
Check if the given variable does exist and optionally its value.
Arguments:
 
 
 
NAME
type is 'quoted', name of the variable to check.
type is 'quoted', value to check with the variable, optional.

CONDITIONAL COMMANDS

It contains other commands that will be executed only if the given expression is true.
Arguments:
For example:
IF(header_gtk) { 
	DEFINE { 
		HAVE_GTK = "1" 
	} 
}
    
It contains other commands that will be executed only if the given expression is false.
Arguments:
For example:
ELSE(header_glib) { 
	DEFINE { 
		HAVE_GLIB = "0" 
	} 
}
    

LIBRARY NAME BUILDING

This command helps you to build static and/or shared library name(s) depending on the rules of the host operanding system.
Arguments:
NAME
type is 'quoted', name of the library (without leading 'lib').
type is 'quoted', major number for the version, optional.
type is 'quoted', minor number for the version, optional.
type is 'quoted', variable that will be set with the shared library name, optional.
type is 'quoted', variable that will be set with the static library name, optional.
VERSION
type is 'boolean', boolean value for library version processing , optional.
For example:
BUILD_LIB_NAME { 
	NAME = "test" 
	STATIC = "TESTLIB_STATIC" 
	SHARED = "TESTLIB_SHARED" 
	MAJOR = "0" 
	MINOR = "2" 
	VERSION = TRUE 
}
    
This command has been obsoleted by the BUILD_LIB_NAME command.

SEE ALSO

pmk(1), pmkscan(1), pmksyntax.5
April 27, 2003 Debian