Skip to content

Commit

Permalink
graphics/openjpeg: Convert post-patch to EXTRACT_AFTER_ARGS
Browse files Browse the repository at this point in the history
Instead of extracted files to later discard them just skip extracting

PR:		278777
Approved by:	portmgr (maintainer timeout, 2+ weeks)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed May 20, 2024
1 parent 20e8b42 commit d780766
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions graphics/openjpeg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ LIB_DEPENDS= liblcms2.so:graphics/lcms2 \

USES= cmake cpe localbase:ldflags jpeg pathfix pkgconfig

# Clean up bundled libraries
EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/astyle \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/include \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/liblcms2 \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/libpng \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/libtiff \
--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/thirdparty/libz \
--no-same-owner --no-same-permissions

CMAKE_OFF= BUILD_DOC \
BUILD_JAVA \
BUILD_JPIP \
Expand All @@ -40,13 +49,4 @@ USE_GITHUB= yes

CPE_VENDOR= uclouvain

post-patch:
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/thirdparty/astyle/
@${RM} -r ${WRKSRC}/thirdparty/include/
@${RM} -r ${WRKSRC}/thirdparty/liblcms2/
@${RM} -r ${WRKSRC}/thirdparty/libpng/
@${RM} -r ${WRKSRC}/thirdparty/libtiff/
@${RM} -r ${WRKSRC}/thirdparty/libz/

.include <bsd.port.mk>

0 comments on commit d780766

Please sign in to comment.