|
| 1 | +SUMMARY = "GDAL is a translator library for raster geospatial data formats" |
| 2 | +HOMEPAGE = "http://www.gdal.org/" |
| 3 | +LICENSE = "MIT" |
| 4 | +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0952e17969fab12227096b5228f23149" |
| 5 | + |
| 6 | +DEPENDS = "proj sqlite3 tiff" |
| 7 | + |
| 8 | +SRC_URI = "http://download.osgeo.org/gdal/${PV}/gdal-${PV}.tar.xz" |
| 9 | + |
| 10 | +S = "${WORKDIR}/gdal-${PV}" |
| 11 | + |
| 12 | +SRC_URI[md5sum] = "31f2c4a7230b40e5fdc3cf12a100f96b" |
| 13 | +SRC_URI[sha256sum] = "b5186b5817e94743de1bceef66aeee1461687e14f73bf81034fcf0377eacbcc3" |
| 14 | + |
| 15 | +inherit autotools-brokensep lib_package binconfig |
| 16 | + |
| 17 | +EXTRA_OECONF = " \ |
| 18 | + --without-perl \ |
| 19 | + --without-php \ |
| 20 | + --without-ruby \ |
| 21 | + --without-python \ |
| 22 | + --without-grass \ |
| 23 | + --without-libgrass \ |
| 24 | + --without-cfitsio \ |
| 25 | + --without-dds \ |
| 26 | + --without-gta \ |
| 27 | + --without-pcidsk \ |
| 28 | + --without-ogdi \ |
| 29 | + --without-fme \ |
| 30 | + --without-hdf4 \ |
| 31 | + --without-hdf5 \ |
| 32 | + --without-pg \ |
| 33 | + --without-jpeg12 \ |
| 34 | + --without-ogdi \ |
| 35 | + --without-netcdf \ |
| 36 | + --without-openjpeg \ |
| 37 | + --without-fgdb \ |
| 38 | + --without-ecw \ |
| 39 | + --without-kakadu \ |
| 40 | + --without-mrsid \ |
| 41 | + --without-jp2mrsid \ |
| 42 | + --without-mrsid_lidar \ |
| 43 | + --without-msg \ |
| 44 | + --without-bsb \ |
| 45 | + --without-grib \ |
| 46 | + --without-mysql \ |
| 47 | + --without-ingres \ |
| 48 | + --without-odbc \ |
| 49 | + --without-dods_root \ |
| 50 | + --without-xml2 \ |
| 51 | + --without-spatialite \ |
| 52 | + --without-pcre \ |
| 53 | + --without-dwgdirect \ |
| 54 | + --without-dwgdirect \ |
| 55 | + --without-idb \ |
| 56 | + --without-sde \ |
| 57 | + --without-sde-version \ |
| 58 | + --without-epsilon \ |
| 59 | + --without-webp \ |
| 60 | + --without-opencl \ |
| 61 | + --without-opencl-include \ |
| 62 | + --without-opencl-lib \ |
| 63 | + --without-freexl \ |
| 64 | + --without-pam \ |
| 65 | + --without-poppler \ |
| 66 | + --without-podofo \ |
| 67 | + --without-podofo-lib \ |
| 68 | + --without-podofo-extra-lib-for-test \ |
| 69 | + --without-static_proj4 \ |
| 70 | + --without-perl \ |
| 71 | + --without-php \ |
| 72 | + --without-ruby \ |
| 73 | + --without-python \ |
| 74 | + --without-java \ |
| 75 | + --without-mdb \ |
| 76 | + --without-jvm-lib \ |
| 77 | + --without-jvm-lib-add-rpath \ |
| 78 | + --without-rasdaman \ |
| 79 | + --without-armadillo \ |
| 80 | + --with-pcraster=internal \ |
| 81 | + --with-geotiff=internal \ |
| 82 | + --without-sqlite3 \ |
| 83 | + --without-libtiff \ |
| 84 | + --with-libjson-c=internal \ |
| 85 | + --without-expat \ |
| 86 | +" |
| 87 | + |
| 88 | +# |
| 89 | +# --with-sqlite3=${STAGING_LIBDIR} \ |
| 90 | +# --with-libtiff=${STAGING_LIBDIR} \ |
| 91 | +# --with-libjson-c=${STAGING_LIBDIR} \ |
| 92 | +#" |
| 93 | + |
| 94 | +EXTRA_OEMAKE += "INST_DATA="${datadir}/gdal"" |
| 95 | + |
| 96 | +PACKAGECONFIG ?= "geos png jasper" |
| 97 | +PACKAGECONFIG[geos] = "--with-geos,--without-geos,geos" |
| 98 | +PACKAGECONFIG[lzma] = "--with-liblzma,--without-liblzma,xz" |
| 99 | +PACKAGECONFIG[png] = "--with-png,--without-png,libpng" |
| 100 | +PACKAGECONFIG[gif] = "--with-gif,--without-gif,giflib" |
| 101 | +PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg" |
| 102 | +PACKAGECONFIG[z] = "--with-libz,--without-libz,zlib" |
| 103 | +PACKAGECONFIG[jasper] = "--with-jasper,--without-jasper,jasper" |
| 104 | +PACKAGECONFIG[curl] = "--with-curl,--without-curl,curl" |
| 105 | + |
| 106 | +do_configure_prepend () { |
| 107 | + sed \ |
| 108 | + -e 's,/usr/include,NON_EXISTENT_DIR,g' \ |
| 109 | + -e 's,/usr/lib,NON_EXISTENT_DIR,g' \ |
| 110 | + -i ${S}/configure.in |
| 111 | +} |
| 112 | + |
| 113 | +do_configure_append () { |
| 114 | + sed \ |
| 115 | + -e 's,-Lno/lib,,g' \ |
| 116 | + -e 's,-Ino/include,,g' \ |
| 117 | + -i ${S}/GDALmake.opt |
| 118 | +} |
| 119 | + |
| 120 | +FILES_${PN} += "${libdir}/gdalplugins" |
| 121 | + |
0 commit comments