Revision 16100

View differences:

tags/tmp_build/binaries/w32/build.xml
1
<project name="binaries w32" default="main" basedir=".">
2
    <description>
3
        Reorganiza el directorio binaries/w32, para que pueda usarse directamente por gvSIG.
4
    </description>
5
	
6
	<property name="targetDir" location="." />
7
	
8
	<target name="main" depends="ecw, gdal, mrsid, crs, system" />
9
	
10
	<target name="ecw">
11
		<copy todir="${targetDir}">
12
			<fileset dir="raster/ecw" includes="jecw.dll jecwcompress.dll NCScnet.dll NCSEcwC.dll NCSEcw.dll NCSUtil.dll" />
13
		</copy>
14
	</target>
15
	
16
	<target name="gdal">
17
		<copy todir="${targetDir}">
18
			<fileset dir="raster/gdal"
19
				includes="gdal.dll glut32.dll jgdal060.dll jpeg62.dll libimage.dll libpng13.dll libtiff3.dll zlib1.dll"/>
20
		</copy>
21
	</target>
22
	
23
	<target name="mrsid">
24
		<copy todir="${targetDir}">
25
			<fileset dir="raster/mrsid" includes="jmrsid.dll lti_dsdk_cdll.dll lti_dsdk_dll.dll" />
26
		</copy>
27
	</target>
28
	
29
	<target name="system">
30
		<copy todir="${targetDir}">
31
			<fileset dir="system" includes="msvcp71.dll msvcr71.dll" />
32
		</copy>
33
	</target>
34
	
35
	<target name="crs">
36
		<copy todir="${targetDir}">
37
			<fileset dir="crs" includes="CrsJniProj.dll proj.dll" />
38
		</copy>
39
	</target>
40
	
41
	<target name="clean">
42
		<delete>
43
			<fileset
44
				dir="${targetDir}"
45
				includes="*.dll *.lib *.jar"/>
46
		</delete>
47
	</target>
48

  
49
</project>
0 50

  
tags/tmp_build/binaries/w32/.cvsignore
1
*.dll
0 2

  
tags/tmp_build/binaries/build.xml
1
<project name="binaries" default="main" basedir=".">
2
    <description>
3
        Reorganiza el directorio binaries, para que pueda usarse directamente por gvSIG.
4
    </description>
5
	
6
	<target name="main">
7
		<description>Reorders the directory for the current platform, so that it
8
			can be used by gvSIG.</description>
9
		<condition property="isLinux">
10
			<os family="unix"/>
11
		</condition>
12
		
13
		<condition property="isWindows">
14
			<or>
15
				<os family="windows"/>
16
				<os family="win9x"/>
17
			</or>
18
		</condition>
19
		
20
		<condition property="isMac">
21
			<os family="mac"/>
22
		</condition>
23
		
24
		<antcall target="linux" />
25
		<antcall target="windows" />
26
		<antcall target="mac" />
27

  
28
	</target>
29
	
30
	<target name="build-all">
31
		<description>Reorders the directory for all the platforms, so that it
32
			can be used by gvSIG.</description>
33
  		<ant dir="linux"  inheritAll="false" />
34
  		<ant dir="w32"  inheritAll="false" />
35
  		<ant dir="mac"  inheritAll="false" />
36
	</target>
37
	
38
	<target name="linux" if="isLinux">
39
  		<ant dir="linux"  inheritAll="false" />
40
	</target>
41
	
42
	<target name="windows" if="${isWindows}">
43
  		<ant dir="w32"  inheritAll="false" />
44
	</target>
45

  
46
	<target name="mac" if="${isMac}">
47
  		<ant dir="mac"  inheritAll="false" />
48
	</target>
49
	
50
	<target name="clean">
51
		<description>
52
			Restores the directory to its original shape.
53
		</description>
54
  		<ant target="clean" dir="linux"  inheritAll="false" />
55
  		<ant target="clean" dir="w32"  inheritAll="false" />
56
  		<ant target="clean" dir="mac"  inheritAll="false" />
57
	</target>
58
</project>
0 59

  
tags/tmp_build/binaries/linux/.cvsignore
1
*.so*
0 2

  
tags/tmp_build/binaries/linux/build.xml
1
<project name="binaries linux" default="main" basedir=".">
2
    <description>
3
        Reorganiza el directorio binaries/linux, para que pueda usarse directamente por gvSIG.
4
    </description>
5

  
6
	<property name="targetDir" location="." />
7

  
8
	<target name="main" depends="ecw, gdal, mrsid, crs" />
