summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/qt5-qttools/Makefile14
-rw-r--r--x11/qt5-qttools/PLIST4
2 files changed, 13 insertions, 5 deletions
diff --git a/x11/qt5-qttools/Makefile b/x11/qt5-qttools/Makefile
index 09cfe086efc..32c4b3067c1 100644
--- a/x11/qt5-qttools/Makefile
+++ b/x11/qt5-qttools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2018/12/18 09:57:19 adam Exp $
+# $NetBSD: Makefile,v 1.49 2019/01/26 23:20:41 tnn Exp $
DISTNAME= qttools-everywhere-src-${QTVERSION}
PKGNAME= qt5-qttools-${QTVERSION}
@@ -6,13 +6,22 @@ COMMENT= Qt5 tools
DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
-MAKE_ENV+= LLVM_INSTALL_DIR=${BUILDLINK_PREFIX.clang}
MAKE_ENV+= QTDIR=${QTDIR}
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= lib/pkgconfig
+PKG_SUPPORTED_OPTIONS+= llvm
+PKG_SUGGESTED_OPTIONS+= llvm
+PLIST_VARS+= llvm
+
.include "../../x11/qt5-qtbase/Makefile.common"
+.if !empty(PKG_OPTIONS:Mllvm)
+PLIST.llvm= yes
+MAKE_ENV+= LLVM_INSTALL_DIR=${BUILDLINK_PREFIX.clang}
+.include "../../lang/clang/buildlink3.mk"
+.endif
+
QTPKGCONFIGPC= Qt5Designer.pc Qt5Help.pc Qt5UiTools.pc
post-install:
@@ -21,7 +30,6 @@ post-install:
ln -f -s ${QTPREFIX}/lib/pkgconfig/${i} ${i}
.endfor
-.include "../../lang/clang/buildlink3.mk"
.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
.include "../../x11/qt5-qtlocation/buildlink3.mk"
.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
diff --git a/x11/qt5-qttools/PLIST b/x11/qt5-qttools/PLIST
index f9639d66f57..27573baaa05 100644
--- a/x11/qt5-qttools/PLIST
+++ b/x11/qt5-qttools/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2018/12/18 09:57:19 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2019/01/26 23:20:41 tnn Exp $
lib/pkgconfig/Qt5Designer.pc
lib/pkgconfig/Qt5Help.pc
lib/pkgconfig/Qt5UiTools.pc
@@ -17,7 +17,7 @@ qt5/bin/pixeltool
qt5/bin/qdbus
qt5/bin/qdbusviewer
qt5/bin/qdistancefieldgenerator
-qt5/bin/qdoc
+${PLIST.llvm}qt5/bin/qdoc
qt5/bin/qhelpgenerator
qt5/bin/qtattributionsscanner
qt5/bin/qtdiag