| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.88 2020/03/10 22:10:52 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.89 2020/05/16 16:59:24 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= hplip-3.19.12 | | 3 | DISTNAME= hplip-3.19.12 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= print | | 5 | CATEGORIES= print |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://hplipopensource.com/ | | 9 | HOMEPAGE= http://hplipopensource.com/ |
10 | COMMENT= HP Linux Imaging and Printing | | 10 | COMMENT= HP Linux Imaging and Printing |
11 | LICENSE= gnu-gpl-v2 AND mit AND modified-bsd | | 11 | LICENSE= gnu-gpl-v2 AND mit AND modified-bsd |
12 | | | 12 | |
13 | CONFLICTS+= hpijs-[0-9]* | | 13 | CONFLICTS+= hpijs-[0-9]* |
14 | | | 14 | |
15 | DEPENDS+= wget-[0-9]*:../../net/wget | | 15 | DEPENDS+= wget-[0-9]*:../../net/wget |
16 | | | 16 | |
17 | FILES_SUBST+= CUPS_USER=${CUPS_USER} | | 17 | FILES_SUBST+= CUPS_USER=${CUPS_USER} |
| @@ -66,27 +66,27 @@ CONF_FILES+= ${EGDIR}/${file} ${PKG_SYS | | | @@ -66,27 +66,27 @@ CONF_FILES+= ${EGDIR}/${file} ${PKG_SYS |
66 | .endfor | | 66 | .endfor |
67 | CONF_FILES+= | | 67 | CONF_FILES+= |
68 | | | 68 | |
69 | REPLACE_PYTHON= *.py */*.py */*/*.py | | 69 | REPLACE_PYTHON= *.py */*.py */*/*.py |
70 | REPLACE_PYTHON+= fax/filters/pstotiff | | 70 | REPLACE_PYTHON+= fax/filters/pstotiff |
71 | REPLACE_PYTHON+= prnt/filters/hpps | | 71 | REPLACE_PYTHON+= prnt/filters/hpps |
72 | REPLACE_PERL= prnt/hpijs/foomatic-rip-hplip | | 72 | REPLACE_PERL= prnt/hpijs/foomatic-rip-hplip |
73 | | | 73 | |
74 | PY_PATCHPLIST= yes | | 74 | PY_PATCHPLIST= yes |
75 | | | 75 | |
76 | SUBST_CLASSES+= fix-python | | 76 | SUBST_CLASSES+= fix-python |
77 | SUBST_STAGE.fix-python= post-configure | | 77 | SUBST_STAGE.fix-python= post-configure |
78 | SUBST_MESSAGE.fix-python= Fixing python invocations in Python files. | | 78 | SUBST_MESSAGE.fix-python= Fixing python invocations in Python files. |
79 | SUBST_FILES.fix-python= check.py scan.py setup.py | | 79 | SUBST_FILES.fix-python= check.py setup.py |
80 | SUBST_FILES.fix-python+= base/utils.py base/pkit.py | | 80 | SUBST_FILES.fix-python+= base/utils.py base/pkit.py |
81 | SUBST_FILES.fix-python+= installer/core_install.py | | 81 | SUBST_FILES.fix-python+= installer/core_install.py |
82 | SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py | | 82 | SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py |
83 | SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py | | 83 | SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py |
84 | SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g' | | 84 | SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g' |
85 | | | 85 | |
86 | SUBST_CLASSES+= fix-paths-0 | | 86 | SUBST_CLASSES+= fix-paths-0 |
87 | SUBST_STAGE.fix-paths-0= pre-configure | | 87 | SUBST_STAGE.fix-paths-0= pre-configure |
88 | SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in. | | 88 | SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in. |
89 | SUBST_FILES.fix-paths-0= hplip.conf.in | | 89 | SUBST_FILES.fix-paths-0= hplip.conf.in |
90 | SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g' | | 90 | SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g' |
91 | | | 91 | |
92 | SUBST_CLASSES+= fix-paths-1 | | 92 | SUBST_CLASSES+= fix-paths-1 |
| @@ -94,34 +94,34 @@ SUBST_STAGE.fix-paths-1= post-configure | | | @@ -94,34 +94,34 @@ SUBST_STAGE.fix-paths-1= post-configure |
94 | SUBST_MESSAGE.fix-paths-1= Fixing paths in Python installer files. | | 94 | SUBST_MESSAGE.fix-paths-1= Fixing paths in Python installer files. |
95 | SUBST_FILES.fix-paths-1= installer/core_install.py | | 95 | SUBST_FILES.fix-paths-1= installer/core_install.py |
96 | SUBST_FILES.fix-paths-1+= installer/dcheck.py | | 96 | SUBST_FILES.fix-paths-1+= installer/dcheck.py |
97 | SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' | | 97 | SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' |
98 | SUBST_SED.fix-paths-1+= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g' | | 98 | SUBST_SED.fix-paths-1+= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g' |
99 | SUBST_SED.fix-paths-1+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g' | | 99 | SUBST_SED.fix-paths-1+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g' |
100 | SUBST_SED.fix-paths-1+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g' | | 100 | SUBST_SED.fix-paths-1+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g' |
101 | SUBST_SED.fix-paths-1+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g' | | 101 | SUBST_SED.fix-paths-1+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g' |
102 | | | 102 | |
103 | SUBST_CLASSES+= fix-paths-2 | | 103 | SUBST_CLASSES+= fix-paths-2 |
104 | SUBST_STAGE.fix-paths-2= post-configure | | 104 | SUBST_STAGE.fix-paths-2= post-configure |
105 | SUBST_MESSAGE.fix-paths-2= Fixing /etc and /var paths in Python and C++ files. | | 105 | SUBST_MESSAGE.fix-paths-2= Fixing /etc and /var paths in Python and C++ files. |
106 | SUBST_FILES.fix-paths-2= check.py base/codes.py base/g.py base/utils.py | | 106 | SUBST_FILES.fix-paths-2= check.py base/codes.py base/g.py base/utils.py |
107 | SUBST_FILES.fix-paths-2+= base/codes.py base/g.py base/queues.py base/utils.py | | 107 | SUBST_FILES.fix-paths-2+= base/queues.py installer/core_install.py |
108 | SUBST_FILES.fix-paths-2+= installer/core_install.py | | | |
109 | SUBST_FILES.fix-paths-2+= fax/backend/hpfax.py prnt/cups.py | | 108 | SUBST_FILES.fix-paths-2+= fax/backend/hpfax.py prnt/cups.py |
110 | SUBST_FILES.fix-paths-2+= ui/devmgr4.py ui4/devmgr5.py | | 109 | SUBST_FILES.fix-paths-2+= ui/devmgr4.py ui4/devmgr5.py |
111 | SUBST_FILES.fix-paths-2+= prnt/filters/hpps | | 110 | SUBST_FILES.fix-paths-2+= prnt/filters/hpps |
112 | SUBST_FILES.fix-paths-2+= prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/Utils.cpp | | | |
113 | SUBST_FILES.fix-paths-2+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp | | 111 | SUBST_FILES.fix-paths-2+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp |
114 | SUBST_FILES.fix-paths-2+= prnt/hpijs/hpijs.cpp | | 112 | SUBST_FILES.fix-paths-2+= prnt/hpijs/hpijs.cpp |
| | | 113 | SUBST_FILES.fix-paths-2+= prnt/hpps/hppsfilter.c # /etc/cups/cupsd.conf |
| | | 114 | SUBST_FILES.fix-paths-2+= common/utils.c # /etc/cups/cupsd.conf |
115 | SUBST_SED.fix-paths-2= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g' | | 115 | SUBST_SED.fix-paths-2= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g' |
116 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' | | 116 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' |
117 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g' | | 117 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g' |
118 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g' | | 118 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g' |
119 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g' | | 119 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g' |
120 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g' | | 120 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g' |
121 | | | 121 | |
122 | SUBST_CLASSES+= fix-paths-3 | | 122 | SUBST_CLASSES+= fix-paths-3 |
123 | SUBST_STAGE.fix-paths-3= post-configure | | 123 | SUBST_STAGE.fix-paths-3= post-configure |
124 | SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py. | | 124 | SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py. |
125 | SUBST_FILES.fix-paths-3= base/pkit.py | | 125 | SUBST_FILES.fix-paths-3= base/pkit.py |
126 | SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' | | 126 | SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' |
127 | | | 127 | |