9

  
10
	<target name="ecw">
11
		<copy todir="${targetDir}">
12
			<fileset dir="raster/ecw" includes="*.so*" />
13
		</copy>
14
		<!-- necesitamos borrar los links antes de crearlos, porque failonerror=false no
15
		      funciona correctamente -->
16
		<delete file="${targetDir}/libjecwcompress.so"/>
17
		<symlink
18
			action="single"
19
			resource="libjecwcompress.so.1.0.0"
20
			link="${targetDir}/libjecwcompress.so"
21
			failonerror="false" />
22
		<delete file="${targetDir}/libjecwcompress.so.1" />
23
		<symlink
24
			action="single"
25
			resource="libjecwcompress.so.1.0.0"
26
			link="${targetDir}/libjecwcompress.so.1"
27
			failonerror="false" />
28
		<delete file="${targetDir}/libjecw.so" />
29
		<symlink
30
			action="single"
31
			resource="libjecw.so.0.0.1"
32
			link="${targetDir}/libjecw.so"
33
			failonerror="false" />
34
		<delete file="${targetDir}/libjecw.so.0" />
35
		<symlink
36
			action="single"
37
			resource="libjecw.so.0.0.1"
38
			link="${targetDir}/libjecw.so.0"
39
			failonerror="false" />
40
		<delete file="${targetDir}/libNCScnet.so" />
41
		<symlink
42
			action="single"
43
			resource="libNCSCnet.so.0.0.0"
44
			link="${targetDir}/libNCScnet.so"
45
			failonerror="false" />
46
		<delete file="${targetDir}/libNCSCnet.so" />
47
		<symlink
48
			action="single"
49
			resource="libNCSCnet.so.0.0.0"
50
			link="${targetDir}/libNCSCnet.so"
51
			failonerror="false" />
52
		<delete file="${targetDir}/libNCSCnet.so.0" />
53
		<symlink
54
			action="single"
55
			resource="libNCSCnet.so.0.0.0"
56
			link="${targetDir}/libNCSCnet.so.0"
57
			failonerror="false" />
58

  
59
		<delete file="${targetDir}/libNCSCNet.so" />
60
		<symlink
61
			action="single"
62
			resource="libNCSCnet.so.0.0.0"
63
			link="${targetDir}/libNCSCNet.so"
64
			failonerror="false" />
65
		<delete file="${targetDir}/libNCSEcw.so" />
66
		<symlink
67
			action="single"
68
			resource="libNCSEcw.so.0.0.0"
69
			link="${targetDir}/libNCSEcw.so"
70
			failonerror="false" />
71
		<delete file="${targetDir}/libNCSEcw.so.0" />
72
		<symlink
73
			action="single"
74
			resource="libNCSEcw.so.0.0.0"
75
			link="${targetDir}/libNCSEcw.so.0"
76
			failonerror="false" />
77
		<delete file="${targetDir}/libNCSEcwC.so" />
78
		<symlink
79
			action="single"
80
			resource="libNCSEcwC.so.0.0.0"
81
			link="${targetDir}/libNCSEcwC.so"
82
			failonerror="false" />
83
		<delete file="${targetDir}/libNCSEcwC.so.0" />
84
		<symlink
85
			action="single"
86
			resource="libNCSEcwC.so.0.0.0"
87
			link="${targetDir}/libNCSEcwC.so.0"
88
			failonerror="false" />
89
		<delete file="${targetDir}/libNCSUtil.so" />
90
		<symlink
91
			action="single"
92
			resource="libNCSUtil.so.0.0.0"
93
			link="${targetDir}/libNCSUtil.so"
94
			failonerror="false" />
95
		<delete file="${targetDir}/libNCSUtil.so.0" />
96
		<symlink
97
			action="single"
98
			resource="libNCSUtil.so.0.0.0"
99
			link="${targetDir}/libNCSUtil.so.0"
100
			failonerror="false" />
101

  
102
	</target>
103

  
104
	<target name="gdal">
105
		<copy todir="${targetDir}">
106
			<fileset dir="raster/gdal"
107
				includes="libcrypto.so.0.9.7 libgdal.so.1.10.0 libjasper-1.701.so.1.0.0 libjgdal.so.0.6.0 libodbc.so.1 libpng.so.3 libpq.so.3 libssl.so.0.9.7"/>
108
		</copy>
109
		<delete file="${targetDir}/libcrypto.so" />
110
		<symlink
111
			action="single"
112
			resource="libcrypto.so.0.9.7"
113
			link="${targetDir}/libcrypto.so"
