Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 21st, 2012  |  syntax: None  |  size: 1.91 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. # Resources
  3. # http://www.gimpusers.com/tutorials/compiling-gimp-for-ubuntu
  4. # http://ubuntuforums.org/showthread.php?p=11818979
  5. #
  6.  
  7. sudo apt-get build-dep gimp
  8. sudo apt-get install libjpeg62-dev libopenexr-dev librsvg2-dev libtiff4-dev
  9.  
  10. mkdir gimp_build && cd gimp_build
  11.  
  12. export PATH=/opt/gimp-2.8/bin:$PATH
  13. export PKG_CONFIG_PATH=/opt/gimp-2.8/lib/pkgconfig
  14. export LD_LIBRARY_PATH=/opt/gimp-2.8/lib
  15. CPU_CORES=$(grep -c processor /proc/cpuinfo)
  16.  
  17. git clone git://git.gnome.org/babl
  18. cd babl
  19. ./autogen.sh --prefix=/opt/gimp-2.8
  20. make -j${CPU_CORES}
  21. sudo make install
  22.  
  23. cd ..
  24. git clone git://git.gnome.org/gegl
  25. cd gegl
  26. ./autogen.sh --prefix=/opt/gimp-2.8
  27. ./configure  --prefix=/opt/gimp-2.8
  28. make -j${CPU_CORES}
  29. sudo make install
  30.  
  31. cd ..
  32. git clone git://git.gnome.org/gimp
  33. cd gimp
  34. ./autogen.sh --prefix=/opt/gimp-2.8
  35. ./configure --prefix=/opt/gimp-2.8
  36. make -j${CPU_CORES}
  37. sudo make install
  38.  
  39. cat << EOF > ~/.local/share/applications/gimp2.8RC1.desktop
  40. [Desktop Entry]
  41. Version=1.0
  42. Type=Application
  43. Name=Gimp 2.8
  44. Comment=Create images and edit photographs
  45. Exec=/opt/gimp-2.8/bin/gimp-2.8 %U
  46. TryExec=/opt/gimp-2.8/bin/gimp-2.8
  47. Icon=gimp
  48. Terminal=false
  49. Categories=Graphics;2DGraphics;RasterGraphics;GTK;
  50. X-GNOME-Bugzilla-Bugzilla=GNOME
  51. X-GNOME-Bugzilla-Product=GIMP
  52. X-GNOME-Bugzilla-Component=General
  53. X-GNOME-Bugzilla-Version=2.8.0-RC1
  54. X-GNOME-Bugzilla-OtherBinaries=gimp-2.8
  55. MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/tiff;image/jpeg;image/x-psp;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;application/pdf;image/x-wmf;image/jp2;image/jpeg2000;image/jpx;image/x-xcursor;
  56. EOF
  57.  
  58. chmod +x ~/.local/share/applications/gimp2.8RC1.desktop