source: general/prog/lazarus.xml@ 8034a2b

lazarus
Last change on this file since 8034a2b was 00cbc797, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Add lazarus

  • Property mode set to 100644
File size: 6.1 KB
Line 
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
7 <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;.tar.gz">
8 <!ENTITY lazarus-md5sum "208dfeb20c528649d2598cc0eb341309">
9 <!ENTITY lazarus-size "66.3 MB">
10 <!ENTITY lazarus-buildsize "x.x MB">
11 <!ENTITY lazarus-time "x SBU">
12]>
13
14<sect1 id="lazarus" xreflabel="lazarus-&lazarus-version;">
15 <?dbhtml filename="lazarus.html"?>
16
17 <sect1info>
18 <date>$Date$</date>
19 </sect1info>
20
21 <title>Lazarus-&lazarus-version;</title>
22
23 <indexterm zone="lazarus">
24 <primary sortas="a-lazarus">lazarus</primary>
25 </indexterm>
26
27 <sect2 role="package">
28 <title>Introduction to lazarus</title>
29
30 <para><!-- copied from https://www.lazarus-ide.org/ -->
31 Lazarus is a Delphi compatible cross-platform IDE for Rapid
32 Application Development. It has variety of components ready
33 for use and a graphical form designer to easily create complex
34 graphical user interfaces.
35 </para>
36
37 &lfs110a_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&lazarus-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &lazarus-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &lazarus-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &lazarus-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &lazarus-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Lazarus Dependencies</bridgehead>
69 <para role="required">
70 <xref linkend="rsync"/>,
71 <xref linkend="fpc"/>, and one of
72 <xref linkend="qt5"/> and <xref linkend="qt5pas"/>, or
73 <xref linkend="gtk2"/>
74 </para>
75
76 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/lazarus"/></para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of Lazarus</title>
83
84 <para>
85 Ensure that the source tree is in proper state:
86 </para>
87
88<screen><userinput>make -j1 FPC=/usr/bin/fpc clean</userinput></screen>
89
90<!--
91 Looks like that even both versions (gtk2, qt5) can be on one machine
92 when the binaries 'lazarus' and 'startlazarus' are moved to
93 lazarus -> lazarus-gtk2
94 startlazarus -> startlazarus-gtk2
95 and after building the QT5 variant
96 lazarus -> lazarus-qt5
97 startlazarus -> startlazarus-qt5
98 (it needs to be analyzed more deeply)
99
100 Instructions are taken from ArchLinux and adopted to LFS
101-->
102 <para>
103 If you want to build <application>Lazarus</application> with
104 the gtk2 toolkit, build the package by running the following
105 commands, otherwise proceed to build the QT5 based variant below.
106 </para>
107
108<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk2 bigide</userinput></screen>
109
110 <para>
111 If you have built the gtk2 variant, skip the QT5 section and
112 proceed to the installation. Otherwise
113 <application>Lazarus</application> is built using the
114 QT5 library by running the following commands:
115 </para>
116
117<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
118
119 <para>
120 This package does not come with a test suite.
121 </para>
122
123 <para>
124 Now, install <application>lazarus</application> as the
125 <systemitem class="username">root</systemitem> user:
126 </para>
127
128<!-- some of the dirs already exists -+
129 V -->
130<screen role="root"><userinput>mkdir -pv /usr/{lib/lazarus,bin,share{/man/man1,/doc}}
131rsync -a \
132 --exclude="CVS" --exclude=".cvsignore" \
133 --exclude="*.ppw" --exclude="*.ppl" \
134 --exclude="*.ow" --exclude="*.a"\
135 --exclude="*.rst" --exclude=".#*" \
136 --exclude="*.~*" --exclude="*.bak" \
137 --exclude="*.orig" --exclude="*.rej" \
138 --exclude=".xvpics" \
139 --exclude="killme*" --exclude=".gdb_hist*" \
140 --exclude="debian" --exclude="COPYING*" \
141 --exclude="*.app" --exclude="tools/install" \
142 . /usr/lib/lazarus
143ln -s /usr/lib/lazarus/lazbuild /usr/bin/lazbuild
144cp -R install/man/man1/* /usr/share/man/man1/
145mv /usr/lib/lazarus/docs /usr/share/doc/lazarus
146
147mkdir -p /usr/lib/lazarus/docs
148ln -s /usr/share/doc/lazarus/chm /usr/lib/lazarus/docs/html
149ln -s /usr/share/doc/lazarus/lazdoc.css /usr/lib/lazarus/docs/lazdoc.css
150
151install -D -m644 COPYING.modifiedLGPL.txt /usr/share/licenses/lazarus/COPYING.modifiedLGPL
152
153sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
154 -e 's|\.png|\.xpm|' -i install/lazarus.desktop
155install -Dm644 install/lazarus.desktop /usr/share/applications/lazarus.desktop
156install -Dm644 images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png</userinput></screen>
157
158 </sect2>
159
160 <sect2 role="content">
161 <title>Contents</title>
162
163 <segmentedlist>
164 <segtitle>Installed Program</segtitle>
165 <segtitle>Installed Libraries</segtitle>
166 <segtitle>Installed Directories</segtitle>
167
168 <seglistitem>
169 <seg>lazarus, ...</seg>
170 <seg>None</seg>
171 <seg>None</seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="lazarus-pgm">
181 <term><filename class="libraryfile">lazarus</filename></term>
182 <listitem>
183 <para>
184 the Delphi-like IDE
185 </para>
186 <indexterm zone="lazarus lazarus-pgm">
187 <primary sortas="b-lazarus">lazarus</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 </variablelist>
193
194 </sect2>
195
196</sect1>
Note: See TracBrowser for help on using the repository browser.