114
			failonerror="false" />
115
		<delete file="${targetDir}/libgdal.so" />
116
		<symlink
117
			action="single"
118
			resource="libgdal.so.1.10.0"
119
			link="${targetDir}/libgdal.so"
120
			failonerror="false" />
121
		<delete file="${targetDir}/libgdal.so.1" />
122
		<symlink
123
			action="single"
124
			resource="libgdal.so.1.10.0"
125
			link="${targetDir}/libgdal.so.1"
126
			failonerror="false" />
127
		<delete file="${targetDir}/libjasper-1.701.so" />
128
		<symlink
129
			action="single"
130
			resource="libjasper-1.701.so.1.0.0"
131
			link="${targetDir}/libjasper-1.701.so"
132
			failonerror="false" />
133
		<delete file="${targetDir}/libjasper-1.701.so.1" />
134
		<symlink
135
			action="single"
136
			resource="libjasper-1.701.so.1.0.0"
137
			link="${targetDir}/libjasper-1.701.so.1"
138
			failonerror="false" />
139
		<delete file="${targetDir}/libjgdal.so" />
140
		<symlink
141
			action="single"
142
			resource="libjgdal.so.0.6.0"
143
			link="${targetDir}/libjgdal.so"
144
			failonerror="false" />
145
		<delete file="${targetDir}/libjgdal.so.0" />
146
		<symlink
147
			action="single"
148
			resource="libjgdal.so.0.6.0"
149
			link="${targetDir}/libjgdal.so.0"
150
			failonerror="false" />
151
		<delete file="${targetDir}/libodbc.so" />
152
		<symlink
153
			action="single"
154
			resource="libodbc.so.1"
155
			link="${targetDir}/libodbc.so"
156
			failonerror="false" />
157
		<delete file="${targetDir}/libpng.so" />
158
		<symlink
159
			action="single"
160
			resource="libpng.so.3"
161
			link="${targetDir}/libpng.so"
162
			failonerror="false" />
163
		<delete file="${targetDir}/libpq.so" />
164
		<symlink
165
			action="single"
166
			resource="libpq.so.3"
167
			link="${targetDir}/libpq.so"
168
			failonerror="false" />
169
		<delete file="${targetDir}/libssl.so" />
170
		<symlink
171
			action="single"
172
			resource="libssl.so.0.9.7"
173
			link="${targetDir}/libssl.so"
174
			failonerror="false" />
175
		<delete file="${targetDir}/libssl.so.0" />
176
		<symlink
177
			action="single"
178
			resource="libssl.so.0.9.7"
179
			link="${targetDir}/libssl.so.0"
180
			failonerror="false" />
181
	</target>
182

  
183
	<target name="mrsid">
184
		<copy todir="${targetDir}">
185
			<fileset dir="raster/mrsid" includes="libjmrsid.so.0.0.2" />
186
		</copy>
187
		<delete file="${targetDir}/libjmrsid.so" />
188
		<symlink
189
			action="single"
190
			resource="libjmrsid.so.0.0.2"
191
			link="${targetDir}/libjmrsid.so"
192
			failonerror="false" />
193
		<delete file="${targetDir}/libjmrsid.so.0" />
194
		<symlink
195
			action="single"
196
			resource="libjmrsid.so.0.0.2"
197
			link="${targetDir}/libjmrsid.so.0"
198
			failonerror="false" />
199
	</target>
200

  
201
	<target name="crs">
202
		<delete file="libproj.so" failonerror="false"/>
203
		<delete file="libproj.so.0" failonerror="false"/>
204
		<delete file="libproj.so.0.5.0" failonerror="false"/>
205
		<delete file="libcrsjniproj.so" failonerror="false"/>
206
		<symlink
207
			action="single"
208
			resource="crs/libproj.so.0.5.0"
209
			link="${targetDir}/libproj.so"
210
			failonerror="false" />
211
		<symlink
212
			action="single"
213
			resource="crs/libproj.so.0.5.0"
214
			link="${targetDir}/libproj.so.0"
215
			failonerror="false" />
216
		<symlink
217
			action="single"
218
			resource="crs/libproj.so.0.5.0"
219
			link="${targetDir}/libproj.so.0.5.0"
220
			failonerror="false" />
221
		<symlink
222
			action="single"
223
			resource="crs/libcrsjniproj.so.0.1.1"
224
			link="${targetDir}/libcrsjniproj.so"
225
			failonerror="false" />
226
		<symlink
227
			action="single"
228
			resource="crs/libcrsjniproj.so.0.1.1"
