summaryrefslogtreecommitdiffstats
path: root/extra/qgis/Pkgfile
diff options
context:
space:
mode:
authorlesibel <lesibel@free.fr>2009-11-10 14:49:43 +0100
committerlesibel <lesibel@free.fr>2009-11-10 14:49:43 +0100
commitee4de92046628039dd091597bd75c174d510674c (patch)
treea1b7ce4bad032af3ffa5a400ff04fe5ad556997a /extra/qgis/Pkgfile
parent2c6ca943baa9f5e59d0d0b4d0e66ffbc9ca4e6e1 (diff)
downloadnutyx-extra-ee4de92046628039dd091597bd75c174d510674c.tar.gz
nutyx-extra-ee4de92046628039dd091597bd75c174d510674c.tar.bz2
nutyx-extra-ee4de92046628039dd091597bd75c174d510674c.tar.xz
nutyx-extra-ee4de92046628039dd091597bd75c174d510674c.zip
Ajout de qgis#1.3.0-1
Diffstat (limited to 'extra/qgis/Pkgfile')
-rw-r--r--extra/qgis/Pkgfile38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/qgis/Pkgfile b/extra/qgis/Pkgfile
new file mode 100644
index 000000000..fe42f5a2e
--- /dev/null
+++ b/extra/qgis/Pkgfile
@@ -0,0 +1,38 @@
+# Description: Geographic Information System (GIS) that supports vector, raster & database formats.
+# URL: http://qgis.org/
+# Maintainer: NuTyX core team
+# Packager: lesibel at free dot fr
+# Depends on: jasper, curl, qt, gsl, grass, python, pyqt, giflib, xerces-c
+
+name=qgis
+version=1.3.0
+release=1
+
+source=(http://download.osgeo.org/qgis/src/qgis_$version.tar.gz
+ qgis.desktop fix-compilation.patch)
+
+build() {
+ cd $name-$version
+ patch -Np1 -i $SRC/fix-compilation.patch
+
+ # 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 $SRC
+ mkdir build
+ cd build
+ cmake ../$name-$version \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DGRASS_PREFIX=/usr/bin/grass \
+ -DQGIS_MANUAL_SUBDIR=share/man
+
+ sleep 10
+ make
+ make install DESTDIR=$PKG
+
+ # install some freedesktop.org compatibility
+ install -D -m644 $SRC/$name.desktop \
+ $SRC/usr/share/applications/$name.desktop
+}