git: 45e73124cc63 - main - graphics/gdal: Convert post-patch to EXTRACT_AFTER_ARGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 May 2024 21:54:07 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=45e73124cc63baa9757d6252a591154526dc8607 commit 45e73124cc63baa9757d6252a591154526dc8607 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2024-05-20 21:40:30 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2024-05-20 21:53:51 +0000 graphics/gdal: Convert post-patch to EXTRACT_AFTER_ARGS Skip extracting unused dependencies to save I/O PR: 278756 Approved by: portmgr (maintainer timeout, 2+ weeks) --- graphics/gdal/Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/graphics/gdal/Makefile b/graphics/gdal/Makefile index 17a34d964c7f..be2fc32c1ff2 100644 --- a/graphics/gdal/Makefile +++ b/graphics/gdal/Makefile @@ -24,6 +24,19 @@ 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 \ @@ -206,19 +219,6 @@ XERCES_LIB_DEPENDS= libxerces-c.so:textproc/xerces-c3 ZSTD_CMAKE_BOOL= GDAL_USE_ZSTD ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd -post-patch: -# Clean up bundled libraries - @${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/ - post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d ${INSTALL_DATA} ${WRKSRC}/scripts/gdal-bash-completion.sh ${STAGEDIR}${PREFIX}/etc/bash_completion.d