Skip to content
Snippets Groups Projects
Verified Commit 64fe6a27 authored by sunpoet's avatar sunpoet
Browse files

graphics/gdal: Adjust 45e73124

parent 08a476f9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment