Revision 30320

View differences:

trunk/binaries/deb-etch/mrsid/libjmrsid.so.0
1
link libjmrsid.so.0.0.6
0 2

  
trunk/binaries/deb-etch/gdal/libjgdal.so.0
1
link libjgdal.so.0.9.1
0 2

  
trunk/install/instalador-gvSIG-deb/resources/jre-ecw-mrsid/DEBIAN/control
1
Package: gvsig-jre-ecw-mrsid
1
Package: gvsig-withjre
2 2
Version: 1.9.0
3 3
Priority: optional
4 4
Section: utils
5 5
Architecture: i386
6
Depends: libgdal1-1.5.0 (>= 1.5)
6
Depends: libgdal1-1.5.0-grass (>= 1.5.0), libstdc++5
7
Conflicts: libgdal1.6.0-grass (>= 1.6.0)
7 8
Maintainer: Jose Vicente Higon <jvhigon@gvsig.com>
8 9
Description: An open source GIS Desktop client 
9 10
 More information at http://www.gvsig.gva.es
trunk/install/instalador-gvSIG-deb/resources/jre-ecw-mrsid/gvSIG.sh
1 1
#!/bin/sh
2 2
# gvSIG.sh
3 3
# Script de arranque de gvSIG para paquetes deb (directorio de instalación /opt/gvSIG)
4
export GVSIG_LIBS="/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw"
4
export GVSIG_LIBS="/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid"
5 5
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GVSIG_LIBS"
6 6
export PROJ_LIB="/opt/gvSIG/bin/gvSIG/extensiones/org.gvsig.crs/data"
7 7
export GDAL_DATA="/usr/share/gdal15"
......
14 14
  LIBRARIES=$LIBRARIES:"$i"
15 15
done
16 16

  
17
/opt/gvSIG/1.5.0_12/bin/java -Djava.library.path=/usr/lib:/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw -cp andami.jar$LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
17
/opt/gvSIG/1.5.0_12/bin/java -Djava.library.path=/usr/lib:/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid -cp andami.jar$LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
18 18

  
trunk/install/instalador-gvSIG-deb/resources/ecw-mrsid/gvSIG.sh
1 1
#!/bin/sh
2 2
# gvSIG.sh
3 3
# Script de arranque de gvSIG para paquetes deb (directorio de instalación /opt/gvSIG)
4
export GVSIG_LIBS="/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw"
4
export GVSIG_LIBS="/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid"
5 5
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GVSIG_LIBS"
6 6
export PROJ_LIB="/opt/gvSIG/bin/gvSIG/extensiones/org.gvsig.crs/data"
7 7
export GDAL_DATA="/usr/share/gdal15"
......
14 14
  LIBRARIES=$LIBRARIES:"$i"
15 15
done
16 16

  
17
/usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.library.path=/usr/lib:/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw -cp andami.jar$LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
17
/usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.library.path=/usr/lib:/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid -cp andami.jar$LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
18 18

  
trunk/install/instalador-gvSIG-deb/resources/ecw-mrsid/DEBIAN/control
1
Package: gvsig-ecw-mrsid
1
Package: gvsig
2 2
Version: 1.9.0
3 3
Priority: optional
4 4
Section: utils
5 5
Architecture: i386
6
Depends: libgdal1-1.5.0 (>= 1.5), sun-java5-jre (>= 1.5.0)
6
Depends: libgdal1-1.5.0 (>= 1.5.0), libstdc++5, sun-java5-jre (>= 1.5.0)
7 7
Maintainer: Jose Vicente Higon <jvhigon@gvsig.org>
8 8
Description: An open source GIS Desktop client 
9 9
 More information at http://www.gvsig.gva.es
