Compiling Under MacOS X

From Bluefish Wiki
Revision as of 10:45, 27 October 2008 by Christian (talk | contribs) (CompilingUnderMacOSX moved to Compiling Under MacOS X)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Compiling the latest snapshots under Mac OS X[edit]

The following steps apply to:[edit]

  • MacOS 10.2.8 and higher
  • Fink 0.15.0 and higher
  • Fink rsync (recommanded) or Fink cvs
  • either gcc 3.1 or gcc 3.3

Steps to perform:[edit]

1. Download the tarball from [1], section Development Snapshots.

2. Don't let ~StuffItExpander expand it.

3. Copy it to /sw/src::

Open the Terminal
Type: sudo cp (don't forget a space after cp)
Drag the new downloaded file to the terminal
Type: /sw/src (don't forget a space before /sw)
Press enter
Enter your password at the prompt

4. Check you gcc version with::

gcc --v

5. Copy Fink's bluefish.info and Fink's bluefish.patch files to your local tree with::

First create a local tree if it does not exist:
mkdir -p /sw/fink/10.2/local/main/finkinfo/
or (you're on Panther):
mkdir -p /sw/fink/10.3/local/main/finkinfo/
If you use gcc 3.1:
sudo cp /sw/fink/10.2/unstable/main/finkinfo/editors/bluefish.* /sw/fink/10.2/local/main/finkinfo/
If you use gcc 3.3 (be aware not to split the line):
sudo cp /sw/fink/10.2-gcc3.3/unstable/main/finkinfo/editors/bluefish.* /sw/fink/10.2/local/main/finkinfo/
If you have only a 10.3 tree (you're on Panther):
sudo cp /sw/fink/10.3/unstable/main/finkinfo/editors/bluefish.* /sw/fink/10.3/local/main/finkinfo/


6. Compute the MD5 checksum for the snapshot with::

md5 /sw/src/nameofthebluefishtarball

7. Edit the info file with::

sudo pico /sw/fink/10.2/local/main/finkinfo/bluefish.info
or (you're on Panther):
sudo pico /sw/fink/10.3/local/main/finkinfo/bluefish.info
1 - Change the Version: line to match the date in the tarball's name, i.e. if the name of the tarball is bluefish-2003-10-16.tar.bz2, change it to:
Version: 2003-10-16
2 - Change the Source-MD5: line to have the new computed MD5 checksum.
3 - Check if you have a ~SourceDirectory line:
If you have one, change it to: ~SourceDirectory: bluefish-gtk2
If you don't have one, add a new line just after the Source-MD5 line, and type: ~SourceDirectory: bluefish-gtk2

8. Edit the patch info file with::

sudo pico /sw/fink/10.2/local/main/finkinfo/bluefish.patch
or
sudo pico /sw/fink/10.3/local/main/finkinfo/bluefish.patch
Change the first two lines to have the date of the tarball's name in them, i.e. if the name of the tarball is bluefish-2003-10-16.tar.bz2, change them to:
--- bluefish-2003-10-16/configure
+++ bluefish-2003-10-16-patched/configure

9. Check you Fink configuration with::

cat /sw/etc/fink.conf
The Trees: line should match the following:
Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
If this is not the case, open the file with:
sudo pico /sw/etc/fink.conf
and change the line accordingly.

9bis. (Only for bluefish version < 0.12) Remove any gnome-vfs2-ssl librairies as long as their versions are lower than 2.2::

Check the version with:
fink list -t -i gnome
Remove the offending librairies (if any) with:
fink remove gnome-vfs2-ssl gnome-vfs2-ssl-dev gnome-vfs2-ssl-shlibs

10. Run::

For version < 0.13:
fink install bluefish if this is the first time you install bluefish.
fink update bluefish if you already have bluefish installed.
For version >= 0.13:
fink install bluefish-gnome2 if this is the first time you install bluefish and you have GNOME2 installed.
fink update bluefish-gnome2 if you already have bluefish and GNOME2 installed.
fink install bluefish if this is the first time you install bluefish and you did not install GNOME2.
fink update bluefish if you already have bluefish installed and you did not install GNOME2.