Date: Tue, 28 May 2024 10:22:43 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f3d30e7cfe7e - main - graphics/openjpeg: Adjust d780766fef98ca7b1fb21ea53357b0aefb433207 Message-ID: <202405281022.44SAMhdh028581@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3d30e7cfe7e7fdc2ed3312235c6207e400b51cd commit f3d30e7cfe7e7fdc2ed3312235c6207e400b51cd Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-28 09:59:50 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-28 10:21:25 +0000 graphics/openjpeg: Adjust d780766fef98ca7b1fb21ea53357b0aefb433207 --- graphics/openjpeg/Makefile | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/graphics/openjpeg/Makefile b/graphics/openjpeg/Makefile index d811361b5321..11a507db916e 100644 --- a/graphics/openjpeg/Makefile +++ b/graphics/openjpeg/Makefile @@ -18,15 +18,6 @@ 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 \ @@ -49,4 +40,23 @@ USE_GITHUB= yes CPE_VENDOR= uclouvain +# Clean up bundled libraries +.if !defined(MAINTAINER_MODE) +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 +.else +post-patch: + @${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/ +.endif + .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405281022.44SAMhdh028581>