Want more features on Pastebin? Sign Up, it's FREE!
Guest

gigi-svn_PKGBUILD_gcc-4.6

By: a guest on Jul 20th, 2011  |  syntax: Bash  |  size: 1.37 KB  |  views: 253  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: SVen-Hendrik Haase <sh@lutzhaase.com>
  2. # Contributor: fana-m <geminin@gmx.net>
  3. # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
  4. # Contributor: Manuel Gaul <inkaine@hotmail.com>
  5. # Contributor: gulaghad <can6dev@gmail.com>
  6. pkgname=gigi-svn
  7. pkgver=1043
  8. pkgrel=1
  9. pkgdesc="A small, efficient, and feature-rich C++ GUI for OpenGL"
  10. url="http://sourceforge.net/projects/gigi/"
  11. arch=('i686' 'x86_64')
  12. license=('GPL')
  13. depends=('boost>=1.44' 'mesa' 'libpng>=1.4' 'libjpeg' 'libtiff' 'freetype2' 'ogre' 'sdl>1.2.7' 'ois>=1.0.0')
  14. makedepends=('subversion' 'cmake')
  15. provides=('gigi')
  16. conflicts=('gigi')
  17.  
  18. _svntrunk=https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG/
  19. _svnmod=gigi
  20.  
  21. build() {
  22.   cd "$srcdir"
  23.  
  24.   if [ -d "$_svnmod"/.svn ]; then
  25.    (cd "$_svnmod" && svn up -r "$pkgver")
  26.   else
  27.     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  28.   fi
  29.  
  30.   rm -rf "$_svnmod-build"
  31.   svn export "$_svnmod" "$_svnmod-build"
  32.   cd "$_svnmod-build"
  33.  
  34.   msg "SVN checkout done or server timeout"
  35.   msg "Starting make..."
  36.  
  37.   #add gcc 4.6 as supported
  38.   sed -i 's/__GNUC_MINOR__ <= 5/__GNUC_MINOR__ <= 6/' "GG/adobe/cmath.hpp"
  39.   #Build and install the package
  40.   cmake -D CMAKE_INSTALL_PREFIX=${pkgdir}/usr -D BUILD_TUTORIALS=OFF -D CMAKE_C_FLAGS_RELEASE="-DNDEBUG" -D CMAKE_CXX_FLAGS_RELEASE="-fpermissive" .
  41.   make
  42.   make install
  43. }
  44. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data