2012-12-11 12:32:31 +00:00
|
|
|
# Created by: amistry@am-productions.biz
|
2006-05-05 08:35:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hplip
|
2017-12-24 07:10:45 +00:00
|
|
|
PORTVERSION= 3.17.11
|
2019-01-16 11:13:44 +00:00
|
|
|
PORTREVISION= 2
|
2006-05-05 08:35:30 +00:00
|
|
|
CATEGORIES= print
|
2009-08-22 00:35:32 +00:00
|
|
|
MASTER_SITES= SF
|
2006-05-05 08:35:30 +00:00
|
|
|
|
2016-10-22 06:08:34 +00:00
|
|
|
MAINTAINER= woodsb02@FreeBSD.org
|
2017-02-04 07:57:42 +00:00
|
|
|
COMMENT= Drivers and utilities for HP printers and All-in-One devices
|
2006-05-05 08:35:30 +00:00
|
|
|
|
2017-12-19 05:47:40 +00:00
|
|
|
LICENSE= GPLv2+ MIT BSD3CLAUSE
|
2016-09-24 10:26:42 +00:00
|
|
|
LICENSE_COMB= multi
|
2017-02-04 07:57:42 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2016-09-24 10:26:42 +00:00
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libcupsimage.so:print/cups \
|
|
|
|
libdbus-1.so:devel/dbus
|
2016-10-30 15:18:03 +00:00
|
|
|
RUN_DEPENDS= cups-filters>=0:print/cups-filters \
|
2018-05-22 13:15:13 +00:00
|
|
|
${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR}
|
2007-10-26 20:16:02 +00:00
|
|
|
|
2012-07-27 11:03:38 +00:00
|
|
|
CONFLICTS_INSTALL= hpijs-[0-9]*
|
2010-09-05 20:40:28 +00:00
|
|
|
|
2014-07-08 18:56:33 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2017-02-25 11:29:26 +00:00
|
|
|
USES= jpeg libtool pkgconfig python shebangfix
|
2013-01-23 13:41:23 +00:00
|
|
|
USE_GNOME= pygobject
|
2014-07-08 18:56:33 +00:00
|
|
|
USE_LDCONFIG= yes
|
2017-02-25 11:29:26 +00:00
|
|
|
SHEBANG_GLOB= *.py hpps pstotiff
|
2006-05-05 08:35:30 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2016-03-11 11:53:42 +00:00
|
|
|
CONFIGURE_ARGS= --with-cupsbackenddir=${PREFIX}/libexec/cups/backend \
|
2010-09-05 20:40:28 +00:00
|
|
|
--with-cupsfilterdir=${PREFIX}/libexec/cups/filter \
|
|
|
|
--with-icondir=${DESKTOPDIR} \
|
|
|
|
--with-systraydir=${PREFIX}/etc/xdg/autostart \
|
2016-03-11 11:53:42 +00:00
|
|
|
--with-mimedir=${PREFIX}/share/cups/mime \
|
2010-09-05 20:40:28 +00:00
|
|
|
--with-docdir=${DOCSDIR} \
|
2014-01-23 08:39:00 +00:00
|
|
|
--with-htmldir=${DOCSDIR} \
|
2016-10-30 14:20:07 +00:00
|
|
|
--with-drvdir=${PREFIX}/share/cups/drv
|
2010-09-05 20:40:28 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-07-08 18:56:33 +00:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2010-09-05 20:40:28 +00:00
|
|
|
|
2017-04-02 10:37:41 +00:00
|
|
|
OPTIONS_DEFINE= DOCS FAX SCAN SNMP X11 XSANE
|
2017-03-27 13:25:20 +00:00
|
|
|
OPTIONS_RADIO= GUI
|
|
|
|
OPTIONS_RADIO_GUI= QT4 QT5
|
2017-04-02 10:37:41 +00:00
|
|
|
OPTIONS_DEFAULT= QT5 SCAN SNMP X11
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
DOCS_CONFIGURE_ENABLE= doc-build
|
2012-07-27 11:03:38 +00:00
|
|
|
|
2016-10-30 15:18:03 +00:00
|
|
|
FAX_DESC= PC Send Fax support
|
2018-05-22 13:15:13 +00:00
|
|
|
FAX_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}reportlab>=0:print/py-reportlab@${PY_FLAVOR}
|
2014-01-07 10:39:41 +00:00
|
|
|
FAX_CONFIGURE_ENABLE= fax-build
|
2006-05-25 07:47:22 +00:00
|
|
|
|
2016-10-30 15:18:03 +00:00
|
|
|
SCAN_DESC= Scanning support
|
2016-04-01 14:16:16 +00:00
|
|
|
SCAN_LIB_DEPENDS= libsane.so:graphics/sane-backends
|
2018-05-22 13:15:13 +00:00
|
|
|
SCAN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
|
2014-01-07 10:39:41 +00:00
|
|
|
SCAN_CONFIGURE_ENABLE= scan-build
|
2010-05-17 11:51:26 +00:00
|
|
|
|
2017-04-02 10:37:41 +00:00
|
|
|
SNMP_DESC= Network/JetDirect support
|
|
|
|
SNMP_USES= ssl
|
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
|
|
|
SNMP_CONFIGURE_ENABLE= network-build
|
|
|
|
|
2017-03-27 13:25:20 +00:00
|
|
|
X11_DESC= Graphical User Interface (Qt)
|
|
|
|
X11_CONFIGURE_ENABLE= gui-build
|
|
|
|
|
2017-02-04 07:57:42 +00:00
|
|
|
XSANE_DESC= Install XSane for scanning (implies SCAN)
|
2016-10-30 15:18:03 +00:00
|
|
|
XSANE_IMPLIES= SCAN
|
2016-04-01 14:16:16 +00:00
|
|
|
XSANE_RUN_DEPENDS= xsane:graphics/xsane
|
2010-05-17 11:51:26 +00:00
|
|
|
|
2017-04-02 10:34:06 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MQT4} && ${PORT_OPTIONS:MX11}
|
2018-12-02 15:41:47 +00:00
|
|
|
DEPRECATED= Qt4 has been EOL since december 2015
|
|
|
|
EXPIRATION_DATE= 2019-03-15
|
|
|
|
|
2017-04-02 10:34:06 +00:00
|
|
|
USES+= pyqt:4
|
2017-05-16 14:32:38 +00:00
|
|
|
USE_PYQT= core_run dbussupport_run gui_run sip
|
2017-04-02 10:34:06 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-qt4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-qt4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MQT5} && ${PORT_OPTIONS:MX11}
|
|
|
|
USES+= pyqt:5
|
2017-05-16 14:32:38 +00:00
|
|
|
USE_PYQT= core_run dbussupport_run gui_run sip widgets_run
|
2017-04-02 10:34:06 +00:00
|
|
|
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
|
|
|
|
|
2006-05-05 08:35:30 +00:00
|
|
|
post-patch:
|
2017-02-25 11:29:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldld||g;' \
|
|
|
|
-e 's|-ldl||g' \
|
2015-02-10 12:17:36 +00:00
|
|
|
-e 's,-lusb-1.0,-lusb,g' \
|
|
|
|
-e 's,libusb-1.0/libusb.h,libusb.h,g' \
|
2007-10-26 20:16:02 +00:00
|
|
|
${WRKSRC}/configure \
|
2010-05-17 11:51:26 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2017-02-25 11:29:26 +00:00
|
|
|
@${REINPLACE_CMD} -e '/[[:space:]]install-dist_rulesDATA/ s,install-dist_rulesDATA,,' \
|
2013-07-13 17:50:03 +00:00
|
|
|
-e '/[[:space:]]install-dist_rulessystemDATA/ s,install-dist_rulessystemDATA,,' \
|
2010-09-05 20:40:28 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2017-02-25 11:29:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc/hp,${PREFIX}&,g' \
|
2010-09-05 20:40:28 +00:00
|
|
|
-e 's,/etc/cups,${LOCALBASE}&,g' \
|
|
|
|
-e 's,/etc/init.d,${LOCALBASE}/etc/rc.d,g' \
|
|
|
|
-e 's,/etc/sane.d,${LOCALBASE}&,g' \
|
|
|
|
-e 's,/usr/share,${LOCALBASE}/share,g' \
|
|
|
|
-e 's,/usr/include,${LOCALBASE}/include,g' \
|
2017-02-25 11:29:26 +00:00
|
|
|
${WRKSRC}/Makefile.in \
|
|
|
|
${WRKSRC}/base/codes.py \
|
|
|
|
${WRKSRC}/base/g.py \
|
|
|
|
${WRKSRC}/base/password.py \
|
|
|
|
${WRKSRC}/base/pkit.py \
|
|
|
|
${WRKSRC}/base/queues.py \
|
|
|
|
${WRKSRC}/base/services.py \
|
|
|
|
${WRKSRC}/base/utils.py \
|
|
|
|
${WRKSRC}/check.py \
|
|
|
|
${WRKSRC}/fax/backend/hpfax.py \
|
|
|
|
${WRKSRC}/fax/coverpages.py \
|
|
|
|
${WRKSRC}/fax/filters/pstotiff \
|
|
|
|
${WRKSRC}/hplip.list.in \
|
|
|
|
${WRKSRC}/installer/core_install.py \
|
|
|
|
${WRKSRC}/installer/dcheck.py \
|
|
|
|
${WRKSRC}/installer/pluginhandler.py \
|
|
|
|
${WRKSRC}/logcapture.py \
|
|
|
|
${WRKSRC}/prnt/cups.py \
|
|
|
|
${WRKSRC}/prnt/filters/hpps \
|
|
|
|
${WRKSRC}/prnt/hpcups/HPCupsFilter.cpp \
|
|
|
|
${WRKSRC}/prnt/hpijs/globals.cpp \
|
|
|
|
${WRKSRC}/prnt/hpijs/hpcupsfax.cpp \
|
|
|
|
${WRKSRC}/prnt/hpijs/hpijs.cpp \
|
|
|
|
${WRKSRC}/ui/devmgr4.py \
|
2017-09-22 08:21:51 +00:00
|
|
|
${WRKSRC}/ui4/devmgr5.py \
|
|
|
|
${WRKSRC}/ui5/devmgr5.py
|
2016-03-11 11:53:42 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/umask(0)/umask(0o022)/' \
|
|
|
|
-e 's/umask(0o111)/umask(0o133)/' \
|
|
|
|
${WRKSRC}/base/os_utils.py \
|
|
|
|
${WRKSRC}/base/validation.py \
|
|
|
|
${WRKSRC}/fax/backend/hpfax.py \
|
|
|
|
${WRKSRC}/hpdio.py \
|
|
|
|
${WRKSRC}/installer/pluginhandler.py
|
2015-08-25 10:03:08 +00:00
|
|
|
|
2010-05-17 11:51:26 +00:00
|
|
|
post-install:
|
2016-03-11 11:53:42 +00:00
|
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/hp/hplip.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/hp/hplip.conf.sample
|
2016-09-24 10:26:42 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/ui4/plugins
|
|
|
|
${MKDIR} ${STAGEDIR}/var/lib/hp
|
2017-02-04 07:57:42 +00:00
|
|
|
|
2016-09-24 10:26:42 +00:00
|
|
|
post-install-SCAN-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/sane.d/dll.d
|
2017-02-04 07:57:42 +00:00
|
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/sane.d/dll.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/sane.d/dll.d/hpaio
|
2015-08-25 10:03:08 +00:00
|
|
|
|
2010-05-17 11:51:26 +00:00
|
|
|
.include <bsd.port.mk>
|