lazarus/tools/install
vincents 44938f31e1 added file for win32 installer
git-svn-id: trunk@6092 -
2004-09-30 21:50:22 +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
macosx added hints to create fpc dmg for MacOSX 2004-08-16 09:55:52 +00:00
win32 added file for win32 installer 2004-09-30 21:50:22 +00:00
build_fpc_rpm.sh added TCustomButton, TCustomBitBtn, TCustomSpeedButton 2004-07-15 10:43:39 +00:00
build_fpcsrc_rpm.sh added debian package build files from Pierre Gillmann 2004-06-07 19:56:01 +00:00
create_clean_fpcsrc_directory.sh added UniCode keyvals 2004-08-16 16:03:52 +00:00
create_clean_lazarus_directory.sh added UniCode keyvals 2004-08-16 16:03:52 +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_tgz_from_local_dir.sh added create_clean_fpcsrc_directory.sh 2004-08-16 13:04:28 +00:00
create_lazarus_deb.sh increased version to 0.9.2 beta 2004-08-20 15:33:18 +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 increased rpm version to 0.9.2.2 2004-09-18 12:25:39 +00:00
create_lazarus_tgz_from_local_dir.sh added create_clean_lazarus_directory.sh 2004-08-16 12:17:49 +00:00
do_nothing.sh updated rpm scripts 2003-10-22 17:50:17 +00:00
download_and_build_fpc_rpm.sh mv create_fpc_rpm.sh download_and_build_fpc_rpm.sh 2004-06-07 10:15:11 +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 increased rpm version 0.9.1.4 2004-05-29 10:43:39 +00:00
get_lazarus_version.sh increased version to 0.9.2 beta 2004-08-20 15:33:18 +00:00
lazarus.spec added workaround for buggy typinfo GetMethodProp function 2004-06-01 22:49:50 +00:00
README increased version to 0.9.2 beta 2004-08-20 15:33:18 +00:00
replace_in_files.pl rpm build scripts now automatically fixes versions in fpc Makefiles 2004-06-07 10:10:50 +00:00
smart_strip.sh implemented tab completion for word and identifier completion 2004-01-08 22:15:39 +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.11: ./create_fpc_export_tgz.sh stable 05/20/04

  For 1.9: ./create_fpc_export_tgz.sh devel 05/20/04

  The 05/20/04 means may 20th 2004.
  
  The copy and pack script:
  The script create_fpc_tgz_from_local_dir.sh needs as parameter the fpc cvs
  directory and compresses it to a tgz. For example
  ./create_fpc_tgz_from_local_dir.sh ~/pascal/fpc fpc-1.0.10.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.11 and the unstable
  developer version 1.9. To build them, you must install fpc first. Install the
  stable fpc release (1.0.10). Note: The 1.0.11 can not be built with a 1.9
  compiler and the recommended startup compiler for the 1.9.x is the released
  fpc 1.0.10.

  If you have your own fpc sources you can build the rpm with:
    Become root and do:
    cd <lazarus_directory>/tools/install
    ./build_fpc_rpm.sh nodocs /path/to/your/fpc/sources/new19/fpc 040501

  The 040501 stands for: 2004 may 1st

  The create_fpc_rpm.sh works nearly automatically. Become root and execute it.
    For 1.0.11: ./create_fpc_rpm.sh stable
    For 1.9:    ./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.9.1-1.src.rpm


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

Debian:

Creating the debian fpc and fpcsrc packages:

  There are two versions of the compiler: the stable 1.0.11 and the unstable
  developer version 1.9. To build them, you must install fpc first. Install the
  stable fpc release (1.0.10). Note: The 1.0.11 can not be built with a 1.9
  compiler.
  The create_fpc_deb.sh works nearly automatically. Become root and execute it.
  For 1.0.11: ./create_fpc_deb.sh stable
  For 1.9:    ./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.

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

Mac OS X:

Creating the DMG packages for FPC and Lazarus:

1. create a temp directory with a usr/local hierarchy under it, owned
   by root (e.g. sudo mkdir -p ~/fpcinst/usr/local)
2. cd fpc   (your fpc source directory)
3. make all
4. sudo make install INSTALL_PREFIX=~/fpcinst/usr/local
   (it's very important that you use sudo, because the ownership info will be
   the same when it's installed on the user's computer and you don't want
   those files to belong to the user that happens to have the same uid as
   you have)
5. cd compiler
   sudo make installsymlink INSTALL_PREFIX=~/fpcinst/usr/local
   Fix sym link:
   sudo ln -sf /usr/local/lib/fpc/1.9.5/ppcppc ~/fpcinst/usr/local/bin/ppcppc
6. unzip the <lazarus>/tools/install/macosx/fpc_installer_info.zip somewhere,
   open "fpc 1.9.5.pmsp" (it will open in PackageMaker) change the "resources"
   path so it points to the unzipped fpc_resources directory and the "files"
   path so it points to ~/fpcinst and then choose File->Create Package
7. Put the package in a directory called "Free Pascal Compiler 1.9.5",
   add in the "Introduction.txt" and "ReadMe.txt" files from the dmg you
   already downloaded and create a (compressed or not doesn't really
   matter, the package is already compressed) disk image from the folder
   with Disk Copy (if you're under 10.1/10.2), Disk Utility (10.3) or
   hdiutil (command line, see manpage for how to do it).

Unfortunaly, there does not seem to be a command line program that can
create an installer package starting from a .pmsp file and PackageMaker
is not AppleScriptable... It could still be automated using GUI
scripting of course).