trunk/install/instalador-gvSIG-deb/resources/grass/gvSIG.sh
1
#!/bin/sh
2
# gvSIG.sh
3
# Script de arranque de gvSIG para paquetes deb (directorio de instalación /opt/gvSIG)
4
export GVSIG_LIBS="/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid"
5
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GVSIG_LIBS"
6
export PROJ_LIB="/opt/gvSIG/bin/gvSIG/extensiones/org.gvsig.crs/data"
7
export GDAL_DATA="/usr/share/gdal15"
8
cd "/opt/gvSIG/bin"
9

  
10
for i in ./lib/*.jar ; do
11
  LIBRARIES=$LIBRARIES:"$i"
12
done
13
for i in ./lib/*.zip ; do
14
  LIBRARIES=$LIBRARIES:"$i"
15
done
16

  
17
/usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.library.path=/usr/lib:/opt/gvSIG/libs:/opt/gvSIG/libs/gdal:/opt/gvSIG/libs/proj:/opt/gvSIG/libs/ecw:/opt/gvSIG/libs/mrsid -cp andami.jar$LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
18

  
0 19

  
trunk/install/instalador-gvSIG-deb/resources/grass/DEBIAN/control
1
Package: gvsig-grass
2
Version: 1.9.0
3
Priority: optional
4
Section: utils
5
Architecture: i386
6
Depends: libgdal1-1.5.0-grass (>= 1.5.0), libstdc++5, sun-java5-jre (>= 1.5.0)
7
Conflicts: libgdal1.6.0-grass (>= 1.6.0), gvsig
8
Maintainer: Jose Vicente Higon <jvhigon@gvsig.org>
9
Description: An open source GIS Desktop client 
10
 More information at http://www.gvsig.gva.es
trunk/install/instalador-gvSIG-deb/resources/grass/DEBIAN/postinst
1
#! /bin/sh
2
# postinst script for openproj
3

  
4
if [ "$1" = "configure" ]; then
5
	if [ -x /usr/bin/update-desktop-database ] ; then
6
        	/usr/bin/update-desktop-database
7
	fi
8
	if [ -x /usr/bin/update-mime-database ] ; then
9
        	/usr/bin/update-mime-database /usr/share/mime
10
	fi
11
fi
12

  
13
#check license agreement
14
cd /opt/gvSIG
15
more LICENSE-jai.txt
16

  
17
while (true)
18
do
19
	echo ""
20
    echo "Do you agree? [y/n]"
21
    read ok
22
    if [ $ok = "y" ]
23
    then
24
    	exit 0
25
    else
26
    	if [ $ok = "n" ]
27
   		then
28
                exit 1
29
    	fi
30
	fi
31
done
0 32

  
trunk/install/instalador-gvSIG-deb/resources/grass/DEBIAN/postrm
1
#! /bin/sh
2
# postun script for openproj
3

  
4
if [ "$1" = "configure" ]; then
5
	if [ -x /usr/bin/update-desktop-database ] ; then
6
        	/usr/bin/update-desktop-database
7
	fi
8
	if [ -x /usr/bin/update-mime-database ] ; then
9
        	/usr/bin/update-mime-database /usr/share/mime
10
	fi
11
fi
0 12

  
trunk/install/instalador-gvSIG-deb/resources/grass/DEBIAN/preinst
1
#!/bin/sh
2
exit 0
0 3

  
trunk/install/instalador-gvSIG-deb/resources/grass/debian-binary
1
2.0
trunk/install/instalador-gvSIG-deb/resources/default/DEBIAN/control
3 3
Priority: optional
4 4
Section: utils
5 5
Architecture: i386
6
Depends: libgdal1-1.5.0 (>= 1.5), sun-java5-jre (>= 1.5.0)
6
Depends: libgdal1-1.5.0-grass (>= 1.5.0), libstdc++5, sun-java5-jre (>= 1.5.0)
7
Conflicts: libgdal1.6.0-grass (>= 1.6.0)
7 8
Maintainer: Jose Vicente Higon <jvhigon@gvsig.org>
8 9
Description: An open source GIS Desktop client 
9 10
 More information at http://www.gvsig.gva.es
trunk/install/instalador-gvSIG-deb/README.txt
1 1
OVERVIEW
2 2
==========
3
This ANT script builds a gvSIG Debian package
3
This ANT script builds a gvSIG Debian package. 
4 4

  
5

  
6 5
PRECONDITIONS
7 6
==========
8 7
- operative system with a GLIBC compatible version for all platforms
......
14 13
- a workspace in built without errors and the directory _fwAndami/gvSIG contains
15 14
all the extensions
16 15

  
17
- the directory ${jni-gdal.dir} contains gdal native libraries 
18
- the directory ${jni-proj.dir} contains proj native libraries
16
The directory binaries/deb-etch must have the symbolic links to the native libraries
19 17

  
20
INSTRUCTIONS
18
The main dependencies are:
19
libgdal1.5.0 for raster support (conflicts with v1.6 in order to support grass format)
20
libstdc++5 for mrsid support
21

  
22
BUILD
21 23
==========
22 24

  
23 25
1.- Building JNI gdal
24 26
Edit libjni-gdal/CMakeModules/FindGDAL.cmake and put the path where 
25 27
gdal headers are placed.
26
The easy way is install from repository (sudo aptitude search gdal) and
28
The easy way is install from repository (sudo aptitude install libgdal1-1.5.0-grass) and
27 29
set the directory /usr/include/gdal
28 30
Define the enviroment JAVA_HOME
29

  
30 31
Finally, run the ant build script.
31 32

  
32
2.- Building JNI ECW
33
2.- Building JNI ECW (v3.3)
33 34
Edit libjni-ecw/CMakeModules/FindECW.cmake and put the path where 
34 35
ECW headers are placed (ie. /usr/local/include)
35

  
36 36
Define the enviroment JAVA_HOME 
37

  
38 37
Finally, run the ant build script.
39 38

  
40
3.- Building JNI proj
39
3.- Building JNI MrSID  (v7.0.0)
40
Edit libjni-mrsid/CMakeModules/FindMRSID.cmake and put the path where 
41
MrSID headers are placed (ie /usr/local/Geo_DSDK-7.0.6.2167)
42
NOTE: each group of lines has a different include directory!!
43
Set gcc-3.4 as the default gcc compiler
44
Set g++-3.4 as the default g++ compiler
45
Change libstdc++ in the compiler ( /usr/lib/gcc/i486-linux-gnu/3.4.6). Its needed to point libstdc++.so.5
46
Define the enviroment JAVA_HOME
47
Finally, run the ant build script 
48

  
49
4.- Building JNI proj
41 50
Edit libjni-proj4/Makefile to set the directory where is placed the JNI headers
42 51
For example:
43 52
"default_PROJECT_INCS= -Iinclude -I/usr/lib/jvm/java-1.5.0-sun/include -I/usr/lib/jvm/java-1.5.0-sun/include/linux" 
44

  
45 53
In a shell execute make
46 54

  
47
4.- Building the package
55
5.- Building the package
48 56
Run the ant script and the binary will be placed in the directory "dist"
49 57

  
50 58

  
trunk/install/instalador-gvSIG-deb/build.xml
96 96
			</exec>
97 97
</target>
98 98

  
99
<target name="build" description="Creates a Debian Package" depends="clean,copyJAI">
99
<target name="build" description="Creates a Debian Package" depends="clean,prepare-natives-ecw,prepare-natives-mrsid,copyJAI">
100 100
	<mkdir dir="${dist.dir}"/>
101 101
	<antcall target="prepare">
102
		<param name="resources.dir" value="resources/default"/>
102
		<param name="resources.dir" value="resources/ecw-mrsid"/>
103 103
	</antcall>
104 104
	<exec executable="dpkg">
105 105
	    <arg value="--build"/>
......
107 107
		<arg value="${dist.dir}"/>
108 108
	</exec>
109 109
</target>
110
<target name="build-grass" description="Creates a Debian Package with grass support" depends="clean,prepare-natives-ecw,prepare-natives-mrsid,copyJAI">
111
		<mkdir dir="${dist.dir}"/>
112
		<antcall target="prepare">
113
			<param name="resources.dir" value="resources/grass"/>
114
		</antcall>
115
		<exec executable="dpkg">
116
		    <arg value="--build"/>
117
			<arg value="${build.dir}"/>
118
			<arg value="${dist.dir}"/>
119
		</exec>
120
</target>
110 121

  
111
<target name="build-ecw-mrsid" description="Creates a Debian Package with ECW and MrSID support" depends="clean,prepare-natives-ecw,prepare-natives-mrsid,copyJAI">
122
<target name="build-no-ecw-mrsid" description="Creates a Debian Package with ECW and MrSID support" depends="clean,copyJAI">
112 123
	<antcall target="prepare">
113
			<param name="resources.dir" value="resources/ecw-mrsid"/>
124
			<param name="resources.dir" value="resources/default"/>
114 125
		</antcall>	
115 126
		<mkdir dir="${dist.dir}"/>
116 127
		<exec executable="dpkg">
......
120 131
		</exec>
121 132
</target>
122 133

  
123
<target name="build-jre-ecw-mrsid" description="Creates a Debian Package including JRE" depends="clean,prepare-natives-ecw,prepare-natives-mrsid,copyJRE,copyJAI">
134
<target name="build-withjre" description="Creates a Debian Package including JRE" depends="clean,prepare-natives-ecw,prepare-natives-mrsid,copyJRE,copyJAI">
124 135
	<antcall target="prepare">
125 136
				<param name="resources.dir" value="resources/jre-ecw-mrsid"/>
126 137
			</antcall>	

Also available in: Unified diff