diff options
Diffstat (limited to 'print/hplip/Makefile')
-rw-r--r-- | print/hplip/Makefile | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/print/hplip/Makefile b/print/hplip/Makefile index 0238a6a5f8d4..a5b0db6ca80c 100644 --- a/print/hplip/Makefile +++ b/print/hplip/Makefile @@ -99,17 +99,11 @@ SCAN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow SCAN_CONFIGURE_ENABLE= scan-build XSANE_DESC= Install XSane for scanning (requires SCAN) +XSANE_IMPLIES= SCAN +XSANE_RUN_DEPENDS= xsane:${PORTSDIR}/graphics/xsane DOCS_CONFIGURE_ENABLE= doc-build -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MSCAN} -. if ${PORT_OPTIONS:MXSANE} -RUN_DEPENDS+= xsane:${PORTSDIR}/graphics/xsane -. endif -.endif - post-patch: ${REINPLACE_CMD} -e 's|-ldld||g; s|-ldl||g' \ -e 's,-lusb-1.0,-lusb,g' \ @@ -139,20 +133,20 @@ post-patch: -e 's,^#!/usr/bin/python,#!${PYTHON_CMD},' \ -e 's,^#!/usr/bin/env python,#!${PYTHON_CMD},' \ -e 's,^#!/bin/env python,#!${PYTHON_CMD},' -.if !${PORT_OPTIONS:MDOCS} + +post-patch-DOCS-off: ${REINPLACE_CMD} -e '/[[:space:]]install-docDATA/ s|install-docDATA||' \ ${WRKSRC}/Makefile.in -.endif post-install: -.if ${PORT_OPTIONS:MQT} - ${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/autostart - ${INSTALL_DATA} ${WRKSRC}/hplip-systray.desktop ${STAGEDIR}${PREFIX}/etc/xdg/autostart/hplip-systray.desktop -.endif ${MKDIR} ${STAGEDIR}${PREFIX}/etc/hp ${INSTALL_DATA} ${WRKSRC}/hplip.conf ${STAGEDIR}${PREFIX}/etc/hp/hplip.conf.sample ${LN} -sf ${LOCALBASE}/bin/foomatic-rip ${STAGEDIR}${PREFIX}/libexec/cups/filter/foomatic-rip-hplip ${MKDIR} ${STAGEDIR}${PREFIX}/share/cups/model ${LN} -sf ${LOCALBASE}/share/ppd/HP ${STAGEDIR}${PREFIX}/share/cups/model/hplip +post-install-QT-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/autostart + ${INSTALL_DATA} ${WRKSRC}/hplip-systray.desktop ${STAGEDIR}${PREFIX}/etc/xdg/autostart/hplip-systray.desktop + .include <bsd.port.mk> |