2001-01-29 20:50:19 +08:00
|
|
|
Requirements
|
|
|
|
------------
|
1998-02-26 19:55:07 +08:00
|
|
|
If you want to hack on the GIMP project, it will make you life easier
|
|
|
|
to have the following packages installed:
|
|
|
|
|
1999-01-21 12:49:18 +08:00
|
|
|
- GNU autoconf 2.13
|
|
|
|
- GNU automake 1.4
|
|
|
|
- GNU libtool 1.2d
|
|
|
|
- GNU gettext 10.35
|
|
|
|
Available in ftp://alpha.gnu.org/gnu
|
|
|
|
|
1998-02-26 19:55:07 +08:00
|
|
|
|
|
|
|
These should be available by ftp from prep.ai.mit.edu or any of the
|
|
|
|
fine GNU mirrors. Beta software can be found at alpha.gnu.org.
|
|
|
|
|
2001-01-29 20:50:19 +08:00
|
|
|
|
|
|
|
Compilation
|
|
|
|
-----------
|
1998-02-27 06:19:38 +08:00
|
|
|
If you are accessing gimp via CVS, then you will need to take several
|
1998-03-14 13:15:01 +08:00
|
|
|
steps to get it to compile. You can do all these steps at once
|
|
|
|
by running:
|
1998-02-26 19:55:07 +08:00
|
|
|
|
1998-03-14 13:15:01 +08:00
|
|
|
cvsroot/gimp# ./autogen.sh
|
1998-02-26 19:55:07 +08:00
|
|
|
|
1998-03-14 13:15:01 +08:00
|
|
|
Basically this does the following for you:
|
1998-02-26 19:55:07 +08:00
|
|
|
|
1998-03-14 13:15:01 +08:00
|
|
|
cvsroot/gimp# aclocal; automake; autoconf
|
|
|
|
|
|
|
|
The above commands create the "configure" script. Now you
|
1998-03-17 07:59:27 +08:00
|
|
|
can run the configure script in cvsroot/gimp to create all
|
1998-03-14 13:15:01 +08:00
|
|
|
the Makefiles.
|
|
|
|
|
|
|
|
Before running autogen.sh or configure, make sure you have libtool
|
|
|
|
in your path. Also make sure gtk.m4 is in the same --prefix relative
|
|
|
|
to your automake installation.
|
|
|
|
|
|
|
|
Note that autogen.sh runs configure for you. If you wish to pass
|
|
|
|
options like --prefix=/usr to configure you can give those options
|
|
|
|
to autogen.sh and they will be passed on to configure.
|
|
|
|
|
2001-01-29 20:50:19 +08:00
|
|
|
|
|
|
|
CVS
|
|
|
|
---
|
1998-03-14 13:15:01 +08:00
|
|
|
If at all possible, please use CVS to get the latest development version of
|
|
|
|
gimp, as well as the CVS version of gtk+. You can do the following to get
|
|
|
|
gimp and gtk+ from cvs:
|
|
|
|
|
1998-10-15 06:20:12 +08:00
|
|
|
$ export CVSROOT=':pserver:anonymous@anoncvs.gimp.org:/cvs/gnome'
|
1998-03-14 13:15:01 +08:00
|
|
|
$ cvs login
|
|
|
|
(there is no password, just hit return)
|
1998-10-15 06:20:12 +08:00
|
|
|
$ cvs -z3 checkout gtk+ gimp
|
1998-03-14 13:15:01 +08:00
|
|
|
|
2001-01-29 20:50:19 +08:00
|
|
|
|
|
|
|
Patches
|
|
|
|
-------
|
1998-03-14 13:15:01 +08:00
|
|
|
Please submit patches to the gimp-developer@scam.xcf.berkeley.edu mailing
|
|
|
|
list. All kinds of contributions are accepted. Patches that you wish to go
|
|
|
|
into the distribution should also be uploaded to ftp://ftp.gimp.org/incoming.
|
|
|
|
Follow the rules there for naming your patches.
|
1998-02-26 19:55:07 +08:00
|
|
|
|
2001-01-29 20:50:19 +08:00
|
|
|
|
|
|
|
Autogenerated Files
|
|
|
|
-------------------
|
2001-01-09 10:15:42 +08:00
|
|
|
Please notice that some files in the source are generated from other sources.
|
2001-01-29 20:50:19 +08:00
|
|
|
All those files have a short notice about being autogenerated somewhere at
|
|
|
|
the top. Among them are the files ending in _pdb.[ch] in the libgimp
|
|
|
|
directory and the files ending in _cmds.c in the app/pdb subdirectory. Those
|
|
|
|
are generated from the respective .pdb files in tools/pdbgen/pdb. The list of
|
|
|
|
contributors is used in several files which are for that reason generated
|
|
|
|
from the file contributors in tools/authorsgen.
|
|
|
|
|
|
|
|
|
|
|
|
Hackordnung
|
|
|
|
-----------
|
|
|
|
We encourage you to follow the GIMP coding style throughout the GIMP project.
|
|
|
|
For the core components (application and libs) this coding style is enforced.
|
|
|
|
The GIMP coding style is defined as follows:
|
|
|
|
|
|
|
|
Function names are lowercase, words separated by underscores.
|
|
|
|
Macros and enums are all uppercase, words seperated by underscores.
|
|
|
|
Types are all words capitalized, no separators between words.
|
|
|
|
|
|
|
|
All functions in header files need to be prototyped.
|
|
|
|
|
|
|
|
Indentation rules are GNU coding style, in particular:
|
|
|
|
- 2 characters indentation level
|
|
|
|
- Do not use tabs (of course your editor can use tabs, but it
|
|
|
|
should write them to file as 8 spaces each).
|
|
|
|
- Opening brackets are on a new line and indented one level.
|
|
|
|
- Function header have the return type on one line, the name starting
|
|
|
|
in the first column of the following line. All parameters are
|
|
|
|
prototyped and there's a new line for each.
|
|
|
|
|
|
|
|
Try to make use of GTK's object system as much as possible. Do not create
|
|
|
|
wrappers around functions of parent classes. If you end up duplicating code,
|
|
|
|
try to create a common parent class and implement the common methods there.
|
|
|
|
|
|
|
|
One goal of the 1.3 development branch is to make the GIMP code more readable
|
|
|
|
and understandable. Please help us to achieve this goal by cleaning up the
|
|
|
|
present code and make sure that all new code follows the coding guidelines.
|