summaryrefslogtreecommitdiffstats
path: root/extra/grass/Pkgfile
blob: 4e65091237e59df8ce6411b0ad39ca8cc2bb00c8 (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
39
40
# Description: Geographic Information System (GIS) used for geospatial data management and analysis
#              image processing, graphics/maps production, spatial modeling, and visualization"
#
# URL:http://grass.itc.it/index.php
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: proj, gdal, fftw, swig, libpng, libtiff, sqlite3, python, tk

name=grass
version=6.4.0RC5
release=1
source=(http://grass.itc.it/grass63/source/$name-$version.tar.gz)

build() {
	cd $name-$version
		./configure --prefix=$PKG/opt --exec-prefix=$PKG/opt \
    		--with-proj \
    		--with-gdal \
		--with-fftw \
	 	--with-dwg \
    		--with-sqlite \
	 	--with-python \
	 	--with-postgres=no \
	 	--with-nls=no
	 	
 	make
 	mkdir -p $PKG/opt
	make DESTDIR=$PKG install
	
	cd $PKG/opt/bin/
	sed -i "s|$PKG||g" grass64
	mkdir -p $PKG/usr/lib
	cd $PKG/usr/lib ; ln -s ../../opt/$name-$version/lib/*.so .
	rm -rf $PKG/opt/grass-6.4.0RC5/AUTHORS
	rm -rf $PKG/opt/grass-6.4.0RC5/COPYING
	rm -rf $PKG/opt/grass-6.4.0RC5/bwidget/README.grass
	rm -rf $PKG/opt/grass-6.4.0RC5/etc/gem/skeleton/README
	rm -rf $PKG/opt/grass-6.4.0RC5/etc/wxpython/README
}