lazarus/tools/install
2003-12-15 21:59:33 +00:00
..
debian_fpcsrc updated deb creation 2003-07-13 09:46:48 +00:00
debian_lazarus updated fpc deb creation 2003-07-13 14:33:25 +00:00
build_fpc_rpm.sh set default color to clWindow 2003-09-13 10:02:19 +00:00
build_fpcsrc_rpm.sh removed CustApp defines 2003-10-21 18:44:11 +00:00
create_fpc_deb.sh updated fpc deb creation 2003-07-13 10:27:08 +00:00
create_fpc_export_tgz.sh fixed scrollbars of TIpHtmlPanel 2003-03-31 20:25:19 +00:00
create_fpc_rpm.sh updated build scripts 2003-07-12 09:11:28 +00:00
create_fpc_tgz_from_local_dir.sh updated fpc deb creation 2003-07-13 14:12:55 +00:00
create_lazarus_deb.sh updated fpc deb creation 2003-07-13 14:33:25 +00:00
create_lazarus_export_tgz.sh added fully automatic lazarus rpm script 2003-03-16 16:37:31 +00:00
create_lazarus_rpm.sh fixed renaming of published vars, started RepairLFM wizard 2003-12-15 21:59:33 +00:00
create_lazarus_tgz_from_local_dir.sh updated fpc deb creation 2003-07-13 14:33:25 +00:00
do_nothing.sh updated rpm scripts 2003-10-22 17:50:17 +00:00
file_filter.sh updated rpm scripts 2003-10-22 17:50:17 +00:00
fpcsrc-patch fixed create fpc rpm 2002-08-18 04:56:58 +00:00
fpcsrc.spec updated rpm scripts 2003-10-22 17:50:17 +00:00
lazarus.spec updated build scripts 2003-07-12 09:11:28 +00:00
README added open installed package dialog 2003-04-05 11:17:00 +00:00
smart_strip.sh removed CustApp defines 2003-10-21 18:44:11 +00:00

Installation tools
==================

This document describes how to create the various packages for lazarus
including the required freepascal packages (fpc and fpcsrc).

--------------------------------------------------------------------------------
TGZ

Creating the fpcsrc tgz:

  There are two ways to do it and so there are two scripts. The first downloads
  the fpc cvs and packs it. The second uses an existing fpc cvs directory,
  copies it, remove unnecessary files and packs it. The second script is
  therefore much faster, but it may miss removing every old, unnecessary files.
  
  The download and pack script:
  The script create_fpc_export_tgz.sh makes a cvs export of the fpc.
  
  For 1.0.7: ./create_fpc_export_tgz.sh stable 03/01/03

  For 1.1: ./create_fpc_export_tgz.sh devel 12/25/02

  The copy and pack script:
  The script create_fpc_tgz_from_local_dir.sh needs as parameter the fpc cvs
  directory and compress it to a tgz. For example
  ./create_fpc_tgz_from_local_dir.sh ~/pascal/fpc fpc-1.0.7.tgz


Creating the lazarus tgz:

  There are two ways to do it and so there are two scripts. The first downloads
  the fpc cvs and packs it. The second uses an existing fpc cvs directory,
  copies it, remove unnecessary files and packs it. The second script is
  therefore much faster, but it may miss removing all old, unnecessary files.

  The download and pack script:
  The script create_lazarus_export_tgz.sh makes a cvs export of lazarus and
  compress it. For example:
  ./create_lazarus_export_tgz.sh lazarus-20030316.tgz
  
  The copy and pack script:
  The script create_lazarus_tgz_from_local_dir.sh needs as parameter the
  lazarus cvs directory and compress it to lazarus-0.8.5.tgz.

--------------------------------------------------------------------------------

RPM:

Creating the fpc and the fpcsrc rpm:

  There are two versions of the compiler: the stable 1.0.7 and the unstable
  developer version 1.1. To build them, you must install fpc first. Install the
  latest fpc package you can get. Note: The 1.0.7 can not be built with a 1.1
  compiler.
  The create_fpc_rpm.sh works nearly automatically. Become root and execute it.
  For 1.0.7: ./create_fpc_rpm.sh stable
  For 1.1:   ./create_fpc_rpm.sh devel

  What it does: First it checks if the fpc source tgz is already created and
  if not, it automatically downloads it. The script does not use the current
  version, but the latest known to work with lazarus. Then it unpacks the
  source, compiles it and builds the rpm. Normally you can find the rpms under
  /usr/src/redhat/RPMS/i386/ and /usr/src/redhat/SRPMS/.


Creating the lazarus rpm:

  Important:
  If you have created a new fpc RPM, then you should install it, *before* you
  build the lazarus RPM. Otherwise the compiled lazarus RPM is not compatible
  to the fpc RPM.

  As root:
  Execute create_lazarus_rpm.sh.


Creating other system specific rpms:

  rpm --rebuild lazarus-0.8.5-1.src.rpm


--------------------------------------------------------------------------------

Debian:

Creating the debian fpc and fpcsrc packages:

  There are two versions of the compiler: the stable 1.0.7 and the unstable
  developer version 1.1. To build them, you must install fpc first. Install the
  latest fpc package you can get. Note: The 1.0.7 can not be built with a 1.1
  compiler.
  The create_fpc_deb.sh works nearly automatically. Become root and execute it.
  For 1.0.7: ./create_fpc_deb.sh stable
  For 1.1:   ./create_fpc_deb.sh devel

  What it does: First it checks if the fpc source tgz is already created and
  if not, it automatically downloads it. The script does not use the current
  version, but the latest known to work with lazarus. Then it unpacks the
  source, compiles it and builds the debs. Normally you can find the debs under
  /usr/src/ and the current directory.


Creating the debian lazarus package:

  Important:
  If you have created new fpc debs, then you should install them, *before* you
  build the lazarus deb. Otherwise the compiled lazarus deb is not compatible
  to the fpc debs.

  As root:
  Execute create_lazarus_deb.sh.