Skip to content

Commit

Permalink
graphics/podofo: Convert post-patch to EXTRACT_AFTER_ARGS
Browse files Browse the repository at this point in the history
Reduce I/O by not extracting unneeded dependencies

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

Please sign in to comment.