File: README

package info (click to toggle)
mscgen 0.20-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,124 kB
  • ctags: 1,013
  • sloc: ansic: 3,924; sh: 1,254; yacc: 320; lex: 234; makefile: 61
file content (165 lines) | stat: -rw-r--r-- 4,502 bytes parent folder | download | duplicates (6)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
Building Mscgen
===============

Building is done with the GNU autotools and should be largely automatic.

Preparation
-----------

If you obtained the sources directly from the SVN repository, you will first
need to run autogen.sh to generate the configure script.

Note: This is not required for the downloadable source tarballs as they are
       already contain a configure script.


Win32 - Native
--------------

A native build has no runtime dependency on Cygwin and can be ran on any
Windows machine.  It does however use Cygwin to configure and build.

You can get Cygwin from http://www.cygwin.com.  The following packages
need to be installed via the Cygwin setup.exe:

 - gcc
 - gcc-mingw
 - make
 - flex
 - bison
 - binutils

A copy of the Win32 libgd library is also needed.  If you checked out the
mscgen sources from Google Code, you will already have this in the gdwin32
directory.  Otherwise you can obtain a copy from the GD site, or from Google
Code:

  http://www.libgd.org/releases/oldreleases/gd-2.0.34-win32.zip

  svn checkout http://mscgen.googlecode.com/svn/trunk/gdwin32 /tmp/gdwin32

You will have to unpack the zip file, and ensure the file bgd.dll is on your
path.

From the top level directory, run the configure script with options to
build natively and use the Win32 binary gdwin32 you downloaded (an unpacked):

  $ ./configure CFLAGS=-mno-cygwin \
                GDLIB_CFLAGS="-I/tmp/gdwin32/include" \
                GDLIB_LIBS="-L/tmp/gdwin32/lib -lbgd"
  $ make
  $ make check
  $ make install

This will install a native version of mscgen and the accompanying bgd.dll file
into the cygwin directories.  If you wish to install elsewhere, either use the
--prefix option to 'configure', or manually copy mscgen.exe and the DLL.

The DLL dependencies of the mscgen.exe can be checked using cygcheck:

$ cygcheck.exe mscgen.exe
Found: C:\cygwin\bin\mscgen.exe
C:\cygwin\bin\mscgen.exe
  C:\cygwin\bin\bgd.dll
    C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\ntdll.dll
    C:\WINDOWS\system32\MSVCRT.dll


Win32 - Cygwin
--------------

You will need Cygwin (from http://www.cygwin.com) and the following packages
installed via the Cygwin setup program:

 - gcc
 - make
 - flex
 - bison
 - binutils
 - libgd2
 - libgd-devel
 - pkg-config

From the top level directory, run the configure script and then make:

  $ ./configure
  $ make
  $ make check
  $ make install


Other Unix-like Platforms
-------------------------

You will need:

 - flex, bison, gcc and pkg-config installed
 - GD >= 2.0.22 libs installed (libgd-devel)
 - GD's dependencies, which are dependent on how it was configured, but
    will typically be a subset of the following:
      libpng libz libfreetype libm
 - GNU make

GD can be obtained from http://www.libgd.org/ and will need to be downloaded
and installed, or a package, such as an RPM maybe used instead.
For RedHat and SuSE, the package gd-devel should be installed, which will
normally cause any dependent libraries to also be installed.

From the top level directory, run the configure script and then make:

  $ ./configure
  $ make
  $ make check
  $ sudo make install


Syntax Highlighting
===================

A lang file for GtkSourceView based editors is included with mscgen.
The mscgen.lang file, normally installed with mscgen to /usr/share/doc/mscgen
but needs copying to one of two locations for GtkSourceView:

  /usr/share/gtksourceview-2.0/language-specs 
    - System wide installation

  ~/.local/share/gtksourceview-2.0/language-specs  
    - User specific installation

This then allows mscgen input files to be displayed with syntax highlighting
in applications such a gedit and Anjuta.  The language spec associates itself
with .msc files.


Bugs
====

An issue tracker is available at the following location:

  http://code.google.com/p/mscgen/issues/list

You may also email me directly at Michael.McTernan.2001@cs.bris.ac.uk.


Updates
=======

A release announcement mailing list for new releases is available at the
following location:

  http://groups.google.com/group/mscgen-announce

LICENCE
=======

Mscgen, Copyright (C) 2010 Michael C McTernan,
                      Michael.McTernan.2001@cs.bris.ac.uk
Mscgen comes with ABSOLUTELY NO WARRANTY.  Mscgen is free software, and you
are welcome to redistribute it under certain conditions; see the COPYING
file for details.

PNG rendering support is provided by libgd, www.libgd.org; see the COPYING.gd
file for full credits.

END OF FILE