Skip to content
Snippets Groups Projects
Commit 20e8b42e authored by Daniel Engberg's avatar Daniel Engberg
Browse files

graphics/podofo: Convert post-patch to EXTRACT_AFTER_ARGS

Reduce I/O by not extracting unneeded dependencies

PR:		278776
Approved by:	portmgr (maintainer timeout, 2+ weeks)
parent 45e73124
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,13 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
USES= cmake compiler:c++17-lang cpe gnome localbase:ldflags pkgconfig ssl
USE_GNOME= libxml2
# Clean up bundled libraries
EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/3rdparty/fast_float.h \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/3rdparty/date \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/3rdparty/fmt \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/3rdparty/utf8cpp \
--no-same-owner --no-same-permissions
CFLAGS+= -I${LOCALBASE}/include/fast_float
CMAKE_ARGS= -DFONTCONFIG_LIBRARIES=${LOCALBASE}/lib/libfontconfig.so \
-DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \
......@@ -46,11 +53,4 @@ PNG_LIB_DEPENDS= libpng.so:graphics/png
TIFF_CMAKE_BOOL= WANT_TIFF
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
post-patch:
# Clean up bundled libraries
@${RM} ${WRKSRC}/3rdparty/fast_float.h
@${RM} -r ${WRKSRC}/3rdparty/date/
@${RM} -r ${WRKSRC}/3rdparty/fmt/
@${RM} -r ${WRKSRC}/3rdparty/utf8cpp/
.include <bsd.port.mk>
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