diff --git a/x11-toolkits/kf5-kirigami2/Makefile b/x11-toolkits/kf5-kirigami2/Makefile index bc0716d2638a..889d062a753a 100644 --- a/x11-toolkits/kf5-kirigami2/Makefile +++ b/x11-toolkits/kf5-kirigami2/Makefile @@ -1,23 +1,28 @@ PORTNAME= kirigami2 DISTVERSION= ${KDE_FRAMEWORKS_VERSION} CATEGORIES= x11-toolkits kde kde-frameworks MAINTAINER= kde@FreeBSD.org COMMENT= QtQuick based components set -USES= cmake compiler:c++11-lib gettext kde:5 qt:5 tar:xz +USES= cmake gettext kde:5 qt:5 tar:xz +.if !exists(/usr/include/omp.h) +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++11-lib +.endif USE_KDE= kdeclarative \ ecm:build USE_QT= core concurrent dbus declarative graphicaleffects gui \ linguisttools network quickcontrols2 svg widgets \ buildtools:build qmake:build testlib:build .include .if ${OSVERSION} < 1300016 # src/imagecolors.cpp:317:9: error: statement after '#pragma omp parallel for' # must be a for loop CFLAGS+= -fopenmp-version=50 .endif .include