GIMP for Mac

Building help files

Installation and Mac OS specific issues.

Building help files

Postby Auria » Sat Aug 16, 2008 5:49 pm

(this is a work in progress)

This can be done after building from source

Create the /tmk/skl symlink as usualy, removing it first if Gimp.app already created it.

Code: Select all
mkdir -p /tmp/skl
cd /tmp/skl
ln -s ~/src/macports/Gimp.app Gimp.app
cd -


Then install docbook from macports

Code: Select all
sudo /tmp/skl/Gimp.app/Contents/Resources/bin/port install docbook-xsl
sudo /tmp/skl/Gimp.app/Contents/Resources/bin/port install docbook-xml-4.3


Set-up environment variables so GIMP is found
Code: Select all
export PATH=$PATH:/tmp/skl/Gimp.app/Contents/Resources/bin
export PKG_CONFIG_PATH=/tmp/skl/Gimp.app/Contents/Resources/lib/pkgconfig
export GIMPTOOL=/tmp/skl/Gimp.app/Contents/Resources/bin/gimptool-2.0


Download help-files source archive from ftp://ftp.gimp.org/pub/gimp/help/. Unarchive it then go inside it.

Code: Select all
cd path/to/gimp-help-2.4.x


In the help files, open and edit the file stylesheets/profile.xsl. Replace :
Code: Select all
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl" />

with :
Code: Select all
<xsl:import href="/tmp/skl/Gimp.app/Contents/Resources/share/xsl/docbook-xsl/profiling/profile.xsl" />


Then it's time to build.
Code: Select all
export XML_CATALOG_FILES=$HOME/src/macports/Gimp.app/Contents/Resources/etc/xml/catalog
./configure --with-xsl=$HOME/src/macports/Gimp.app/Contents/Resources/share/xsl/docbook-xsl/ --enable-build
make


... may take up to a few hours ...

Then we'll change /tmp/skl to yet another location before installing so we can grab all the files it installs in a seperate location.
Code: Select all
rm /tmp/skl/Gimp.app
mkdir -p ~/Desktop/gimp-help-files/Gimp.app/Contents/Resources/
mkdir -p /tmp/skl
cd /tmp/skl
ln -s ~/Desktop/gimp-help-files/Gimp.app Gimp.app
cd -
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/de/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/en/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/es/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/fr/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/it/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/ko/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/nl/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/no/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/pl/
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/ru
mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/sv/
make install


done! You can then package the files from "~/Desktop/gimp-help-files/Gimp.app/Contents/Resources/" into the help-files installer available in our SVN repository (more info in the readme over there)
Members don't see the above ad. Register now - it's free!
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Return to GIMP for Mac

cron

Who is online

Users browsing this forum: No registered users and 2 guests