summaryrefslogtreecommitdiffstats
path: root/test/qgis/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-06-24 18:14:17 +0200
committersibel <lesibel at free dot fr>2010-06-24 18:14:17 +0200
commit9f61e0735bd4563a02511625e3b5b72d846f5ef2 (patch)
tree12a19e7d8f187716a2a21c265134f9b5a7dec23d /test/qgis/Pkgfile
parentb32be66de1688e78219282eecaf7e26b866dd276 (diff)
downloadnutyx-extra-9f61e0735bd4563a02511625e3b5b72d846f5ef2.tar.gz
nutyx-extra-9f61e0735bd4563a02511625e3b5b72d846f5ef2.tar.bz2
nutyx-extra-9f61e0735bd4563a02511625e3b5b72d846f5ef2.tar.xz
nutyx-extra-9f61e0735bd4563a02511625e3b5b72d846f5ef2.zip
qgis, déplacé dans test
Diffstat (limited to 'test/qgis/Pkgfile')
-rw-r--r--test/qgis/Pkgfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/qgis/Pkgfile b/test/qgis/Pkgfile
new file mode 100644
index 000000000..56b98ffad
--- /dev/null
+++ b/test/qgis/Pkgfile
@@ -0,0 +1,39 @@
+# 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: cmake, jasper, curl, qt, gsl, grass, python, pyqt, giflib, xerces-c, geos, python-numpy, gpsbabel, libgeotiff, netcdf, postgresql
+
+
+name=qgis
+version=1.4.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
+}