2020-05-22 12:55:42 +02:00
|
|
|
# $NetBSD: Makefile,v 1.90 2020/05/22 10:56:34 adam Exp $
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
2020-01-04 05:24:12 +01:00
|
|
|
DISTNAME= hplip-3.19.12
|
2020-05-22 12:55:42 +02:00
|
|
|
PKGREVISION= 5
|
2015-12-07 12:02:26 +01:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/}
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
2019-03-24 08:44:55 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2015-12-07 12:02:26 +01:00
|
|
|
HOMEPAGE= http://hplipopensource.com/
|
|
|
|
COMMENT= HP Linux Imaging and Printing
|
|
|
|
LICENSE= gnu-gpl-v2 AND mit AND modified-bsd
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
CONFLICTS+= hpijs-[0-9]*
|
|
|
|
|
2016-03-23 12:51:39 +01:00
|
|
|
DEPENDS+= wget-[0-9]*:../../net/wget
|
|
|
|
|
2019-11-04 20:57:58 +01:00
|
|
|
FILES_SUBST+= CUPS_USER=${CUPS_USER}
|
|
|
|
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
2019-11-04 20:57:58 +01:00
|
|
|
PKG_GROUPS_VARS+= CUPS_GROUP
|
|
|
|
PKG_USERS_VARS+= CUPS_USER
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
2019-11-04 20:57:58 +01:00
|
|
|
BUILD_DEFS+= CUPS_USER CUPS_GROUP VARBASE
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
2013-06-17 01:25:01 +02:00
|
|
|
USE_LANGUAGES= c c++
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
USE_TOOLS+= aclocal autoconf automake gmake pkg-config
|
|
|
|
USE_TOOLS+= perl:run
|
2015-12-07 12:02:26 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
|
|
CONFIGURE_ARGS+= --with-cupsbackenddir=${PREFIX}/libexec/cups/backend
|
|
|
|
CONFIGURE_ARGS+= --with-cupsfilterdir=${PREFIX}/libexec/cups/filter
|
|
|
|
CONFIGURE_ARGS+= --with-hpppddir=${PREFIX}/share/hplip/ppd/HP
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-network-build
|
|
|
|
CONFIGURE_ARGS+= --disable-pp-build
|
|
|
|
CONFIGURE_ARGS+= --enable-hpcups-install
|
|
|
|
CONFIGURE_ARGS+= --enable-cups-drv-install
|
|
|
|
CONFIGURE_ARGS+= --enable-cups-ppd-install
|
2016-11-30 19:00:08 +01:00
|
|
|
# deprecated options
|
|
|
|
CONFIGURE_ARGS+= --enable-hpijs-install
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-foomatic-drv-install
|
|
|
|
CONFIGURE_ARGS+= --enable-foomatic-ppd-install
|
|
|
|
CONFIGURE_ARGS+= --enable-foomatic-rip-hplip-install
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
EGFILES= hp/hplip.conf
|
|
|
|
|
|
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS}
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
|
|
|
|
INSTALL_MAKE_FLAGS+= localstatedir=${EGDIR}
|
|
|
|
INSTALL_MAKE_FLAGS+= systraydir=${EGDIR}/xdg/autostart
|
|
|
|
INSTALL_MAKE_FLAGS+= mimedir=${EGDIR}/cups
|
|
|
|
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/hp
|
|
|
|
OWN_DIRS+= ${VARBASE}/lib/hp
|
|
|
|
OWN_DIRS+= ${PREFIX}/share/examples/hplip/log/hp
|
|
|
|
OWN_DIRS_PERMS+= ${PREFIX}/share/examples/hplip/log/hp ${CUPS_USER} ${CUPS_GROUP} 0774
|
|
|
|
|
|
|
|
PLIST_SRC= PLIST.base
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
.for file in ${EGFILES}
|
|
|
|
CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
|
|
|
|
.endfor
|
|
|
|
CONF_FILES+=
|
|
|
|
|
|
|
|
REPLACE_PYTHON= *.py */*.py */*/*.py
|
|
|
|
REPLACE_PYTHON+= fax/filters/pstotiff
|
2013-01-27 06:25:02 +01:00
|
|
|
REPLACE_PYTHON+= prnt/filters/hpps
|
2016-04-27 00:51:30 +02:00
|
|
|
REPLACE_PERL= prnt/hpijs/foomatic-rip-hplip
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-python
|
|
|
|
SUBST_STAGE.fix-python= post-configure
|
|
|
|
SUBST_MESSAGE.fix-python= Fixing python invocations in Python files.
|
2020-05-16 18:59:24 +02:00
|
|
|
SUBST_FILES.fix-python= check.py setup.py
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
SUBST_FILES.fix-python+= base/utils.py base/pkit.py
|
|
|
|
SUBST_FILES.fix-python+= installer/core_install.py
|
|
|
|
SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py
|
|
|
|
SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-0
|
|
|
|
SUBST_STAGE.fix-paths-0= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in.
|
|
|
|
SUBST_FILES.fix-paths-0= hplip.conf.in
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-1
|
|
|
|
SUBST_STAGE.fix-paths-1= post-configure
|
2015-08-28 01:53:24 +02:00
|
|
|
SUBST_MESSAGE.fix-paths-1= Fixing paths in Python installer files.
|
|
|
|
SUBST_FILES.fix-paths-1= installer/core_install.py
|
|
|
|
SUBST_FILES.fix-paths-1+= installer/dcheck.py
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g'
|
|
|
|
SUBST_SED.fix-paths-1+= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g'
|
|
|
|
SUBST_SED.fix-paths-1+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g'
|
|
|
|
SUBST_SED.fix-paths-1+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g'
|
|
|
|
SUBST_SED.fix-paths-1+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-2
|
|
|
|
SUBST_STAGE.fix-paths-2= post-configure
|
2015-08-28 01:53:24 +02:00
|
|
|
SUBST_MESSAGE.fix-paths-2= Fixing /etc and /var paths in Python and C++ files.
|
|
|
|
SUBST_FILES.fix-paths-2= check.py base/codes.py base/g.py base/utils.py
|
2020-05-16 18:59:24 +02:00
|
|
|
SUBST_FILES.fix-paths-2+= base/queues.py installer/core_install.py
|
2015-08-28 01:53:24 +02:00
|
|
|
SUBST_FILES.fix-paths-2+= fax/backend/hpfax.py prnt/cups.py
|
|
|
|
SUBST_FILES.fix-paths-2+= ui/devmgr4.py ui4/devmgr5.py
|
|
|
|
SUBST_FILES.fix-paths-2+= prnt/filters/hpps
|
|
|
|
SUBST_FILES.fix-paths-2+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp
|
|
|
|
SUBST_FILES.fix-paths-2+= prnt/hpijs/hpijs.cpp
|
2020-05-16 18:59:24 +02:00
|
|
|
SUBST_FILES.fix-paths-2+= prnt/hpps/hppsfilter.c # /etc/cups/cupsd.conf
|
|
|
|
SUBST_FILES.fix-paths-2+= common/utils.c # /etc/cups/cupsd.conf
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-2= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g'
|
|
|
|
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g'
|
|
|
|
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g'
|
|
|
|
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g'
|
|
|
|
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g'
|
|
|
|
SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-3
|
|
|
|
SUBST_STAGE.fix-paths-3= post-configure
|
|
|
|
SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py.
|
|
|
|
SUBST_FILES.fix-paths-3= base/pkit.py
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-4
|
|
|
|
SUBST_STAGE.fix-paths-4= post-configure
|
|
|
|
SUBST_MESSAGE.fix-paths-4= Fixing default PPD search path in base/g.py and prnt/cups.py.
|
|
|
|
SUBST_FILES.fix-paths-4= base/g.py prnt/cups.py
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-4= -e '\,ppd_search_path =, { s,/usr/\([a-z]*\);,/usr/\1;${PREFIX}/\1;,g ; }'
|
|
|
|
SUBST_SED.fix-paths-4+= -e 's,\([ '\''"=]\)/usr/share/ppd,\1${PREFIX}/share/ppd,g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-5
|
|
|
|
SUBST_STAGE.fix-paths-5= post-configure
|
|
|
|
SUBST_MESSAGE.fix-paths-5= Fixing paths in prnt/hpijs/foomatic-rip-hplip.
|
|
|
|
SUBST_FILES.fix-paths-5= prnt/hpijs/foomatic-rip-hplip
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-5= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/etc/foomatic,\1${PKG_SYSCONFDIR}/foomatic,g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/var/spool,\1${VARBASE}/spool,g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e 's,prefix = "/usr",prefix = "${PREFIX}",g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/bin:\),\1${PREFIX}/bin:,g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/lib/cups/filter:\),\1${PREFIX}/libexec/cups/filter:,g'
|
|
|
|
SUBST_SED.fix-paths-5+= -e '\,} elsif (-r "/usr/share/ppr, { N ; p ; s,"/usr,"${PREFIX},g ; }'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths-6
|
|
|
|
SUBST_STAGE.fix-paths-6= post-configure
|
|
|
|
SUBST_MESSAGE.fix-paths-6= Fixing paths in fax/filters/pstotiff.
|
|
|
|
SUBST_FILES.fix-paths-6= fax/filters/pstotiff
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-paths-6= -e 's,"-I/usr/share/cups/fonts","-I${PREFIX}/share/cups/fonts",g'
|
|
|
|
SUBST_SED.fix-paths-6+= -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
|
|
|
|
# NetBSD has strnlen(3) since 5.99.12
|
|
|
|
.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M5.99.*) && empty(OS_VERSION:M[6-9].*)
|
|
|
|
SUBST_CLASSES+= fix-strnlen
|
|
|
|
SUBST_STAGE.fix-strnlen= post-configure
|
|
|
|
SUBST_MESSAGE.fix-strnlen= Replacing strnlen() with strlen() in two C++ files.
|
|
|
|
SUBST_FILES.fix-strnlen= prnt/hpijs/context2.cpp prnt/hpijs/ljzjscolor.cpp
|
2019-11-04 20:57:58 +01:00
|
|
|
SUBST_SED.fix-strnlen= -e 's/\([ (]\)strnlen(\([^,]*\), DevIDBuffSize)/\1strlen(\2)/g'
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && aclocal && automake --add-missing --foreign && autoconf
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= share/cups/model
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CHMOD} a-x ${DESTDIR}${PREFIX}/share/hplip/__init__.py
|
|
|
|
${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/hplip
|
|
|
|
${LN} -s ../../../share/hplip/ppd ${DESTDIR}${PREFIX}/share/cups/model/hplip-ppds
|
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
|
|
.include "../../net/net-snmp/buildlink3.mk"
|
2017-11-12 16:36:57 +01:00
|
|
|
.include "../../print/cups-base/buildlink3.mk"
|
2013-04-25 05:53:11 +02:00
|
|
|
.include "../../print/ghostscript/buildlink3.mk"
|
2012-06-23 06:50:06 +02:00
|
|
|
.include "../../devel/libusb1/buildlink3.mk"
|
Imported hplip from pkgsrc-wip.
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
solution for printing, scanning, and faxing with HP inkjet and laser
based printers in Linux.
The HPLIP project provides printing support for 1,980 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. See [1]
for more information on supported printers.
[1] http://hplipopensource.com/hplip-web/supported_devices/index.html
2012-05-18 05:03:20 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|