git: 2dba9b1da300 - main - graphics/gdal: fix packaging on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Dec 2024 12:05:23 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2dba9b1da3005a9cf118f053b77c0519dcb36d96
commit 2dba9b1da3005a9cf118f053b77c0519dcb36d96
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-12-17 18:01:34 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-12-20 12:04:53 +0000
graphics/gdal: fix packaging on big-endian
MiraMonVector is not installed on big-endian.
https://github.com/OSGeo/gdal/commit/10fa4d1f2962a8e7de06038cb4d1a633b1e49384#diff-d12d54c1acfc92fa918d9318ba0c2312bd7701f99537b4fddfb428f48af72574R50
---
graphics/gdal/Makefile | 8 ++++++++
graphics/gdal/pkg-plist | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/graphics/gdal/Makefile b/graphics/gdal/Makefile
index 333603ae8bc5..4d6e72e5f18c 100644
--- a/graphics/gdal/Makefile
+++ b/graphics/gdal/Makefile
@@ -207,6 +207,14 @@ XERCES_LIB_DEPENDS= libxerces-c.so:textproc/xerces-c3
ZSTD_CMAKE_BOOL= GDAL_USE_ZSTD
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64
+PLIST_SUB+= BIGENDIAN="@comment "
+.else
+PLIST_SUB+= BIGENDIAN=""
+.endif
+
# Clean up bundled libraries
.if !defined(MAINTAINER_MODE)
EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/alg/internal_libqhull \
diff --git a/graphics/gdal/pkg-plist b/graphics/gdal/pkg-plist
index 7984056a00a1..aea26344fd6f 100644
--- a/graphics/gdal/pkg-plist
+++ b/graphics/gdal/pkg-plist
@@ -162,7 +162,7 @@ share/bash-completion/completions/ogrtindex
%%DATADIR%%/GDALLogoColor.svg
%%DATADIR%%/GDALLogoGS.svg
%%DATADIR%%/LICENSE.TXT
-%%DATADIR%%/MM_m_idofic.csv
+%%BIGENDIAN%%%%DATADIR%%/MM_m_idofic.csv
%%HDF5%%%%DATADIR%%/bag_template.xml
%%DATADIR%%/cubewerx_extra.wkt
%%DATADIR%%/default.rsc