HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 8 and Version 9 of BepFile


Ignore:
Timestamp:
01/15/08 11:25:14 (7 years ago)
Author:
brecht
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BepFile

    v8 v9  
    33== Introduction == 
    44 
    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. 
     5A .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). 
    66 
    77== Syntax == 
     8 
     9=== Comments === 
     10 
     11It 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 '#' 
    815 
    916=== Key types === 
    … …  
    7380||{{{INSTALL}}}||list of shell commands to execute in order to install the port||shell||shell commands||no||-|| 
    7481 
    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}}}. 
     82BUILD 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. 
    7683 
    77 An example of a build script is shown below.  
     84An 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. 
    7885{{{ 
    7986BUILD { 
    8087        cd xyz-1.0.0 
    8188        if [ "$BEPORTS_PLATFORM" = "BONE" ] ; then 
    82                 export EXTRA_CONFARGS="--enable-debug"  # there are still some problems on BONE 
     89                export EXTRA_CONFARGS="--enable-debug"  # some problems on BONE because of ... 
    8390        else 
    8491                export EXTRA_CONFARGS="" 
    … …  
    8996}}} 
    9097 
    91 When a key is not listed in the BepFile, BePorter assumes the default value, or an empty string/list (if no default value is specified above). 
     98When 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). 
    9299 
    93100Note: 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 own 
    97  * the comment should be preceded with a hash (#) 
    98  * there may be whitespace preceding the '#' 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/