summaryrefslogtreecommitdiff
path: root/gis/qgis
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-15 15:30:46 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-15 15:30:46 -0300
commit5cf5867b3fdc3287920a88ac8551dcceeba8cef9 (patch)
tree4d3150faf6c50214e16d682c9dfb7dad0a8ffe9a /gis/qgis
parentf3da6723ad4a7ec5149daf3d44b6ccdd3ee9c6ef (diff)
downloadabslibre-5cf5867b3fdc3287920a88ac8551dcceeba8cef9.tar.gz
abslibre-5cf5867b3fdc3287920a88ac8551dcceeba8cef9.tar.bz2
abslibre-5cf5867b3fdc3287920a88ac8551dcceeba8cef9.zip
Starting [gis] repo
Diffstat (limited to 'gis/qgis')
-rw-r--r--gis/qgis/PKGBUILD70
-rw-r--r--gis/qgis/qgis.desktop10
-rw-r--r--gis/qgis/qgis_1.7.4_gcc4.7.patch20
3 files changed, 100 insertions, 0 deletions
diff --git a/gis/qgis/PKGBUILD b/gis/qgis/PKGBUILD
new file mode 100644
index 000000000..7c348fd1e
--- /dev/null
+++ b/gis/qgis/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Lantald < lantald at gmx.com
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
+# Contributor: Eric Forgeot < http://esclinux.tk >
+
+pkgname=qgis
+pkgver=1.7.4
+pkgrel=4
+pkgdesc='Quantum GIS is a Geographic Information System (GIS) that supports vector, raster & database formats'
+url='http://qgis.org/'
+license=('GPL')
+arch=('i686' 'x86_64')
+# update to http://www.qgis.org/wiki/Building_QGIS_from_Source#Overview
+depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt' 'python2' 'python2-qt' 'giflib' 'xerces-c' 'cfitsio' 'qwt5' 'gdal' 'flex' 'bison')
+makedepends=('cmake' 'grass' 'gsl' 'postgis' 'netcdf' 'fcgi' 'python2-sip' 'txt2tags')
+optdepends=('postgis: postgis support and SPIT plugin'
+ 'fcgi: qgis mapserver'
+ 'python2-sip: python-support'
+ 'grass: grass plugin'
+ 'gsl: georeferencer ')
+options=('!makeflags')
+source=("http://qgis.org/downloads/qgis-${pkgver}.tar.bz2"
+ 'qgis.desktop'
+ 'qgis_1.7.4_gcc4.7.patch')
+
+md5sums=('ad6e2bd8c5eb0c486939c420af5d8c44'
+ '8ab66039f2aba519b92f52272ec3c13e'
+ '0a978eac520b3df8736603074b1072b0')
+
+build() {
+ # Fix insecure RPATH is weird, but just works ;)
+ # echo "os.system(\"sed -i '/^LFLAGS/s|-Wl,-rpath,.\+ ||g' gui/Makefile core/Makefile\")" >> python/configure.py.in
+ #cd qgis-${pkgver}
+
+ #apply patch to be able to build qgis with GCC 4.7
+ patch -p0 < ${srcdir}/qgis_1.7.4_gcc4.7.patch
+
+ rm -rf build
+ mkdir build
+ cd build
+
+ cmake ../qgis-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DGRASS_PREFIX=/opt/grass \
+ -DQGIS_MANUAL_SUBDIR=share/man \
+ -DQWT_INCLUDE_DIR=/usr/include/qwt5 \
+ -DQWT_LIBRARY=/usr/lib/libqwt5.so \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+ -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \
+ -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/
+
+ make
+}
+
+package() {
+ cd build
+
+ make DESTDIR=${pkgdir} install
+
+ # create a more user-friendly application name link
+ ln -s /usr/bin/qgis $pkgdir/usr/bin/quantum-gis
+
+ # install some freedesktop.org compatibility
+ install -D -m644 ${srcdir}/qgis.desktop \
+ ${pkgdir}/usr/share/applications/qgis.desktop
+}
diff --git a/gis/qgis/qgis.desktop b/gis/qgis/qgis.desktop
new file mode 100644
index 000000000..c3db5ad08
--- /dev/null
+++ b/gis/qgis/qgis.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Quantum GIS
+GenericName="GIS"
+Comment="Geographic Information System (GIS) that supports vector, raster & database formats"
+Exec=/usr/bin/qgis
+Icon=/usr/share/qgis/images/icons/qgis-icon.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Science
diff --git a/gis/qgis/qgis_1.7.4_gcc4.7.patch b/gis/qgis/qgis_1.7.4_gcc4.7.patch
new file mode 100644
index 000000000..858a42c94
--- /dev/null
+++ b/gis/qgis/qgis_1.7.4_gcc4.7.patch
@@ -0,0 +1,20 @@
++++ qgis-1.7.4/src/core/spatialindex/storagemanager/DiskStorageManager.cc 2012-04-21 13:58:04.107239275 +0300
+@@ -26,6 +26,7 @@
+ #include <sys/stat.h>
+ #include <stdio.h>
+ #include <cstring>
++#include <unistd.h>
+
+ #ifdef WIN32
+ #include <io.h>
+
++++ qgis-1.7.4/src/core/spatialindex/tools/TemporaryFile.cc 2012-04-21 13:16:42.213690282 +0300
+@@ -20,7 +20,7 @@
+ // mhadji@gmail.com
+
+ #include <stdio.h>
+-
++#include <unistd.h>
+ #include <Tools.h>
+
+ #ifdef WIN32