| @@ -1,185 +1,186 @@ | | | @@ -1,185 +1,186 @@ |
1 | # $NetBSD: Makefile,v 1.42 2015/06/14 21:50:53 schnoebe Exp $ | | 1 | # $NetBSD: Makefile,v 1.43 2015/06/17 10:21:02 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= hplip-3.15.6 | | 3 | DISTNAME= hplip-3.15.6 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= print | | 5 | CATEGORIES= print |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hplip/} |
6 | | | 7 | |
7 | MAINTAINER= schnoebe@NetBSD.org | | 8 | MAINTAINER= schnoebe@NetBSD.org |
8 | HOMEPAGE= http://hplipopensource.com/ | | 9 | HOMEPAGE= http://hplipopensource.com/ |
9 | COMMENT= HP Linux Imaging and Printing | | 10 | COMMENT= HP Linux Imaging and Printing |
10 | LICENSE= gnu-gpl-v2 AND mit AND modified-bsd | | 11 | LICENSE= gnu-gpl-v2 AND mit AND modified-bsd |
11 | | | 12 | |
12 | CONFLICTS+= hpijs-[0-9]* | | 13 | CONFLICTS+= hpijs-[0-9]* |
13 | | | 14 | |
14 | FILES_SUBST+= CUPS_USER=${CUPS_USER} | | 15 | FILES_SUBST+= CUPS_USER=${CUPS_USER} |
15 | FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP} | | 16 | FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP} |
16 | | | 17 | |
17 | PKG_GROUPS_VARS+= CUPS_GROUP | | 18 | PKG_GROUPS_VARS+= CUPS_GROUP |
18 | PKG_USERS_VARS+= CUPS_USER | | 19 | PKG_USERS_VARS+= CUPS_USER |
19 | | | 20 | |
20 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-xml | | 21 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-xml |
21 | | | 22 | |
22 | BUILD_DEFS+= CUPS_USER CUPS_GROUP VARBASE | | 23 | BUILD_DEFS+= CUPS_USER CUPS_GROUP VARBASE |
23 | | | 24 | |
24 | GNU_CONFIGURE= yes | | 25 | GNU_CONFIGURE= yes |
25 | USE_LIBTOOL= yes | | 26 | USE_LIBTOOL= yes |
26 | USE_LANGUAGES= c c++ | | 27 | USE_LANGUAGES= c c++ |
27 | USE_TOOLS+= aclocal autoconf automake gmake pkg-config | | 28 | USE_TOOLS+= aclocal autoconf automake gmake pkg-config |
28 | USE_TOOLS+= perl:run | | 29 | USE_TOOLS+= perl:run |
29 | | | 30 | |
30 | CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR} \ | | 31 | CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR} \ |
31 | --localstatedir=${VARBASE} \ | | 32 | --localstatedir=${VARBASE} \ |
32 | --with-cupsbackenddir=${PREFIX}/libexec/cups/backend \ | | 33 | --with-cupsbackenddir=${PREFIX}/libexec/cups/backend \ |
33 | --with-cupsfilterdir=${PREFIX}/libexec/cups/filter \ | | 34 | --with-cupsfilterdir=${PREFIX}/libexec/cups/filter \ |
34 | --with-hpppddir=${PREFIX}/share/hplip/ppd/HP | | 35 | --with-hpppddir=${PREFIX}/share/hplip/ppd/HP |
35 | CONFIGURE_ARGS+= --enable-network-build | | 36 | CONFIGURE_ARGS+= --enable-network-build |
36 | CONFIGURE_ARGS+= --disable-pp-build | | 37 | CONFIGURE_ARGS+= --disable-pp-build |
37 | CONFIGURE_ARGS+= --enable-hpcups-install | | 38 | CONFIGURE_ARGS+= --enable-hpcups-install |
38 | CONFIGURE_ARGS+= --enable-hpijs-install | | 39 | CONFIGURE_ARGS+= --enable-hpijs-install |
39 | CONFIGURE_ARGS+= --enable-cups-drv-install | | 40 | CONFIGURE_ARGS+= --enable-cups-drv-install |
40 | CONFIGURE_ARGS+= --enable-cups-ppd-install | | 41 | CONFIGURE_ARGS+= --enable-cups-ppd-install |
41 | CONFIGURE_ARGS+= --enable-foomatic-drv-install | | 42 | CONFIGURE_ARGS+= --enable-foomatic-drv-install |
42 | CONFIGURE_ARGS+= --enable-foomatic-ppd-install | | 43 | CONFIGURE_ARGS+= --enable-foomatic-ppd-install |
43 | CONFIGURE_ARGS+= --enable-foomatic-rip-hplip-install | | 44 | CONFIGURE_ARGS+= --enable-foomatic-rip-hplip-install |
44 | | | 45 | |
45 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 46 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
46 | EGFILES= hp/hplip.conf | | 47 | EGFILES= hp/hplip.conf |
47 | | | 48 | |
48 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} | | 49 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} |
49 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} | | 50 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} |
50 | INSTALL_MAKE_FLAGS+= localstatedir=${EGDIR} | | 51 | INSTALL_MAKE_FLAGS+= localstatedir=${EGDIR} |
51 | INSTALL_MAKE_FLAGS+= systraydir=${EGDIR}/xdg/autostart | | 52 | INSTALL_MAKE_FLAGS+= systraydir=${EGDIR}/xdg/autostart |
52 | INSTALL_MAKE_FLAGS+= mimedir=${EGDIR}/cups | | 53 | INSTALL_MAKE_FLAGS+= mimedir=${EGDIR}/cups |
53 | | | 54 | |
54 | OWN_DIRS+= ${PKG_SYSCONFDIR}/hp | | 55 | OWN_DIRS+= ${PKG_SYSCONFDIR}/hp |
55 | OWN_DIRS+= ${VARBASE}/lib/hp | | 56 | OWN_DIRS+= ${VARBASE}/lib/hp |
56 | OWN_DIRS+= ${PREFIX}/share/examples/hplip/log/hp | | 57 | OWN_DIRS+= ${PREFIX}/share/examples/hplip/log/hp |
57 | | | 58 | |
58 | OWN_DIRS_PERMS+= ${PREFIX}/share/examples/hplip/log/hp ${CUPS_USER} ${CUPS_GROUP} 0774 | | 59 | OWN_DIRS_PERMS+= ${PREFIX}/share/examples/hplip/log/hp ${CUPS_USER} ${CUPS_GROUP} 0774 |
59 | | | 60 | |
60 | PLIST_SRC= PLIST.base | | 61 | PLIST_SRC= PLIST.base |
61 | | | 62 | |
62 | .include "options.mk" | | 63 | .include "options.mk" |
63 | | | 64 | |
64 | .for file in ${EGFILES} | | 65 | .for file in ${EGFILES} |
65 | CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file} | | 66 | CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file} |
66 | .endfor | | 67 | .endfor |
67 | CONF_FILES+= | | 68 | CONF_FILES+= |
68 | | | 69 | |
69 | REPLACE_PYTHON= *.py */*.py */*/*.py | | 70 | REPLACE_PYTHON= *.py */*.py */*/*.py |
70 | REPLACE_PYTHON+= fax/filters/pstotiff | | 71 | REPLACE_PYTHON+= fax/filters/pstotiff |
71 | REPLACE_PYTHON+= prnt/filters/hpps | | 72 | REPLACE_PYTHON+= prnt/filters/hpps |
72 | REPLACE_PERL= prnt/filters/hpcac prnt/hpijs/foomatic-rip-hplip | | 73 | REPLACE_PERL= prnt/filters/hpcac prnt/hpijs/foomatic-rip-hplip |
73 | | | 74 | |
74 | PY_PATCHPLIST= yes | | 75 | PY_PATCHPLIST= yes |
75 | | | 76 | |
76 | SUBST_CLASSES+= fix-python | | 77 | SUBST_CLASSES+= fix-python |
77 | SUBST_STAGE.fix-python= post-configure | | 78 | SUBST_STAGE.fix-python= post-configure |
78 | SUBST_MESSAGE.fix-python= Fixing python invocations in Python files. | | 79 | SUBST_MESSAGE.fix-python= Fixing python invocations in Python files. |
79 | SUBST_FILES.fix-python= check.py scan.py setup.py | | 80 | SUBST_FILES.fix-python= check.py scan.py setup.py |
80 | SUBST_FILES.fix-python+= base/utils.py base/pkit.py | | 81 | SUBST_FILES.fix-python+= base/utils.py base/pkit.py |
81 | SUBST_FILES.fix-python+= installer/core_install.py | | 82 | SUBST_FILES.fix-python+= installer/core_install.py |
82 | SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py | | 83 | SUBST_FILES.fix-python+= ui/nodevicesform.py ui/devmgr4.py |
83 | SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py | | 84 | SUBST_FILES.fix-python+= ui4/nodevicesdialog.py ui4/devmgr5.py |
84 | SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g' | | 85 | SUBST_SED.fix-python= -e 's,\(['\''"]\)python ,\1${PYTHONBIN} ,g' |
85 | | | 86 | |
86 | SUBST_CLASSES+= fix-paths-0 | | 87 | SUBST_CLASSES+= fix-paths-0 |
87 | SUBST_STAGE.fix-paths-0= pre-configure | | 88 | SUBST_STAGE.fix-paths-0= pre-configure |
88 | SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in. | | 89 | SUBST_MESSAGE.fix-paths-0= Fixing /var/run in hplip.conf.in. |
89 | SUBST_FILES.fix-paths-0= hplip.conf.in | | 90 | SUBST_FILES.fix-paths-0= hplip.conf.in |
90 | SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g' | | 91 | SUBST_SED.fix-paths-0= -e 's,run=/var/run,run=${VARBASE}/run,g' |
91 | | | 92 | |
92 | SUBST_CLASSES+= fix-paths-1 | | 93 | SUBST_CLASSES+= fix-paths-1 |
93 | SUBST_STAGE.fix-paths-1= post-configure | | 94 | SUBST_STAGE.fix-paths-1= post-configure |
94 | SUBST_MESSAGE.fix-paths-1= Fixing /etc and /var paths in Python and C++ files. | | 95 | SUBST_MESSAGE.fix-paths-1= Fixing /etc and /var paths in Python and C++ files. |
95 | SUBST_FILES.fix-paths-1= check.py base/codes.py base/g.py base/utils.py | | 96 | SUBST_FILES.fix-paths-1= check.py base/codes.py base/g.py base/utils.py |
96 | SUBST_FILES.fix-paths-1+= installer/core_install.py | | 97 | SUBST_FILES.fix-paths-1+= installer/core_install.py |
97 | SUBST_FILES.fix-paths-1+= fax/backend/hpfax.py prnt/cups.py | | 98 | SUBST_FILES.fix-paths-1+= fax/backend/hpfax.py prnt/cups.py |
98 | SUBST_FILES.fix-paths-1+= ui/devmgr4.py ui4/devmgr5.py | | 99 | SUBST_FILES.fix-paths-1+= ui/devmgr4.py ui4/devmgr5.py |
99 | SUBST_FILES.fix-paths-1+= prnt/filters/hpps | | 100 | SUBST_FILES.fix-paths-1+= prnt/filters/hpps |
100 | SUBST_FILES.fix-paths-1+= prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/Utils.cpp | | 101 | SUBST_FILES.fix-paths-1+= prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/Utils.cpp |
101 | SUBST_FILES.fix-paths-1+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp | | 102 | SUBST_FILES.fix-paths-1+= prnt/hpijs/globals.cpp prnt/hpijs/hpcupsfax.cpp |
102 | SUBST_FILES.fix-paths-1+= prnt/hpijs/hpijs.cpp | | 103 | SUBST_FILES.fix-paths-1+= prnt/hpijs/hpijs.cpp |
103 | SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g' | | 104 | SUBST_SED.fix-paths-1= -e 's,\([ '\''"=]\)/etc/hp,\1${PKG_SYSCONFDIR}/hp,g' |
104 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' | | 105 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' |
105 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g' | | 106 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/etc/sane.d,\1${PKG_SYSCONFDIR}/sane.d,g' |
106 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g' | | 107 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/lib/hp,\1${VARBASE}/lib/hp,g' |
107 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g' | | 108 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/log/cups,\1${VARBASE}/log/cups,g' |
108 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g' | | 109 | SUBST_SED.fix-paths-1+= -e 's,\([ '\''"=]\)/var/spool/cups,\1${VARBASE}/spool/cups,g' |
109 | | | 110 | |
110 | SUBST_CLASSES+= fix-paths-2 | | 111 | SUBST_CLASSES+= fix-paths-2 |
111 | SUBST_STAGE.fix-paths-2= post-configure | | 112 | SUBST_STAGE.fix-paths-2= post-configure |
112 | SUBST_MESSAGE.fix-paths-2= Fixing additional paths in installer/core_install.py. | | 113 | SUBST_MESSAGE.fix-paths-2= Fixing additional paths in installer/core_install.py. |
113 | SUBST_FILES.fix-paths-2= installer/core_install.py | | 114 | SUBST_FILES.fix-paths-2= installer/core_install.py |
114 | SUBST_SED.fix-paths-2= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g' | | 115 | SUBST_SED.fix-paths-2= -e 's,"/etc/PolicyKit,"${PKG_SYSCONFDIR}/PolicyKit,g' |
115 | SUBST_SED.fix-paths-2+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g' | | 116 | SUBST_SED.fix-paths-2+= -e 's,"/etc/polkit-1,"${PKG_SYSCONFDIR}/polkit-1,g' |
116 | SUBST_SED.fix-paths-2+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g' | | 117 | SUBST_SED.fix-paths-2+= -e 's,"file:///etc/hp,"file://${PKG_SYSCONFDIR}/hp,g' |
117 | SUBST_SED.fix-paths-2+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g' | | 118 | SUBST_SED.fix-paths-2+= -e 's,"/usr/lib/cups/driver,"${PREFIX}/libexec/cups/driver,g' |
118 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' | | 119 | SUBST_SED.fix-paths-2+= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' |
119 | | | 120 | |
120 | SUBST_CLASSES+= fix-paths-3 | | 121 | SUBST_CLASSES+= fix-paths-3 |
121 | SUBST_STAGE.fix-paths-3= post-configure | | 122 | SUBST_STAGE.fix-paths-3= post-configure |
122 | SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py. | | 123 | SUBST_MESSAGE.fix-paths-3= Fixing additional paths in base/pkit.py. |
123 | SUBST_FILES.fix-paths-3= base/pkit.py | | 124 | SUBST_FILES.fix-paths-3= base/pkit.py |
124 | SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' | | 125 | SUBST_SED.fix-paths-3= -e 's,\([ '\''"=]\)/usr,\1${PREFIX},g' |
125 | | | 126 | |
126 | SUBST_CLASSES+= fix-paths-4 | | 127 | SUBST_CLASSES+= fix-paths-4 |
127 | SUBST_STAGE.fix-paths-4= post-configure | | 128 | SUBST_STAGE.fix-paths-4= post-configure |
128 | SUBST_MESSAGE.fix-paths-4= Fixing default PPD search path in base/g.py and prnt/cups.py. | | 129 | SUBST_MESSAGE.fix-paths-4= Fixing default PPD search path in base/g.py and prnt/cups.py. |
129 | SUBST_FILES.fix-paths-4= base/g.py prnt/cups.py | | 130 | SUBST_FILES.fix-paths-4= base/g.py prnt/cups.py |
130 | SUBST_SED.fix-paths-4= -e '\,ppd_search_path =, { s,/usr/\([a-z]*\);,/usr/\1;${PREFIX}/\1;,g ; }' | | 131 | SUBST_SED.fix-paths-4= -e '\,ppd_search_path =, { s,/usr/\([a-z]*\);,/usr/\1;${PREFIX}/\1;,g ; }' |
131 | SUBST_SED.fix-paths-4+= -e 's,\([ '\''"=]\)/usr/share/ppd,\1${PREFIX}/share/ppd,g' | | 132 | SUBST_SED.fix-paths-4+= -e 's,\([ '\''"=]\)/usr/share/ppd,\1${PREFIX}/share/ppd,g' |
132 | | | 133 | |
133 | SUBST_CLASSES+= fix-paths-5 | | 134 | SUBST_CLASSES+= fix-paths-5 |
134 | SUBST_STAGE.fix-paths-5= post-configure | | 135 | SUBST_STAGE.fix-paths-5= post-configure |
135 | SUBST_MESSAGE.fix-paths-5= Fixing paths in prnt/hpijs/foomatic-rip-hplip. | | 136 | SUBST_MESSAGE.fix-paths-5= Fixing paths in prnt/hpijs/foomatic-rip-hplip. |
136 | SUBST_FILES.fix-paths-5= prnt/hpijs/foomatic-rip-hplip | | 137 | SUBST_FILES.fix-paths-5= prnt/hpijs/foomatic-rip-hplip |
137 | SUBST_SED.fix-paths-5= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' | | 138 | SUBST_SED.fix-paths-5= -e 's,\([ '\''"=]\)/etc/cups,\1${PKG_SYSCONFDIR}/cups,g' |
138 | SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/etc/foomatic,\1${PKG_SYSCONFDIR}/foomatic,g' | | 139 | SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/etc/foomatic,\1${PKG_SYSCONFDIR}/foomatic,g' |
139 | SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/var/spool,\1${VARBASE}/spool,g' | | 140 | SUBST_SED.fix-paths-5+= -e 's,\([ '\''"=]\)/var/spool,\1${VARBASE}/spool,g' |
140 | SUBST_SED.fix-paths-5+= -e 's,prefix = "/usr",prefix = "${PREFIX}",g' | | 141 | SUBST_SED.fix-paths-5+= -e 's,prefix = "/usr",prefix = "${PREFIX}",g' |
141 | SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/bin:\),\1${PREFIX}/bin:,g' | | 142 | SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/bin:\),\1${PREFIX}/bin:,g' |
142 | SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/lib/cups/filter:\),\1${PREFIX}/libexec/cups/filter:,g' | | 143 | SUBST_SED.fix-paths-5+= -e 's,\(path = "/usr/lib/cups/filter:\),\1${PREFIX}/libexec/cups/filter:,g' |
143 | SUBST_SED.fix-paths-5+= -e '\,} elsif (-r "/usr/share/ppr, { N ; p ; s,"/usr,"${PREFIX},g ; }' | | 144 | SUBST_SED.fix-paths-5+= -e '\,} elsif (-r "/usr/share/ppr, { N ; p ; s,"/usr,"${PREFIX},g ; }' |
144 | | | 145 | |
145 | SUBST_CLASSES+= fix-paths-6 | | 146 | SUBST_CLASSES+= fix-paths-6 |
146 | SUBST_STAGE.fix-paths-6= post-configure | | 147 | SUBST_STAGE.fix-paths-6= post-configure |
147 | SUBST_MESSAGE.fix-paths-6= Fixing paths in fax/filters/pstotiff. | | 148 | SUBST_MESSAGE.fix-paths-6= Fixing paths in fax/filters/pstotiff. |
148 | SUBST_FILES.fix-paths-6= fax/filters/pstotiff | | 149 | SUBST_FILES.fix-paths-6= fax/filters/pstotiff |
149 | SUBST_SED.fix-paths-6= -e 's,"-I/usr/share/cups/fonts","-I${PREFIX}/share/cups/fonts",g' | | 150 | SUBST_SED.fix-paths-6= -e 's,"-I/usr/share/cups/fonts","-I${PREFIX}/share/cups/fonts",g' |
150 | SUBST_SED.fix-paths-6+= -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",g' | | 151 | SUBST_SED.fix-paths-6+= -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",g' |
151 | | | 152 | |
152 | # NetBSD has strnlen(3) since 5.99.12 | | 153 | # NetBSD has strnlen(3) since 5.99.12 |
153 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M5.99.*) && empty(OS_VERSION:M[6-9].*) | | 154 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M5.99.*) && empty(OS_VERSION:M[6-9].*) |
154 | SUBST_CLASSES+= fix-strnlen | | 155 | SUBST_CLASSES+= fix-strnlen |
155 | SUBST_STAGE.fix-strnlen= post-configure | | 156 | SUBST_STAGE.fix-strnlen= post-configure |
156 | SUBST_MESSAGE.fix-strnlen= Replacing strnlen() with strlen() in two C++ files. | | 157 | SUBST_MESSAGE.fix-strnlen= Replacing strnlen() with strlen() in two C++ files. |
157 | SUBST_FILES.fix-strnlen= prnt/hpijs/context2.cpp prnt/hpijs/ljzjscolor.cpp | | 158 | SUBST_FILES.fix-strnlen= prnt/hpijs/context2.cpp prnt/hpijs/ljzjscolor.cpp |
158 | SUBST_SED.fix-strnlen= -e 's/\([ (]\)strnlen(\([^,]*\), DevIDBuffSize)/\1strlen(\2)/g' | | 159 | SUBST_SED.fix-strnlen= -e 's/\([ (]\)strnlen(\([^,]*\), DevIDBuffSize)/\1strlen(\2)/g' |
159 | .endif | | 160 | .endif |
160 | | | 161 | |
161 | .include "../../mk/dlopen.buildlink3.mk" | | 162 | .include "../../mk/dlopen.buildlink3.mk" |
162 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} | | 163 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} |
163 | | | 164 | |
164 | pre-configure: | | 165 | pre-configure: |
165 | cd ${WRKSRC} && aclocal && automake --add-missing --foreign && autoconf | | 166 | cd ${WRKSRC} && aclocal && automake --add-missing --foreign && autoconf |
166 | | | 167 | |
167 | INSTALLATION_DIRS+= share/cups/model | | 168 | INSTALLATION_DIRS+= share/cups/model |
168 | | | 169 | |
169 | post-install: | | 170 | post-install: |
170 | ${CHMOD} a-x ${DESTDIR}${PREFIX}/share/hplip/__init__.py | | 171 | ${CHMOD} a-x ${DESTDIR}${PREFIX}/share/hplip/__init__.py |
171 | ${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/hplip | | 172 | ${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/hplip |
172 | ${LN} -s ../../../share/hplip/ppd ${DESTDIR}${PREFIX}/share/cups/model/hplip-ppds | | 173 | ${LN} -s ../../../share/hplip/ppd ${DESTDIR}${PREFIX}/share/cups/model/hplip-ppds |
173 | | | 174 | |
174 | .include "../../lang/python/application.mk" | | 175 | .include "../../lang/python/application.mk" |
175 | .include "../../lang/python/extension.mk" | | 176 | .include "../../lang/python/extension.mk" |
176 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 177 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
177 | .include "../../mk/jpeg.buildlink3.mk" | | 178 | .include "../../mk/jpeg.buildlink3.mk" |
178 | .include "../../net/net-snmp/buildlink3.mk" | | 179 | .include "../../net/net-snmp/buildlink3.mk" |
179 | .include "../../print/cups15/buildlink3.mk" | | 180 | .include "../../print/cups15/buildlink3.mk" |
180 | .include "../../print/ghostscript/buildlink3.mk" | | 181 | .include "../../print/ghostscript/buildlink3.mk" |
181 | .include "../../devel/libusb1/buildlink3.mk" | | 182 | .include "../../devel/libusb1/buildlink3.mk" |
182 | .include "../../security/openssl/buildlink3.mk" | | 183 | .include "../../security/openssl/buildlink3.mk" |
183 | .include "../../textproc/py-xml/buildlink3.mk" | | 184 | .include "../../textproc/py-xml/buildlink3.mk" |
184 | .include "../../mk/pthread.buildlink3.mk" | | 185 | .include "../../mk/pthread.buildlink3.mk" |
185 | .include "../../mk/bsd.pkg.mk" | | 186 | .include "../../mk/bsd.pkg.mk" |