[00cbc797] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8163ea8f] | 7 | <!--
|
---|
| 8 | NOTE:
|
---|
| 9 | Whenever upgrading to another version of Lazarus,
|
---|
| 10 | update qt5pas.xml, too!
|
---|
| 11 | -->
|
---|
[d6d97a56] | 12 | <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;-&lazarus-patch-version;.tar.gz">
|
---|
[8163ea8f] | 13 | <!ENTITY lazarus-md5sum "c47680c84192008af1d05aa42b58c1da">
|
---|
| 14 | <!ENTITY lazarus-size "73.2 MB">
|
---|
| 15 | <!ENTITY lazarus-buildsize "817.2 MB">
|
---|
| 16 | <!ENTITY lazarus-time "1.5 SBU">
|
---|
[00cbc797] | 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="lazarus" xreflabel="lazarus-&lazarus-version;">
|
---|
| 20 | <?dbhtml filename="lazarus.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Lazarus-&lazarus-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="lazarus">
|
---|
| 29 | <primary sortas="a-lazarus">lazarus</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to lazarus</title>
|
---|
| 34 |
|
---|
| 35 | <para><!-- copied from https://www.lazarus-ide.org/ -->
|
---|
| 36 | Lazarus is a Delphi compatible cross-platform IDE for Rapid
|
---|
| 37 | Application Development. It has variety of components ready
|
---|
| 38 | for use and a graphical form designer to easily create complex
|
---|
| 39 | graphical user interfaces.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
[d6d97a56] | 42 | &lfs111_checked;
|
---|
[00cbc797] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&lazarus-download-http;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &lazarus-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &lazarus-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &lazarus-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &lazarus-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">Lazarus Dependencies</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
| 75 | <xref linkend="fpc"/>, and one of
|
---|
[8163ea8f] | 76 | <xref linkend="qt5"/> and <xref linkend="qt5pas"/> for QT based IDE, or
|
---|
| 77 | <xref linkend="gtk2"/> for Gtk2 based IDE
|
---|
[00cbc797] | 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <para condition="html" role="usernotes">User Notes:
|
---|
| 81 | <ulink url="&blfs-wiki;/lazarus"/></para>
|
---|
| 82 |
|
---|
| 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="installation">
|
---|
| 86 | <title>Installation of Lazarus</title>
|
---|
| 87 |
|
---|
| 88 | <para>
|
---|
| 89 | Ensure that the source tree is in proper state:
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput>make -j1 FPC=/usr/bin/fpc clean</userinput></screen>
|
---|
| 93 |
|
---|
| 94 | <!--
|
---|
| 95 | Looks like that even both versions (gtk2, qt5) can be on one machine
|
---|
| 96 | when the binaries 'lazarus' and 'startlazarus' are moved to
|
---|
| 97 | lazarus -> lazarus-gtk2
|
---|
| 98 | startlazarus -> startlazarus-gtk2
|
---|
| 99 | and after building the QT5 variant
|
---|
| 100 | lazarus -> lazarus-qt5
|
---|
| 101 | startlazarus -> startlazarus-qt5
|
---|
[d2fb261] | 102 | and than symlink lazarus/startlazarus to the desired ones.
|
---|
[00cbc797] | 103 | (it needs to be analyzed more deeply)
|
---|
| 104 |
|
---|
| 105 | Instructions are taken from ArchLinux and adopted to LFS
|
---|
| 106 | -->
|
---|
| 107 | <para>
|
---|
| 108 | If you want to build <application>Lazarus</application> with
|
---|
| 109 | the gtk2 toolkit, build the package by running the following
|
---|
[d6d97a56] | 110 | commands, otherwise skip the following instructions and proceed
|
---|
| 111 | to the instructions to build the QT5 based variant below.
|
---|
[00cbc797] | 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk2 bigide</userinput></screen>
|
---|
| 115 |
|
---|
| 116 | <para>
|
---|
| 117 | If you have built the gtk2 variant, skip the QT5 section and
|
---|
| 118 | proceed to the installation. Otherwise
|
---|
| 119 | <application>Lazarus</application> is built using the
|
---|
| 120 | QT5 library by running the following commands:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
| 126 | This package does not come with a test suite.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | Now, install <application>lazarus</application> as the
|
---|
| 131 | <systemitem class="username">root</systemitem> user:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
[8163ea8f] | 134 | <screen role="root"><userinput>make INSTALL_PREFIX=/usr distinstall
|
---|
| 135 |
|
---|
| 136 | mv /usr/share/lazarus/docs /usr/share/doc/lazarus
|
---|
| 137 |
|
---|
| 138 | mv /usr/share/lazarus /usr/lib/
|
---|
| 139 | for L in $(find /usr/bin -type l); do
|
---|
| 140 | ln -svf "$(readlink $L | sed 's@/share/@/lib/@')" "$L"
|
---|
| 141 | done
|
---|
[00cbc797] | 142 |
|
---|
| 143 | sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
|
---|
[8163ea8f] | 144 | -i /usr/share/applications/lazarus.desktop
|
---|
| 145 |
|
---|
| 146 | install -Dm644 images/ide_icon48x48.png \
|
---|
| 147 | /usr/share/pixmaps/lazarus.png</userinput></screen>
|
---|
[00cbc797] | 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Program</segtitle>
|
---|
| 156 | <segtitle>Installed Libraries</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
[8163ea8f] | 160 | <seg>startlazarus, lazarus-ide, lrstolfm, updatepofiles, lazbuild, lazres</seg>
|
---|
[00cbc797] | 161 | <seg>None</seg>
|
---|
[8163ea8f] | 162 | <seg>/usr/lib/lazarus</seg>
|
---|
[00cbc797] | 163 | </seglistitem>
|
---|
| 164 | </segmentedlist>
|
---|
| 165 |
|
---|
| 166 | <variablelist>
|
---|
| 167 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 168 | <?dbfo list-presentation="list"?>
|
---|
| 169 | <?dbhtml list-presentation="table"?>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="lazarus-pgm">
|
---|
[8163ea8f] | 172 | <term><filename class="libraryfile">startlazarus</filename></term>
|
---|
[00cbc797] | 173 | <listitem>
|
---|
| 174 | <para>
|
---|
[8163ea8f] | 175 | Starting the Delphi-like IDE
|
---|
[00cbc797] | 176 | </para>
|
---|
| 177 | <indexterm zone="lazarus lazarus-pgm">
|
---|
[8163ea8f] | 178 | <primary sortas="b-lazarus">startlazarus</primary>
|
---|
[00cbc797] | 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | </variablelist>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | </sect1>
|
---|