File: machints2.html

package info (click to toggle)
scribus-doc 1.2.1-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 2,920 kB
  • ctags: 374
  • sloc: makefile: 387; xml: 110
file content (103 lines) | stat: -rw-r--r-- 4,690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<qt>
<title>Mac OSX Hints and Notes - CVS</title>
<h2>Mac OSX Hints and Notes - CVS</h2>

<p><strong>Editor's Note:</strong> These notes are based on advice and notes kindly provided by Martin Costabel, who has done a terrific job of maintaining the Scribus fink package, as well as, providing assistance to fink users on the mailing list.</p>

<h3>Building Scribus CVS</h3>

<p>Install the required libraries. The easiest way to get them in Fink is probably to run <code>fink install scribus</code> and then stop it when all the prerequisites are installed and fink starts to build scribus. The list of required packages is given in the Fink scribus.info file in the Depends and BuildDepends lines. The depends are automatically installed by the Fink installer.</p>
<p><strong>Depends</strong></p>
<ul>
	<li>x11</li>
	<li>ghostscript</li>
	<li>qt3-shlibs</li>
	<li>libjpeg-shlibs</li>
	<li>libjpeg-bin</li>
	<li>lcms-shlibs (>=1.09)</li>
	<li>libart2-shlibs</li>
	<li>libpng3-shlibs</li>
	<li>libtiff-shlibs</li>
	<li>freetype2-shlibs or freetype2-hinting-shlibs</li>
</ul>
<p><strong>Build Depends</strong></p>
<ul>
	<li>x11-dev</li>
	<li>lcms</li>
	<li>libjpeg</li>
	<li>qt3</li>
	<li>libart2</li>
	<li>cups-dev</li>
	<li>libpng3</li>
	<li>libtiff</li>
	<li>freetype2-dev or freetype2-hinting-dev</li> 
</ul>

<p><strong>Setup the environment</strong>:</p>

<p>Using tcsh as the shell:</p>
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>setenv CFLAGS -I/sw/include
setenv LDFLAGS -L/sw/lib
setenv CXXFLAGS $CFLAGS
setenv CPPFLAGS $CXXFLAGS
setenv ACLOCAL_FLAGS "-I /sw/share/aclocal"
setenv PKG_CONFIG_PATH "/sw/lib/pkgconfig"
</pre>
</small></td></tr></table></blockquote>

<p>Using bash as the shell:</p>
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>export CFLAGS=-I/sw/include
export LDFLAGS=-L/sw/lib
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CXXFLAGS
export ACLOCAL_FLAGS="-I /sw/share/aclocal"
export PKG_CONFIG_PATH="/sw/lib/pkgconfig"
</pre>
</small></td></tr></table></blockquote>

<p>One can then run:</p>
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>make -f Makefile.dist</pre>
</small></td></tr></table></blockquote>
<p>It is not necessary to install autoconf and automake from Fink, they exist in Mac OSX 10.3 already. Then <code>configure</code> as follows:</p>

<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>./configure --with-qt-dir=/sw --with-qt-includes=/sw/include/qt --with-qt-libraries=/sw/lib<br /> --with-extra-includes=/sw/include<br /> --with-pythondir=/System/Library/Frameworks/Python.framework/Versions/2.3/</pre>
</small></td></tr></table></blockquote>

<p>Before one can run <code>make</code>, one needs the patches that are done in the PatchScript of the Fink scribus.info file.</p>

<p>The first group of patches helps find the right versions of the freetype headers and libraries (those from Fink, Apple's X11 has a freetype version that is too old) and the right python version (the one from MacOSX):</p>

<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>
perl -pi -e 's,usr/X11/bin,usr/X11R6/bin,g' configure
perl -pi -e 's,FREETYPE_CONFIG=\"\",FREETYPE_CONFIG=\"/sw/lib/freetype2/bin/freetype-config\",g' configure
perl -pi -e 's,LIBS=\"\-lfreetype,LIBS=\"\$LIBFREETYPE_LIBS,g' configure
perl -pi -e "s,PYTHONLIB=.*,PYTHONLIB='-framework Python'\npython_libdir=yes\nLIBPYTHON=' ',g" configure
perl -pi -e "s,LIBPYTHON =.*,LIBPYTHON=,g" scribus/plugins/scriptplugin/Makefile.in
</pre>
</small></td></tr></table></blockquote>

<p>The second group is necessary for building the plugins. This is a hack that could probably be done differently.</p>

<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>
perl -pi -e 's|^AM_LDFLAGS = .*\-s|AM_LDFLAGS = \$(all_libraries) \$(LIB_QT)|g' `find . -name Makefile.in`
perl -pi -e 's|(lib.*)\.la|$1.so|g' `find . -name Makefile.in`
perl -pi -e 's|-version-info 0:0:0|-bundle -undefined dynamic_lookup -bind_at_load|g' `find . -name Makefile.in`
perl -pi -e 's|libpdf_la_LIBADD =|libpdf_la_LIBADD =\$(LIBTIFF)|g' scribus/libpdf/Makefile.in
</pre>
</small></td></tr></table></blockquote>

<p>One can then run:</p>
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0"><small>
<pre>
make
sudo make install
</pre>
</small></td></tr></table></blockquote>
<p>It installs scribus into <code>/usr/local</code>, so it does not interfere with a different version installed by Fink, which goes into <code>/sw</code>.</p>
</qt>