git: da98a63b3db9 - main - graphics/podofo: Adjust 20e8b42e2b7388c97514575ee7ccc9f3026f481b
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 May 2024 10:22:45 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=da98a63b3db9a1c1e40cf0e3db429c94d97c4417 commit da98a63b3db9a1c1e40cf0e3db429c94d97c4417 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-28 09:59:52 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-28 10:21:25 +0000 graphics/podofo: Adjust 20e8b42e2b7388c97514575ee7ccc9f3026f481b --- graphics/podofo/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/graphics/podofo/Makefile b/graphics/podofo/Makefile index 7bbf6016aff7..e10c00e81021 100644 --- a/graphics/podofo/Makefile +++ b/graphics/podofo/Makefile @@ -22,13 +22,6 @@ 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} \ @@ -53,4 +46,19 @@ PNG_LIB_DEPENDS= libpng.so:graphics/png TIFF_CMAKE_BOOL= WANT_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff +# Clean up bundled libraries +.if !defined(MAINTAINER_MODE) +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 +.else +post-patch: + @${RM} ${WRKSRC}/3rdparty/fast_float.h + @${RM} -r ${WRKSRC}/3rdparty/date/ + @${RM} -r ${WRKSRC}/3rdparty/fmt/ + @${RM} -r ${WRKSRC}/3rdparty/utf8cpp/ +.endif + .include <bsd.port.mk>