diff options
author | makc <makc@FreeBSD.org> | 2015-08-25 18:03:08 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2015-08-25 18:03:08 +0800 |
commit | 9e5654a5c0aea99f1b9b5daff162b08b49242b7b (patch) | |
tree | 542278ecb4449b3df78960fd5f6cf7d8be50914f /print/hplip | |
parent | 76858881403322c6f97767f7d23afe1a13ec5546 (diff) | |
download | freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.tar.gz freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.tar.zst freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.zip |
Convert my ports to new options helpers
Diffstat (limited to 'print/hplip')
-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> |