deskutils/mindforger: fix build on non-aarch64 non-x86

This commit is contained in:
Piotr Kubaj
2021-12-25 14:41:49 +00:00
parent c62f40fb68
commit dc123a0b00

View File

@@ -11,14 +11,14 @@ LICENSE= GPLv2+
USES= qmake qt:5
USE_QT= buildtools_build core declarative gui location network \
printsupport webchannel webengine widgets
printsupport webchannel widgets
USE_GITHUB= yes
GH_ACCOUNT= dvorka
GH_PROJECT= cmark:cm
GH_TAGNAME= f06d944:cm
GH_SUBDIR= deps/cmark-gfm:cm
QMAKE_ARGS= CONFIG+="mfnocxx mfwebengine"
QMAKE_ARGS= CONFIG+="mfnocxx"
OPTIONS_DEFINE= CMARK
OPTIONS_DEFAULT= CMARK
@@ -27,6 +27,15 @@ CMARK_DESC= CommonMark support (Markdown -> HTML rendering)
CMARK_BUILD_DEPENDS= cmake:devel/cmake
CMARK_QMAKE_OFF= CONFIG+="mfnomd2html"
.include <bsd.port.options.mk>
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
USE_QT+= webengine
QMAKE_ARGS+= CONFIG+="mfwebengine"
.else
USE_QT+= webkit
.endif
pre-build-CMARK-on:
@cd ${WRKSRC_cm} && cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMARK_TESTS:BOOL=OFF -DCMARK_SHARED:BOOL=OFF \