1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

graphics/podofo: Adjust 20e8b42e2b

This commit is contained in:
Po-Chuan Hsieh 2024-05-28 17:59:52 +08:00
parent f3d30e7cfe
commit da98a63b3d
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -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>