aboutsummaryrefslogtreecommitdiff
path: root/print/hplip/Makefile
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2017-04-02 10:34:06 +0000
committerBen Woods <woodsb02@FreeBSD.org>2017-04-02 10:34:06 +0000
commit5e0d053d344d97b6eecb63f0f216e0d4b00818d7 (patch)
tree5edd5470fbc3dc8cdc0b547ac3b21a7d73815b4e /print/hplip/Makefile
parenta20188371152afb0c0e530aaa8aa73b8b8867b76 (diff)
downloadports-5e0d053d344d97b6eecb63f0f216e0d4b00818d7.tar.gz
ports-5e0d053d344d97b6eecb63f0f216e0d4b00818d7.zip
Notes
Diffstat (limited to 'print/hplip/Makefile')
-rw-r--r--print/hplip/Makefile32
1 files changed, 22 insertions, 10 deletions
diff --git a/print/hplip/Makefile b/print/hplip/Makefile
index 141b8875ebe1..11fdfec27545 100644
--- a/print/hplip/Makefile
+++ b/print/hplip/Makefile
@@ -62,22 +62,34 @@ SCAN_CONFIGURE_ENABLE= scan-build
X11_DESC= Graphical User Interface (Qt)
X11_CONFIGURE_ENABLE= gui-build
-QT4_USES= pyqt:4
-QT4_USE= PYQT=core_run,dbussupport_run,gui_run
-QT4_CONFIGURE_ENABLE= qt4
-QT4_IMPLIES= X11
-
-QT5_USES= pyqt:5
-QT5_USE= PYQT=core_run,dbussupport_run,gui_run,widgets_run
-QT5_CONFIGURE_ENABLE= qt5
-QT5_IMPLIES= X11
-
XSANE_DESC= Install XSane for scanning (implies SCAN)
XSANE_IMPLIES= SCAN
XSANE_RUN_DEPENDS= xsane:graphics/xsane
DOCS_CONFIGURE_ENABLE= doc-build
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MQT4} && ${PORT_OPTIONS:MX11}
+USES+= pyqt:4
+USE_PYQT= core_run dbussupport_run gui_run
+CONFIGURE_ARGS+= --enable-qt4
+.else
+CONFIGURE_ARGS+= --disable-qt4
+.endif
+
+.if ${PORT_OPTIONS:MQT5} && ${PORT_OPTIONS:MX11}
+USES+= pyqt:5
+USE_PYQT= core_run dbussupport_run gui_run widgets_run
+CONFIGURE_ARGS+= --enable-qt5
+.else
+CONFIGURE_ARGS+= --disable-qt5
+.endif
+
+.if ${PORT_OPTIONS:MX11} && ! ${PORT_OPTIONS:MQT4} && ! ${PORT_OPTIONS:MQT5}
+BROKEN= The X11 option requires one of the QT4 or QT5 options
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-ldld||g;' \
-e 's|-ldl||g' \