229
			link="${targetDir}/libcrsjniproj.so.0"
230
			failonerror="false" />
231
		<symlink
232
			action="single"
233
			resource="crs/libcrsjniproj.so.0.1.1"
234
			link="${targetDir}/libcrsjniproj.so.0.1.1"
235
			failonerror="false" />
236

  
237
	</target>
238

  
239

  
240
	<target name="clean">
241
		<delete>
242
			<fileset
243
				dir="${targetDir}"
244
				includes="*.so*"/>
245
		</delete>
246
	</target>
247

  
248
</project>
0 249

  
tags/tmp_build/binaries/linux/raster/ecw/install-ecw.sh
1
#!/bin/sh
2

  
3
cd $INSTALL_PATH/libs
4

  
5
rm -f libjecwcompress.so libjecwcompress.so.0 libjecwcompress.so.1
6
ln -s libjecwcompress.so.1.0.0 libjecwcompress.so
7
ln -s libjecwcompress.so.1.0.0 libjecwcompress.so.1
8

  
9
rm -f libjecw.so libjecw.so.0
10
ln -s libjecw.so.0.0.1 libjecw.so
11
ln -s libjecw.so.0.0.1 libjecw.so.0
12

  
13
rm -f libNCSCnet.so libNCSCNet.so libNCScnet.so
14
ln -s libNCSCnet.so.0.0.0 libNCSCnet.so
15
ln -s libNCSCnet.so.0.0.0 libNCSCNet.so
16
ln -s libNCSCnet.so.0.0.0 libNCScnet.so
17

  
18
rm -f libNCSEcwC.so
19
ln -s libNCSEcwC.so.0.0.0 libNCSEcwC.so
20

  
21
rm -f libNCSEcw.so
22
ln -s libNCSEcw.so.0.0.0 libNCSEcw.so
23

  
24
rm -f libNCSUtil.so
25
ln -s libNCSUtil.so.0.0.0 libNCSUtil.so
0 26

  
tags/tmp_build/binaries/linux/crs/install-crs.sh
1
#!/bin/sh
2

  
3
VER=0.6.0
4
VERPROJ=0.5.0
5
INSTALL_PATH=./library_path
6

  
7
cp libcrsjniproj.so libproj.so.$VERPROJ $INSTALL_PATH
8

  
9
ln -s $INSTALL_PATH/libproj.so.$VERPROJ $INSTALL_PATH/libproj.so
10
ln -s $INSTALL_PATH/libproj.so.$VERPROJ $INSTALL_PATH/libproj.so.0
0 11

  
tags/tmp_build/binaries/mac/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>binaries-mac-v10</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
	</buildSpec>
9
	<natures>
10
	</natures>
11
</projectDescription>
0 12

  
tags/tmp_build/binaries/mac/readme.txt
1
GDAL es Binario Universal, con parte PowerPC ejecutable en OS X 10.3 y 10.4, y parte Intel ejecutable en 10.4.
2

  
3
mrSID es s?lo para PowerPC, tanto 10.3 como 10.4. Compilado contra mrSID v5 (v6 permitir? soporte Intel, pero a?n no soportado por jmrsid)
4

  
5
ECW a?n no usable en OS X.
0 6

  
tags/tmp_build/binaries/mac/.cvsignore
1
*.jar
2
*.dylib
3
*.jnilib
0 4

  
tags/tmp_build/binaries/mac/build.xml
1
<project name="binaries mac" default="main" basedir=".">
2
    <description>
3
        Reorganiza el directorio binaries/mac, para que pueda usarse directamente por gvSIG.
4
    </description>
5
	
6
	<property name="targetDir" location="." />
7
	
8
	<target name="main" depends="gdal, mrsid, crs" />
9
	
10
<!--	<target name="ecw">
11
		<copy todir="${targetDir}">
12
			<fileset dir="raster/ecw" includes="jecw.dll jecwcompress.dll NCScnet.dll NCSEcwC.dll NCSEcw.dll NCSUtil.dll" />
13
		</copy>
14
	</target> -->
15
	
16
	<target name="gdal">
17
		<copy todir="${targetDir}">
18
			<fileset dir="raster/gdal"
19
				includes="jgdal-0.4.0.jar libgdal.dylib libjgdal.jnilib"/>
20
		</copy>
21
	</target>
22
	
23
	<target name="mrsid">
24
		<copy todir="${targetDir}">
25
			<fileset dir="raster/mrSID" includes="jmrsid-0.1.0.jar libjmrsid.jnilib" />
26
		</copy>
