Changes between Version 8 and Version 9 of BepFile
- Timestamp:
- 01/15/08 11:25:14 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BepFile
v8 v9 3 3 == Introduction == 4 4 5 A .bep file is a ''recipe'' that BePorter uses to fetch, patch, build and install a software package. It is an ASCII file that contains a list of keys with corresponding (lists of) values. 5 A .bep file is a ''recipe'' that BePorter uses to fetch, patch, build and install a software package. It is an ASCII file that contains a list of keys with corresponding (lists of) values. Next to being a recipe for BePorter, it may also give specific information on how to build a particular application on BeOS (see below). 6 6 7 7 == Syntax == 8 9 === Comments === 10 11 It is possible to insert comments in the BepFile. 12 * the comment should be on a line of it's own 13 * the comment should be preceded with a hash (#) 14 * there may be whitespace preceding the '#' 8 15 9 16 === Key types === … … 73 80 ||{{{INSTALL}}}||list of shell commands to execute in order to install the port||shell||shell commands||no||-|| 74 81 75 Inside the BUILD and INSTALL scripts, it is possible to distinguish between the different BeOS platforms using the {{{BEPORTS_PLATFORM}}} environment variable. It can be one of {{{R5}}}, {{{BONE}}} or {{{HAIKU}}}.82 BUILD and INSTALL scripts are plain bash shell scripts. It is possible to do conditional execution or even loops. For example, it is possible to distinguish between the different BeOS platforms using the {{{BEPORTS_PLATFORM}}} environment variable. It can be one of {{{R5}}}, {{{BONE}}} or {{{HAIKU}}}. BePorter detects which BeOS platform it is running on and set the {{{BEPORTS_PLATFORM}}} variable accordingly. 76 83 77 An example of a build script is shown below. 84 An example of a build script is shown below. Notice that it is possible to add comments using a {{{#}}}. It is highly recommended to document anything special you might do inside a BUILD or INSTALL script. This might help people when they are porting other applications. 78 85 {{{ 79 86 BUILD { 80 87 cd xyz-1.0.0 81 88 if [ "$BEPORTS_PLATFORM" = "BONE" ] ; then 82 export EXTRA_CONFARGS="--enable-debug" # there are still some problems on BONE89 export EXTRA_CONFARGS="--enable-debug" # some problems on BONE because of ... 83 90 else 84 91 export EXTRA_CONFARGS="" … … 89 96 }}} 90 97 91 When a key is not listed in the BepFile, BePorter assumes the default value, or an empty string/list ( ifno default value is specified above).98 When a key is not listed in the BepFile, BePorter assumes the default value, or an empty string/list (when no default value is specified above). 92 99 93 100 Note: It is possible that the names and/or the use of these keys may change as BePorter evolves. Keys may also be added and removed. When BePorter gets a release, the key set shall be frozen. 94 95 It is possible to insert '''comments''' in the BepFile.96 * the comment should be on a line of it's own97 * the comment should be preceded with a hash (#)98 * there may be whitespace preceding the '#'
