Guest User

Untitled

a guest
Jun 27th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.57 KB | None | 0 0
  1. SUMMARY = "PostGIS is a spatial database extender for PostgreSQL \
  2.        object-relational database. It adds support for geographic \
  3.        objects allowing location queries to be run in SQL."
  4.  
  5. HOMEPAGE = "https://postgis.net/"
  6. LICENSE = "GPL-v2"
  7.  
  8. INSANE_SKIP = "configure-unsafe"
  9.  
  10. PR = "r0"
  11.  
  12. SRC_URI = "git://github.com/postgis/postgis.git;branch=stable-3.2;protocol=https \
  13.            file://0001-do-not-use-xml2-config.patch"
  14.  
  15. SRCREV = "9e2f4f9f05213a29c92b94459db9a02eca0e02ac"
  16.  
  17. S = "${WORKDIR}/git"
  18. B = "${WORKDIR}/build"
  19.  
  20. DEPENDS += "proj json-c libxml2 geos postgresql gettext qemu-native libxslt pcre bash"
  21.  
  22. EXTRA_OECONF +=  "\
  23.    --without-raster \
  24.     --without-protobuf \
  25.    --with-pgconfig=${STAGING_BINDIR_CROSS}/pg-config"
  26.  
  27. CPPFLAGS = "-I${WORKDIR}/recipe-sysroot/usr/include"
  28. CMAKE_SYSROOT = "${WORKDIR}/recipe-sysroot"
  29.  
  30. inherit autotools pkgconfig gettext qemu
  31.  
  32. do_compile:prepend () {
  33.     (cd ${S} && find . -type f -exec install -Dm 755 "{}" "${B}/{}" \;)
  34. }
  35.  
  36. do_configure () {
  37.     set -x
  38.  
  39.     export CPPFLAGS
  40.  
  41.     install -d ${D}${includedir}
  42.     install -d ${WORKDIR}/recipe-sysroot/usr/include
  43.  
  44.     install -d ${S}/build-aux/
  45.     install -m 0755 ${STAGING_DIR_HOST}/usr/share/gettext/config.rpath ${S}/build-aux/config.rpath
  46.     cd ${S}
  47.  
  48.     ${S}/autogen.sh
  49.  
  50.     autotools_do_configure --prefix=${WORKDIR}/recipe-sysroot/usr
  51. }
  52.  
  53. CFLAGS  += "-DPOSTGIS_DEBUG_LEVEL=0"
  54.  
  55. FILES_${PN} += "${libdir}/postgresql/lib/"
  56. FILES_${PN} += "${datadir}"
  57. FILES_${PN} += "${datadir}/postgresql/contrib/postgis-3.2"
  58. FILES_${PN} += "${datadir}/postgresql/extension"
Advertisement
Add Comment
Please, Sign In to add comment