Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUMMARY = "PostGIS is a spatial database extender for PostgreSQL \
- object-relational database. It adds support for geographic \
- objects allowing location queries to be run in SQL."
- HOMEPAGE = "https://postgis.net/"
- LICENSE = "CLOSED" # GPL-2.0 in reality, but it does not work with any other value than CLOSED
- #INSANE_SKIP = "configure-unsafe"
- PR = "r0"
- SRC_URI = "git://github.com/postgis/postgis.git;branch=stable-3.2;protocol=https \
- file://0001-do-not-use-xml2-config.patch"
- # 3.2.2
- SRCREV = "628da50be30d45d71c01b273e778d562f80f8b5f"
- S = "${WORKDIR}/git"
- #B = "${WORKDIR}/build"
- DEPENDS += "proj json-c libxml2 geos postgresql gettext qemu-native libxslt pcre bash"
- EXTRA_OECONF += "\
- --prefix=${RECIPE_SYSROOT}${prefix} \
- --without-raster \
- --without-protobuf \
- --with-pgconfig=${STAGING_BINDIR_CROSS}/pg-config \
- --with-geosconfig=${STAGING_BINDIR_CROSS}/geos_config"
- # https://lists.yoctoproject.org/g/yocto/topic/aarch64_oe_linux_bin_ld/61313740
- # Not a working fix
- IMAGE_INSTALL += " gcc"
- IMAGE_INSTALL += " glibc"
- IMAGE_INSTALL += " libgcc"
- IMAGE_INSTALL += " binutils"
- IMAGE_INSTALL += " gccmakedep"
- IMAGE_INSTALL += " tools-sdk"
- IMAGE_INSTALL += " dev-pkgs"
- # None of these fix the linking error, and make the software not even compile, complaining of "missing yacc"
- #TARGET_LDFLAGS += " -L${RECIPE_SYSROOT}${prefix}${libdir} --sysroot=${RECIPE_SYSROOT}"
- #BUILD_LDFLAGS += " -L${RECIPE_SYSROOT}${prefix}${libdir} --sysroot=${RECIPE_SYSROOT}"
- #TARGET_CFLAGS += " --sysroot=${RECIPE_SYSROOT}"
- #TARGET_CPPFLAGS += " --sysroot=${RECIPE_SYSROOT}"
- #TARGET_CXXFLAGS += " --sysroot=${RECIPE_SYSROOT}"
- #CPPFLAGS = "-I${WORKDIR}/recipe-sysroot/usr/include"
- inherit autotools-brokensep pkgconfig gettext qemu
- do_configure:prepend () {
- set -x
- install -d ${S}/build-aux/
- install -m 0755 ${STAGING_DIR_HOST}/usr/share/gettext/config.rpath ${S}/build-aux/config.rpath
- }
- do_compile:prepend () {
- set -x
- }
- CFLAGS += "-DPOSTGIS_DEBUG_LEVEL=0"
- FILES:${PN} += "${libdir}/postgresql/lib/"
- FILES:${PN} += "${datadir}"
- FILES:${PN} += "${datadir}/postgresql/contrib/postgis-3.2"
- FILES:${PN} += "${datadir}/postgresql/extension"
Advertisement
Add Comment
Please, Sign In to add comment