git: 64fe6a27239b - main - graphics/gdal: Adjust 45e73124cc63baa9757d6252a591154526dc8607
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 May 2024 10:22:41 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=64fe6a27239b27b23a9e387669a1be3f8bb976de commit 64fe6a27239b27b23a9e387669a1be3f8bb976de Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-28 09:59:47 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-28 10:21:24 +0000 graphics/gdal: Adjust 45e73124cc63baa9757d6252a591154526dc8607 --- graphics/gdal/Makefile | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/graphics/gdal/Makefile b/graphics/gdal/Makefile index be2fc32c1ff2..6f01e1700a83 100644 --- a/graphics/gdal/Makefile +++ b/graphics/gdal/Makefile @@ -24,19 +24,6 @@ LIB_DEPENDS= libgeotiff.so:graphics/libgeotiff \ USES= cmake compiler:c++17-lang cpe iconv jpeg localbase pkgconfig ssl tar:xz -# Clean up bundled libraries -EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/alg/internal_libqhull \ - --exclude ${DISTNAME}/frmts/gif/giflib \ - --exclude ${DISTNAME}/frmts/gtiff/libgeotiff \ - --exclude ${DISTNAME}/frmts/gtiff/libtiff \ - --exclude ${DISTNAME}/frmts/jpeg/libjpeg \ - --exclude ${DISTNAME}/frmts/jpeg/libjpeg12 \ - --exclude ${DISTNAME}/frmts/png/libpng \ - --exclude ${DISTNAME}/frmts/zlib \ - --exclude ${DISTNAME}/ogr/ogrsf_frmts/geojson/libjson \ - --exclude ${DISTNAME}/third_party/LercLib \ - --no-same-owner --no-same-permissions - CMAKE_OFF= BUILD_CSHARP_BINDINGS \ BUILD_DOCS \ BUILD_JAVA_BINDINGS \ @@ -219,6 +206,33 @@ XERCES_LIB_DEPENDS= libxerces-c.so:textproc/xerces-c3 ZSTD_CMAKE_BOOL= GDAL_USE_ZSTD ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd +# Clean up bundled libraries +.if !defined(MAINTAINER_MODE) +EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/alg/internal_libqhull \ + --exclude ${DISTNAME}/frmts/gif/giflib \ + --exclude ${DISTNAME}/frmts/gtiff/libgeotiff \ + --exclude ${DISTNAME}/frmts/gtiff/libtiff \ + --exclude ${DISTNAME}/frmts/jpeg/libjpeg \ + --exclude ${DISTNAME}/frmts/jpeg/libjpeg12 \ + --exclude ${DISTNAME}/frmts/png/libpng \ + --exclude ${DISTNAME}/frmts/zlib \ + --exclude ${DISTNAME}/ogr/ogrsf_frmts/geojson/libjson \ + --exclude ${DISTNAME}/third_party/LercLib \ + --no-same-owner --no-same-permissions +.else +post-patch: + @${RM} -r ${WRKSRC}/alg/internal_libqhull/ + @${RM} -r ${WRKSRC}/frmts/gif/giflib/ + @${RM} -r ${WRKSRC}/frmts/gtiff/libgeotiff/ + @${RM} -r ${WRKSRC}/frmts/gtiff/libtiff/ + @${RM} -r ${WRKSRC}/frmts/jpeg/libjpeg/ + @${RM} -r ${WRKSRC}/frmts/jpeg/libjpeg12/ + @${RM} -r ${WRKSRC}/frmts/png/libpng/ + @${RM} -r ${WRKSRC}/frmts/zlib/ + @${RM} -r ${WRKSRC}/ogr/ogrsf_frmts/geojson/libjson/ + @${RM} -r ${WRKSRC}/third_party/LercLib/ +.endif + post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d ${INSTALL_DATA} ${WRKSRC}/scripts/gdal-bash-completion.sh ${STAGEDIR}${PREFIX}/etc/bash_completion.d