source: xsoft/other/inkscape.xml@ ef1957f8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ef1957f8 was ef1957f8, checked in by Andrew Benton <andy@…>, 12 years ago

patch Inkscape so it will compile with Poppler 0.20

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10368 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.0 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 inkscape-download-http "&sourceforge-repo;/inkscape/inkscape-&inkscape-version;.tar.bz2">
8 <!ENTITY inkscape-download-ftp " ">
9 <!ENTITY inkscape-md5sum "f60b98013bd1121b2cc301f3485076ba">
10 <!ENTITY inkscape-size "18.7 MB">
11 <!ENTITY inkscape-buildsize "1.9 GB">
12 <!ENTITY inkscape-time "16 SBU">
13]>
14
15<sect1 id="inkscape" xreflabel="Inkscape-&inkscape-version;">
16 <?dbhtml filename="inkscape.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Inkscape-&inkscape-version;</title>
24
25 <indexterm zone="inkscape">
26 <primary sortas="a-inkscape">Inkscape</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Inkscape</title>
31
32 <para>
33 <application>Inkscape</application> is a what you see is what you get
34 Scalable Vector Graphics editor. It is useful for creating, viewing and
35 changing SVG images.
36 </para>
37
38 &lfs71_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&inkscape-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&inkscape-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &inkscape-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &inkscape-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &inkscape-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &inkscape-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Required patch:
79 <ulink url="&patch-root;/inkscape-&inkscape-version;_gcc-4.7-1.patch"/>
80 </para>
81 <para>
82 Optional patch:
83 <ulink url="&patch-root;/inkscape-&inkscape-version;-poppler-0.20-1.patch"/>
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">Inkscape Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
91 <para role="required">
92 <xref linkend="gtkmm2"/>,
93 <xref linkend="gc"/>,
94 <xref linkend="gsl"/>,
95 <xref linkend="boost"/>,
96 <xref linkend="libpng"/> and
97 <xref linkend="intltool"/>.
98 </para>
99
100 <bridgehead renderas="sect4">Optional</bridgehead>
101 <para role="optional">
102 <xref linkend="lcms"/>,
103 <xref linkend="poppler"/>,
104 <xref linkend="gnome-vfs"/>,
105 <xref linkend="imagemagick"/>,
106 <xref linkend="popt"/>,
107 <xref linkend="doxygen"/>,
108 <xref linkend="aspell"/> and
109 <ulink url="http://libwpg.sourceforge.net/">Libwpg</ulink>.
110 </para>
111
112 <para condition="html" role="usernotes">
113 User Notes: <ulink url="&blfs-wiki;/inkscape"/>
114 </para>
115 </sect2>
116
117 <sect2 role="installation">
118 <title>Installation of Inkscape</title>
119
120 <para>
121 If you have installed <xref linkend="poppler"/>, apply the patch to fix
122 compiling with Poppler 0.20:
123 </para>
124
125<screen><userinput>patch -p1 &lt; ../inkscape-&inkscape-version;-poppler-0.20-1.patch</userinput></screen>
126
127 <para>
128 Fix a bug that would otherwise prevent compiling with
129 <application>Libpng 1.5</application>:
130 </para>
131
132<screen><userinput>sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' \
133 src/{extension/internal/pdfinput/svg-builder,helper/png-write}.cpp</userinput></screen>
134
135 <para>
136 Fix a bug that would otherwise prevent compiling with
137 <application>Libpng 1.5.7</application> or greater:
138 </para>
139
140<screen><userinput>sed -i 's#if ( png_get_iCCP.*#if (0) {#' src/sp-image.cpp</userinput></screen>
141
142 <para>
143 If you have <emphasis>not</emphasis> installed <xref linkend="lcms"/> fix
144 a bug that will otherwise break the build:
145 </para>
146
147<screen><userinput>sed -i '/&lt;io\/sys.h&gt;/d
148 /preferences.h/a#include "io/sys.h"' src/color-profile.cpp</userinput></screen>
149
150 <para>
151 Fix a bug that would otherwise prevent compiling with
152 <application>Gcc 4.7</application>:
153 </para>
154
155<screen><userinput>patch -p1 &lt; ../inkscape-&inkscape-version;_gcc-4.7-1.patch</userinput></screen>
156
157 <para>
158 Fix many bugs that would otherwise prevent compiling with
159 <application>Glib 2.32</application> or greater:
160 </para>
161
162<screen><userinput>for thing in array convert dir error fileutils hash list macros main mem \
163 messages quark slist strfuncs string types urifuncs utils
164do sed -i "/^#include /s#/g${thing}##" $(grep -rl "include .glib/g${thing}" .)
165done</userinput></screen>
166
167 <para>
168 Install <application>Inkscape</application> by running the following
169 commands:
170 </para>
171
172<screen><userinput>./configure --prefix=/usr --disable-lcms &amp;&amp;
173make</userinput></screen>
174
175 <para>
176 To test the results, issue: <command>make check</command>.
177 </para>
178
179 <para>
180 Now, as the <systemitem class="username">root</systemitem> user:
181 </para>
182
183<screen role="root"><userinput>make install</userinput></screen>
184 </sect2>
185
186 <sect2 role="commands">
187 <title>Command Explanations</title>
188
189 <para>
190 <option>--disable-lcms</option>: This is required if you've not installed
191 <xref linkend="lcms"/>. If you have installed
192 <application>Lcms</application> remove this option.
193 </para>
194 </sect2>
195
196 <sect2 role="content">
197 <title>Contents</title>
198
199 <segmentedlist>
200 <segtitle>Installed Programs</segtitle>
201 <segtitle>Installed Directory</segtitle>
202
203 <seglistitem>
204 <seg>inkscape and inkview.</seg>
205 <seg>/usr/share/inkscape.</seg>
206 </seglistitem>
207 </segmentedlist>
208
209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
213
214 <varlistentry id="inkscape-prog">
215 <term><command>inkscape</command></term>
216 <listitem>
217 <para>
218 an SVG (Scalable Vector Graphics) editing program.
219 </para>
220 <indexterm zone="inkscape inkscape-prog">
221 <primary sortas="b-inkscape">inkscape</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="inkview">
227 <term><command>inkview</command></term>
228 <listitem>
229 <para>
230 is a simple program for displaying SVG files.
231 </para>
232 <indexterm zone="inkscape inkview">
233 <primary sortas="b-inkview">inkview</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237 </variablelist>
238 </sect2>
239</sect1>
Note: See TracBrowser for help on using the repository browser.