Guest User

Untitled

a guest
Jul 4th, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.21 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 = "CLOSED" # GPL-2.0 in reality, but it does not work with any other value than CLOSED
  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. # 3.2.2
  16. SRCREV = "628da50be30d45d71c01b273e778d562f80f8b5f"
  17.  
  18. S = "${WORKDIR}/git"
  19. #B = "${WORKDIR}/build"
  20.  
  21. DEPENDS += "proj json-c libxml2 geos postgresql gettext qemu-native libxslt pcre bash"
  22.  
  23. EXTRA_OECONF +=  "\
  24.    --prefix=${RECIPE_SYSROOT}${prefix} \
  25.    --without-raster \
  26.    --without-protobuf \
  27.    --with-pgconfig=${STAGING_BINDIR_CROSS}/pg-config \
  28.    --with-geosconfig=${STAGING_BINDIR_CROSS}/geos_config"
  29.  
  30. # https://lists.yoctoproject.org/g/yocto/topic/aarch64_oe_linux_bin_ld/61313740
  31. # Not a working fix
  32. IMAGE_INSTALL += " gcc"
  33. IMAGE_INSTALL += " glibc"
  34. IMAGE_INSTALL += " libgcc"
  35. IMAGE_INSTALL += " binutils"
  36. IMAGE_INSTALL += " gccmakedep"
  37. IMAGE_INSTALL += " tools-sdk"
  38. IMAGE_INSTALL += " dev-pkgs"
  39.  
  40. # None of these fix the linking error, and make the software not even compile, complaining of "missing yacc"
  41. #TARGET_LDFLAGS += " -L${RECIPE_SYSROOT}${prefix}${libdir} --sysroot=${RECIPE_SYSROOT}"
  42. #BUILD_LDFLAGS += " -L${RECIPE_SYSROOT}${prefix}${libdir} --sysroot=${RECIPE_SYSROOT}"
  43. #TARGET_CFLAGS += " --sysroot=${RECIPE_SYSROOT}"
  44. #TARGET_CPPFLAGS += " --sysroot=${RECIPE_SYSROOT}"
  45. #TARGET_CXXFLAGS += " --sysroot=${RECIPE_SYSROOT}"
  46.  
  47. #CPPFLAGS = "-I${WORKDIR}/recipe-sysroot/usr/include"
  48.  
  49. inherit autotools-brokensep pkgconfig gettext qemu
  50.  
  51. do_configure:prepend () {
  52.     set -x
  53.     install -d ${S}/build-aux/
  54.     install -m 0755 ${STAGING_DIR_HOST}/usr/share/gettext/config.rpath ${S}/build-aux/config.rpath
  55. }
  56.  
  57. do_compile:prepend () {
  58.     set -x
  59. }
  60.  
  61. CFLAGS  += "-DPOSTGIS_DEBUG_LEVEL=0"
  62.  
  63. FILES:${PN} += "${libdir}/postgresql/lib/"
  64. FILES:${PN} += "${datadir}"
  65. FILES:${PN} += "${datadir}/postgresql/contrib/postgis-3.2"
  66. FILES:${PN} += "${datadir}/postgresql/extension"
  67.  
Advertisement
Add Comment
Please, Sign In to add comment