[arch-commits] Commit in hugin/trunk (PKGBUILD gcc47.patch)

Ionut Biru ibiru at archlinux.org
Sun Jul 8 15:48:06 UTC 2012


    Date: Sunday, July 8, 2012 @ 11:48:05
  Author: ibiru
Revision: 163190

boost 1.50 rebuild

Added:
  hugin/trunk/gcc47.patch
Modified:
  hugin/trunk/PKGBUILD

-------------+
 PKGBUILD    |   10 +++++++---
 gcc47.patch |   11 +++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-07-08 15:45:41 UTC (rev 163189)
+++ PKGBUILD	2012-07-08 15:48:05 UTC (rev 163190)
@@ -5,7 +5,7 @@
 
 pkgname=hugin
 pkgver=2011.4.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A frontend to the panorama-tools"
 arch=('i686' 'x86_64')
 url="http://hugin.sourceforge.net/"
@@ -14,13 +14,17 @@
          'lapack' 'desktop-file-utils' 'make' 'perl-image-exiftool')
 makedepends=('zip' 'cmake' 'boost' 'tclap')
 install=hugin.install
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-sha1sums=('21ec7331d5e196aca2a8771d3c9101dd181ad93b')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+        gcc47.patch)
+sha1sums=('21ec7331d5e196aca2a8771d3c9101dd181ad93b'
+          'aa0fc9425bd7a4b5e270412f4ca72258fac77298')
 
 build() {
   cd "${srcdir}"
+  patch -Np0 -i gcc47.patch
   mkdir build
   cd build
+  export CXXFLAGS+=" -fpermissive" 
   cmake "${srcdir}/${pkgname}-${pkgver}" \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \

Added: gcc47.patch
===================================================================
--- gcc47.patch	                        (rev 0)
+++ gcc47.patch	2012-07-08 15:48:05 UTC (rev 163190)
@@ -0,0 +1,11 @@
+diff -Nur hugin-2011.4.0.orig/src/celeste/Utilities.cpp hugin-2011.4.0/src/celeste/Utilities.cpp
+--- hugin-2011.4.0.orig/src/celeste/Utilities.cpp	2012-07-08 15:18:16.864454043 +0000
++++ hugin-2011.4.0/src/celeste/Utilities.cpp	2012-07-08 15:18:20.341089422 +0000
+@@ -27,6 +27,7 @@
+ 
+ #include <math.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ #include "Utilities.h"
+ 
+ using namespace std; 




More information about the arch-commits mailing list