blob: 92918040ac311fe40c13811bc93ad5194c4b974b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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.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
}
|