Skip to content

Commit

Permalink
graphics/gdal: Convert post-patch to EXTRACT_AFTER_ARGS
Browse files Browse the repository at this point in the history
Skip extracting unused dependencies to save I/O

PR:		278756
Approved by:	portmgr (maintainer timeout, 2+ weeks)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed May 20, 2024
1 parent b5e40b0 commit 45e7312
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions graphics/gdal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 45e7312

Please sign in to comment.