| 138 | variant ecw description {Enable ECW file format} { |
| 139 | configure.args-delete --without-ecw |
| 140 | configure.args-append --with-ecw=/Intergraph/ERDASEcwJpeg2000SDK5.1 |
| 141 | |
| 142 | pre-configure { |
| 143 | if {(![file exists /Intergraph/ERDASEcwJpeg2000SDK5.1]) && \ |
| 144 | (![file exists /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only])} { |
| 145 | ui_error " |
| 146 | **** |
| 147 | * The Intergraph ECW SDK with version 5.1 or 5.1.1 is needed to |
| 148 | * compile gdal with the ecw variant. |
| 149 | * Please download and install the Mac OS X version of the SDK |
| 150 | * 'ERDAS ECW/JP2 SDK v5.1 (MacOSX)' from |
| 151 | * http://download.intergraph.com/ |
| 152 | * If you use the version 5.1.1 of the SDK the following commands |
| 153 | * should be executed before installing gdal with the ecw variant: |
| 154 | sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only /Intergraph/ERDASEcwJpeg2000SDK5.1 |
| 155 | sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libNCSEcw.a /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libEcwJp2SDK.a |
| 156 | ****" |
| 157 | error "ECW SDK 5.1 not installed." |
| 158 | } |
| 159 | if {(![file exists /Intergraph/ERDASEcwJpeg2000SDK5.1]) && \ |
| 160 | ([file exists /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only])} { |
| 161 | ui_error " |
| 162 | **** |
| 163 | * You are using the version 5.1.1 of the SDK. |
| 164 | * Please execute the following commands to allow the |
| 165 | * installation of qdal with the ecw variant: |
| 166 | sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only /Intergraph/ERDASEcwJpeg2000SDK5.1 |
| 167 | sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libNCSEcw.a /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libEcwJp2SDK.a |
| 168 | ****" |
| 169 | error "Symbolic links to the SDK not created yet." |
| 170 | } |
| 171 | if {(![file exists /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libEcwJp2SDK.a]) && \ |
| 172 | ([file exists /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libNCSEcw.a])} { |
| 173 | ui_error " |
| 174 | **** |
| 175 | * Please execute the following command to allow the |
| 176 | * installation of qdal with the ecw variant: |
| 177 | sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libNCSEcw.a /Intergraph/ERDASEcwJpeg2000SDK5.1/lib/libEcwJp2SDK.a |
| 178 | ****" |
| 179 | error "Symbolic link to the SDK library not created yet." |
| 180 | } |
| 181 | |
| 182 | } |
| 183 | |
| 184 | } |
| 185 | |