27
	</target>
28
	
29
	<target name="clean">
30
		<delete>
31
			<fileset
32
				dir="${targetDir}"
33
				includes="*.dylib *.jnilib *.jar"/>
34
		</delete>
35
	</target>
36

  
37
	<target name="crs">
38
		<copy todir="${targetDir}">
39
			<fileset dir="crs" includes="libcrsjniproj.jnilib libproj.dylib" />
40
		</copy>
41
	</target>
42

  
43
</project>
0 44

  
tags/tmp_build/binaries/ant/utilities.xml
1
<project name="ant_libs">
2
	<dirname file="${ant.file.ant_libs}" property="ant.file.ant_libs.dir"/>
3

  
4
	<!--
5
		====================================
6
		Compilation base properties
7
		====================================
8
	-->
9
	<property name="JUNIT_HOME" location="${ant.file.ant_libs.dir}" />
10
	<property name="JavaSourceVersion" value="1.5"/>
11
	<property name="JavaTargetVersion" value="1.5"/>
12
	<property name="debug" value="on"/>
13
	<property name="debuglevel" value="lines, vars"/>
14
	<property name="encoding" value="ISO_8859_1"/>
15

  
16

  
17

  
18

  
19
	<!--
20
		====================================
21
		ant4eclipse library load
22
		====================================
23
	-->
24
	<taskdef resource="net/sf/ant4eclipse/antlib.xml" >
25
			<classpath>
26
				<pathelement location="${ant.file.ant_libs.dir}/ant4eclipse-0.5.0.rc1.jar"/>
27
			</classpath>
28
	</taskdef>
29

  
30

  
31

  
32

  
33
	<!--
34
		====================================
35
		ant-contrib library load
36
		====================================
37
	-->
38
	<taskdef resource="net/sf/antcontrib/antlib.xml">
39
			<classpath>
40
				<pathelement location="${ant.file.ant_libs.dir}/ant-contrib-1.0b3.jar"/>
41
				<pathelement location="${ant.file.ant_libs.dir}/bcel-5.1.jar"/>
42
				<pathelement location="${ant.file.ant_libs.dir}/commons-httpclient-3.0.1.jar"/>
43
				<pathelement location="${ant.file.ant_libs.dir}/commons-logging-1.0.4.jar"/>
44
				<pathelement location="${ant.file.ant_libs.dir}/ivy-1.3.1.jar"/>
45
			</classpath>
46
	</taskdef>
47

  
48

  
49

  
50
	<!--
51
		====================================
52
		gvSIG ant utilities library load
53
		====================================
54
	-->
55
	<taskdef name="javacLikeEclipse" classname="org.gvsig.utilities.ant.taskdefs.JavacLikeEclipse">
56
		<classpath>
57
			<pathelement location="${ant.file.ant_libs.dir}/org.gvsig.utilities.ant.jar"/>
58
		</classpath>
59
	</taskdef>
60

  
61

  
62

  
63
	<!--
64
		====================================
65
		utilities tasks alias
66
		====================================
67
	-->
68

  
69
	<!--
70
	** loadEclipseClasspath Task  **
71

  
72
	Load the classpath from eclipse into the property 'eclipseClasspath'
73
	of the project recived in 'project' attribute. 'project' must
74
	be a directory of the workspace.
75

  
76
	- Use 'property="otherProperty"' : for change the return property
77

  
78
	Example:
79

  
80

  
81
	<target name="compile" description="compile the source" >
82
		<loadEclipseClasspath project="${basedir}>
83
		<mkdir dir="${build}" />
84
		<javac  srcdir="${src}"
85
			destdir="${build}"
86
			source="${JavaSourceVersion}"
87
			target="${JavaTargetVersion}"
88
			debug="${debug}"
89
			debuglevel="${debuglevel}"
90
			classpath="${eclipseClasspath}"
91
			encoding="${encoding}"/>
92
	</target>
93

  
94
	-->
95
	<presetdef name="loadEclipseClasspath">
96
		<getEclipseClasspath
97
			property="eclipseClasspath"
98
			runtime="true"/>
99

  
100
	</presetdef>
101

  
102
	<!--
103
	** gvSIG-javac Task **
104

  
105
	Javac whit default values to compile gvSIG proyects
106

  
107
	Example (minimal syntax):
108

  
109
	<gvSIG-javac
110
		classpath="${eclipseClasspath}"
111
		/>
112

  
113
	Example with exclude:
114

  
115
	<gvSIG-javac
116
		classpath="${eclipseClasspath}"
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff