~ubuntu-branches/ubuntu/raring/hplip/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/85_rebuild_python_ui.dpatch/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#  Makefile.am - hplip automake input file
 
3
#
 
4
#  (c) 2004-2015 Copyright Hewlett-Packard Development Company, LP
 
5
#  Author: David Suffield, Naga Samrat Chowdary Narla, Sarbeswar Meher
 
6
 
 
7
INCLUDES = -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs
 
8
 
 
9
hplipdir = $(datadir)/hplip
 
10
 
 
11
docdir = $(hpdocdir)
 
12
doc_DATA = COPYING copyright prnt/hpijs/README_LIBJPG
 
13
EXTRA_DIST = prnt/hpijs/gdevijs-krgb-1.5-gs8.61.patch prnt/hpijs/README_LIBJPG copyright
 
14
 
 
15
dist_noinst_SCRIPTS =
 
16
dist_noinst_DATA =
 
17
noinst_PROGRAMS =
 
18
lib_LTLIBRARIES =
 
19
 
 
20
include foomatic_drv.inc
 
21
include unreleased.inc
 
22
include cups_drv.inc
 
23
 
 
24
if DOC_BUILD
 
25
wwwsrc = doc
 
26
www0dir = $(docdir)
 
27
dist_www0_DATA = $(wwwsrc)/index.html $(wwwsrc)/commandline.html $(wwwsrc)/copying.html $(wwwsrc)/devicemanager.html $(wwwsrc)/faxtrouble.html $(wwwsrc)/gettinghelp.html $(wwwsrc)/hpscan.html $(wwwsrc)/mainttask.html $(wwwsrc)/plugins.html $(wwwsrc)/print.html $(wwwsrc)/printing.html $(wwwsrc)/printoptions.html $(wwwsrc)/printtroubleshooting.html $(wwwsrc)/scanning.html $(wwwsrc)/scantrouble.html $(wwwsrc)/sendfax.html $(wwwsrc)/setup.html $(wwwsrc)/systray.html $(wwwsrc)/troubleshooting.html $(wwwsrc)/uninstalling.html $(wwwsrc)/upgrading.html
 
28
www3dir = $(docdir)/styles
 
29
dist_www3_DATA = $(wwwsrc)/styles/*
 
30
www4dir = $(docdir)/images
 
31
dist_www4_DATA = $(wwwsrc)/images/*
 
32
endif
 
33
 
 
34
if HPLIP_BUILD
 
35
 
 
36
# hp backend.
 
37
hpdir = $(cupsbackenddir)
 
38
hp_PROGRAMS = hp
 
39
hp_SOURCES = prnt/backend/hp.c
 
40
hp_LDADD = libhpmud.la $(DBUS_LIBS)
 
41
hp_CFLAGS = $(DBUS_CFLAGS)
 
42
 
 
43
# hpaio sane backend
 
44
if SCAN_BUILD
 
45
libsane_hpaiodir = $(libdir)/sane
 
46
libsane_hpaio_LTLIBRARIES = libsane-hpaio.la
 
47
libsane_hpaio_la_SOURCES = scan/sane/hpaio.c scan/sane/mfpdtf.c scan/sane/pml.c scan/sane/scl.c scan/sane/io.c scan/sane/hpaio.h \
 
48
          scan/sane/pml.h scan/sane/saneopts.h scan/sane/io.h scan/sane/mfpdtf.h scan/sane/sane.h scan/sane/scl.h scan/sane/tables.h \
 
49
          scan/sane/common.c scan/sane/common.h scan/sane/soap.h scan/sane/soapht.h scan/sane/sanei_debug.h scan/sane/sanei.h \
 
50
          scan/sane/sanei_init_debug.c scan/sane/marvell.h scan/sane/marvelli.h scan/sane/marvell.c scan/sane/soapht.c scan/sane/soap.c \
 
51
        scan/sane/soaphti.h scan/sane/soapi.h scan/sane/xml.c scan/sane/xml.h scan/sane/ledm.h scan/sane/ledmi.h scan/sane/ledm.c \
 
52
        scan/sane/bb_ledm.c scan/sane/http.h scan/sane/http.c 
 
53
if DARWIN_BUILD
 
54
libsane_hpaio_la_LDFLAGS = -module -framework CoreFoundation -version-info 1:0:0
 
55
else
 
56
libsane_hpaio_la_LDFLAGS = -version-info 1:0:0
 
57
endif
 
58
# The following is a interlibrary dependency that must be compiled first.
 
59
libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -ldl
 
60
#libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG
 
61
libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS)
 
62
endif # SCAN_BUILD
 
63
 
 
64
# hpmud library
 
65
MUDNAME=hpmud
 
66
lib_LTLIBRARIES += libhpmud.la
 
67
libhpmud_la_SOURCES = io/hpmud/hpmud.c io/hpmud/mlc.c io/hpmud/model.c io/hpmud/musb.c io/hpmud/pml.c \
 
68
          io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/musb.h io/hpmud/pml.h io/hpmud/dot4.c \
 
69
          io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h
 
70
if NETWORK_BUILD
 
71
libhpmud_la_LDFLAGS = -version-info 0:6:0 -lusb -lpthread -l$(SNMPLIB) -lcrypto
 
72
else
 
73
libhpmud_la_LDFLAGS = -version-info 0:6:0 -lusb -lpthread
 
74
endif
 
75
libhpmud_la_CFLAGS = -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\"
 
76
 
 
77
# ip library
 
78
lib_LTLIBRARIES += libhpip.la
 
79
libhpip_la_LDFLAGS = -version-info 0:1:0
 
80
libhpip_la_LIBADD = -lm
 
81
libhpip_la_SOURCES = ip/xconvolve.c ip/xfax.c ip/xgrayout.c ip/xjpg_dct.c ip/xjpg_fix.c ip/xpad.c ip/xrotate.c ip/xskel.c ip/xtiff.c \
 
82
        ip/ipmain.c ip/xchgbpp.c ip/xcrop.c ip/xgamma.c ip/xjpg_dec.c ip/xjpg_huf.c ip/xpcx.c ip/xsaturation.c ip/xtable.c ip/xtonemap.c \
 
83
        ip/xbi2gray.c ip/xcolrspc.c ip/xfakemono.c ip/xgray2bi.c ip/xinvert.c ip/xjpg_enc.c ip/xmatrix.c ip/xpnm.c ip/xscale.c ip/xthumb.c ip/xyxtract.c \
 
84
        ip/hpip.h ip/ipdefs.h ip/xform.h ip/xjpg_dct.h ip/xjpg_huf.h ip/xjpg_mrk.h
 
85
 
 
86
# hp-mkuri.
 
87
hp_mkuridir = $(bindir)
 
88
hp_mkuri_PROGRAMS = hp-mkuri
 
89
hp_mkuri_SOURCES = io/hpmud/hp-mkuri.c
 
90
hp_mkuri_LDADD = -ldl libhpmud.la
 
91
hp_mkuri_CFLAGS = -DCONFDIR=\"$(hplip_confdir)\"
 
92
 
 
93
# hpmud.rules
 
94
rulesdir = /etc/udev/rules.d
 
95
dist_rules_DATA = data/rules/56-hpmud_support.rules
 
96
dist_rules_DATA += data/rules/86-hpmud_plugin.rules
 
97
dist_rules_DATA += data/rules/56-hpmud_add_printer.rules
 
98
if UDEV_ACL_RULES
 
99
dist_rules_DATA += data/rules/40-hplip.rules
 
100
else
 
101
dist_rules_DATA += data/rules/55-hpmud.rules
 
102
endif
 
103
halpredir = /usr/share/hal/fdi/preprobe/10osvendor
 
104
dist_halpre_DATA = data/rules/20-hplip-devices.fdi
 
105
 
 
106
# hplip.conf
 
107
hplip_confdir = /etc/hp
 
108
hplip_conf_DATA = hplip.conf
 
109
 
 
110
#pstotiff filter
 
111
pstotiffdir = $(cupsfilterdir)
 
112
pstotiff_SCRIPTS = fax/filters/pstotiff
 
113
 
 
114
# hplip.state
 
115
hplip_statedir = /var/lib/hp
 
116
dist_hplip_state_DATA = 
 
117
#dist_hplip_state_DATA = hplip.state
 
118
 
 
119
# Log Files
 
120
hplip_Logdir=/var/log/hp
 
121
 
 
122
if FULL_BUILD
 
123
 
 
124
dist_hplip_SCRIPTS = hpssd.py __init__.py hpdio.py
 
125
dist_noinst_DATA += scan/sane/hpaio.desc prnt/drv/hpijs.drv.in.template
 
126
dist_noinst_SCRIPTS += dat2drv.py install.py hplip-install init-suse-firewall init-iptables-firewall
 
127
 
 
128
cmddir = $(hplipdir)
 
129
dist_cmd_SCRIPTS = align.py info.py print.py toolbox.py clean.py colorcal.py unload.py testpage.py makeuri.py check.py fab.py levels.py \
 
130
        sendfax.py setup.py makecopies.py probe.py timedate.py firmware.py scan.py systray.py plugin.py linefeedcal.py pqdiag.py \
 
131
        faxsetup.py devicesettings.py printsettings.py query.py pkservice.py wificonfig.py check-plugin.py diagnose_plugin.py uninstall.py \
 
132
        upgrade.py config_usb_printer.py diagnose_queues.py
 
133
 
 
134
# base
 
135
basedir = $(hplipdir)/base
 
136
 
 
137
dist_base_DATA = base/maint.py base/codes.py base/g.py base/pml.py base/status.py  \
 
138
        base/__init__.py base/mfpdtf.py base/utils.py base/wifi.py base/LedmWifi.py \
 
139
        base/device.py base/logger.py base/slp.py base/exif.py base/strings.py base/magic.py \
 
140
        base/imagesize.py base/pexpect.py base/models.py base/mdns.py base/tui.py base/dime.py \
 
141
        base/ldif.py base/vcard.py base/module.py base/pkit.py
 
142
 
 
143
# installer
 
144
installdir = $(hplipdir)/installer
 
145
dist_install_DATA = installer/__init__.py installer/dcheck.py installer/distros.dat installer/core_install.py
 
146
dist_noinst_DATA += installer/text_install.py
 
147
 
 
148
# makecopies
 
149
copierdir = $(hplipdir)/copier
 
150
dist_copier_DATA = copier/copier.py copier/__init__.py
 
151
 
 
152
# fax
 
153
if FAX_BUILD
 
154
faxdir = $(hplipdir)/fax
 
155
dist_fax_DATA = fax/fax.py fax/__init__.py fax/coverpages.py fax/pmlfax.py fax/ledmfax.py fax/soapfax.py fax/ledmsoapfax.py fax/marvellfax.py \
 
156
        fax/faxdevice.py fax/filters/pstotiff fax/filters/pstotiff.convs fax/filters/pstotiff.types
 
157
fax_filtersdir = $(mimedir)
 
158
dist_fax_filters_DATA = fax/filters/pstotiff.convs fax/filters/pstotiff.types
 
159
hpfaxdir = $(cupsbackenddir)
 
160
dist_hpfax_SCRIPTS = fax/backend/hpfax.py
 
161
hpijsfaxppddir = $(hpppddir)
 
162
hpcupsfaxppddir = $(hpppddir)
 
163
if HPIJS_INSTALL
 
164
dist_hpijsfaxppd_DATA = fax/ppd/HP-Fax-hpijs.ppd.gz fax/ppd/HP-Fax2-hpijs.ppd.gz fax/ppd/HP-Fax3-hpijs.ppd.gz fax/ppd/HP-Fax4-hpijs.ppd.gz
 
165
endif # HPIJS_INSTALL
 
166
if HPCUPS_INSTALL
 
167
dist_hpcupsfaxppd_DATA = fax/ppd/HP-Fax-hpcups.ppd.gz fax/ppd/HP-Fax2-hpcups.ppd.gz fax/ppd/HP-Fax3-hpcups.ppd.gz fax/ppd/HP-Fax4-hpcups.ppd.gz
 
168
endif # HPCUPS_INSTALL
 
169
endif # FAX_BUILD
 
170
 
 
171
# ptest
 
172
noinst_PROGRAMS += ptest
 
173
ptest_SOURCES = pcard/ptest.c pcard/ptest.h pcard/fat.c pcard/fat.h
 
174
ptest_LDADD = libhpmud.la
 
175
 
 
176
# data
 
177
modelsdir = $(hplipdir)/data/models
 
178
images_16x16dir = $(hplipdir)/data/images/16x16
 
179
images_24x24dir = $(hplipdir)/data/images/24x24
 
180
images_32x32dir = $(hplipdir)/data/images/32x32
 
181
images_64x64dir = $(hplipdir)/data/images/64x64
 
182
images_128x128dir = $(hplipdir)/data/images/128x128
 
183
images_256x256dir = $(hplipdir)/data/images/256x256
 
184
images_devicesdir = $(hplipdir)/data/images/devices
 
185
images_otherdir = $(hplipdir)/data/images/other
 
186
pcldir = $(hplipdir)/data/pcl
 
187
ldldir = $(hplipdir)/data/ldl
 
188
postscriptdir = $(hplipdir)/data/ps
 
189
localzdir = $(hplipdir)/data/localization
 
190
dist_postscript_DATA = data/ps/testpage.ps.gz data/ps/clean_page.pdf.gz
 
191
dist_models_DATA = data/models/models.dat
 
192
dist_hplip_Log_DATA=
 
193
 
 
194
if GUI_BUILD
 
195
dist_images_16x16_DATA = data/images/16x16/*
 
196
dist_images_24x24_DATA = data/images/24x24/*
 
197
dist_images_32x32_DATA = data/images/32x32/*
 
198
dist_images_64x64_DATA = data/images/64x64/*
 
199
dist_images_128x128_DATA = data/images/128x128/*
 
200
dist_images_256x256_DATA = data/images/256x256/*
 
201
dist_images_devices_DATA = data/images/devices/*
 
202
dist_images_other_DATA = data/images/other/*
 
203
endif
 
204
 
 
205
dist_pcl_DATA = data/pcl/align1_8xx.pcl.gz data/pcl/align1_9xx.pcl.gz data/pcl/align2_8xx.pcl.gz data/pcl/align3_8xx.pcl.gz data/pcl/align4_8xx.pcl.gz \
 
206
        data/pcl/align5_8xx.pcl.gz data/pcl/align2_9xx.pcl.gz data/pcl/align3_9xx.pcl.gz data/pcl/align4_450.pcl.gz data/pcl/align6_450.pcl.gz \
 
207
        data/pcl/colorcal1_450.pcl.gz data/pcl/colorcal2_450.pcl.gz data/pcl/crbcal.pcl.gz data/pcl/crcaldone.pcl.gz data/pcl/crcbcal.pcl.gz data/pcl/crccal.pcl.gz \
 
208
        data/pcl/crcpcal.pcl.gz data/pcl/crpcal.pcl.gz
 
209
dist_ldl_DATA = data/ldl/cb2pcal.ldl.gz data/ldl/cb2pcal_done.ldl.gz data/ldl/cbbcal.ldl.gz data/ldl/cbccal.ldl.gz data/ldl/cbccal_done.ldl.gz data/ldl/cbcpcal.ldl.gz \
 
210
        data/ldl/cbpcal.ldl.gz
 
211
dist_localz_DATA = data/localization/hplip_de.qm data/localization/hplip_es.qm data/localization/hplip_fr.qm data/localization/hplip_it.qm \
 
212
        data/localization/hplip_pt.qm data/localization/hplip_ru.qm data/localization/hplip_zh.qm
 
213
dist_noinst_DATA += data/localization/hplip_de.ts data/localization/hplip_es.ts data/localization/hplip_fr.ts data/localization/hplip_it.ts \
 
214
        data/localization/hplip_pt.ts data/localization/hplip_ru.ts data/localization/hplip_zh.ts
 
215
 
 
216
# pcard
 
217
pcarddir = $(hplipdir)/pcard
 
218
dist_pcard_DATA = pcard/__init__.py pcard/photocard.py
 
219
 
 
220
# pcardext
 
221
pcardextdir = $(pyexecdir)
 
222
pcardext_LTLIBRARIES = pcardext.la
 
223
pcardext_la_LDFLAGS = -module -avoid-version
 
224
pcardext_la_SOURCES = pcard/pcardext/pcardext.c pcard/fat.c
 
225
pcardext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
 
226
 
 
227
# prnt
 
228
prntdir = $(hplipdir)/prnt
 
229
dist_prnt_DATA = prnt/cups.py prnt/__init__.py prnt/ldl.py prnt/pcl.py prnt/colorcal.py
 
230
 
 
231
# cupsext
 
232
cupsextdir = $(pyexecdir)
 
233
cupsext_LTLIBRARIES = cupsext.la
 
234
cupsext_la_LDFLAGS = -module -avoid-version
 
235
cupsext_la_SOURCES =  prnt/cupsext/cupsext.c
 
236
cupsext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
 
237
cupsext_la_LIBADD = -lcups
 
238
 
 
239
if SCAN_BUILD
 
240
# scan
 
241
scandir = $(hplipdir)/scan
 
242
dist_scan_DATA = scan/__init__.py scan/sane.py
 
243
 
 
244
# scanext
 
245
scanextdir = $(pyexecdir)
 
246
scanext_LTLIBRARIES = scanext.la
 
247
scanext_la_LDFLAGS = -module -avoid-version -lsane
 
248
scanext_la_SOURCES =  scan/scanext/scanext.c
 
249
scanext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
 
250
endif
 
251
 
 
252
# hpmudext
 
253
hpmudextdir = $(pyexecdir)
 
254
hpmudext_LTLIBRARIES = hpmudext.la
 
255
hpmudext_la_LDFLAGS = -module -avoid-version
 
256
hpmudext_la_SOURCES = io/mudext/hpmudext.c
 
257
hpmudext_la_LIBADD = libhpmud.la
 
258
hpmudext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
 
259
# ui (qt3)
 
260
if GUI_BUILD
 
261
if QT3_INSTALL
 
262
uidir = $(hplipdir)/ui
 
263
dist_ui_DATA = ui/alignform.py \
 
264
        ui/colorcalform_base.py ui/colorcalform.py ui/coloradjform_base.py ui/coloradjform.py ui/devmgr4_base.py ui/devmgr4.py \
 
265
        ui/__init__.py ui/loadpaperform_base.py ui/loadpaperform.py \
 
266
        ui/paperedgealignform_base.py ui/paperedgealignform.py ui/ui_utils.py \
 
267
        ui/settingsdialog_base.py ui/settingsdialog.py ui/aligntype6form1.py ui/aligntype6form1_base.py ui/aligntype6form2_base.py \
 
268
        ui/aligntype6form2.py ui/nodevicesform_base.py ui/nodevicesform.py ui/unloadform.py \
 
269
        ui/imagepropertiesdlg_base.py ui/imagepropertiesdlg.py ui/choosedevicedlg.py ui/chooseprinterdlg.py \
 
270
        ui/aboutdlg.py ui/aboutdlg_base.py ui/waitform.py ui/waitform_base.py ui/cleaningform_base.py ui/cleaningform.py \
 
271
        ui/cleaningform2_base.py ui/cleaningform2.py ui/colorcalform2_base.py ui/colorcalform2.py ui/colorcal4form.py \
 
272
        ui/colorcal4form_base.py ui/colorcal4form_base.ui ui/printerform.py \
 
273
        ui/faxaddrbookgroupsform_base.py ui/faxaddrbookgroupeditform_base.py ui/faxaddrbookform_base.py \
 
274
        ui/faxaddrbookform.py ui/faxaddrbookeditform_base.py ui/align10form.py ui/align10form_base.py \
 
275
        ui/faxsendjobform.py ui/faxsettingsform_base.py ui/faxsettingsform.py \
 
276
        ui/coverpageform_base.py ui/coverpageform.py ui/allowabletypesdlg_base.py ui/allowabletypesdlg.py \
 
277
        ui/makecopiesform.py ui/setupform_base.py ui/setupform.py ui/setupmanualfind_base.py \
 
278
        ui/setupmanualfind.py ui/setupsettings_base.py ui/setupsettings.py ui/scrollview.py \
 
279
        ui/scrollprintsettings.py ui/scrollprint.py ui/scrollfax.py \
 
280
        ui/scrollunload.py ui/scrollcopy.py ui/pluginform2.py ui/pluginform2_base.py ui/systemtray.py \
 
281
        ui/ui_utils.py ui/jobstoragemixin.py ui/pluginlicenseform_base.py ui/pluginlicenseform.py \
 
282
        ui/align13form_base.py ui/align13form.py ui/firmwaredialog_base.py ui/firmwaredialog.py \
 
283
        ui/deviceuricombobox.py ui/upgradeform.py ui/upgradeform_base.py
 
284
 
 
285
dist_noinst_DATA += ui/colorcalform2_base.ui ui/settingsdialog_base.ui ui/aligntype6form1_base.ui \
 
286
        ui/aboutdlg_base.ui ui/imagepropertiesdlg_base.ui ui/paperedgealignform_base.ui ui/aligntype6form2_base.ui \
 
287
        ui/nodevicesform_base.ui ui/cleaningform_base.ui ui/colorcalform_base.ui ui/devmgr4_base.ui ui/loadpaperform_base.ui \
 
288
        ui/cleaningform2_base.ui ui/waitform_base.ui ui/coloradjform_base.ui ui/faxaddrbookeditform_base.ui \
 
289
        ui/faxaddrbookform_base.ui ui/faxaddrbookgroupeditform_base.ui ui/faxaddrbookgroupsform_base.ui \
 
290
        ui/align10form_base.ui  ui/pluginform2_base.ui \
 
291
        plugins/powersettingsdialog_base.ui ui/faxsettingsform_base.ui ui/coverpageform_base.ui \
 
292
        ui/allowabletypesdlg_base.ui ui/setupform_base.ui ui/setupmanualfind_base.ui \
 
293
        ui/setupsettings_base.ui ui/pluginlicenseform_base.ui ui/align13form_base.ui ui/firmwaredialog_base.ui 
 
294
endif
 
295
endif
 
296
 
 
297
#ui4 (qt4)
 
298
if GUI_BUILD
 
299
if QT4_INSTALL
 
300
ui4dir=$(hplipdir)/ui4
 
301
#dist_ui4_SCRIPTS = ui4/devmgr5.py ui4/systemtray.py ui4/devmgr5_base.py ui4/__init__.py ui4/ui_utils.py \
 
302
#       ui4/settingsdialog_base.py ui4/settingsdialog.py ui4/printsettingstoolbox.py ui4/printdialog_base.py \
 
303
#       ui4/printdialog.py
 
304
#dist_noinst_DATA += ui4/devmgr5_base.ui ui4/settingsdialog_base.ui ui4/printdialog_base.ui
 
305
dist_ui4_DATA = ui4/*.py
 
306
dist_noinst_DATA += ui4/*.ui
 
307
endif
 
308
endif
 
309
 
 
310
# ui plugins (qt3)
 
311
if GUI_BUILD
 
312
if QT3_INSTALL
 
313
pluginsdir = $(hplipdir)/plugins
 
314
dist_plugins_DATA = plugins/dj450.py plugins/__init__.py plugins/powersettings.py plugins/powersettingsdialog.py \
 
315
        plugins/powersettingsdialog_base.py plugins/Deskjet_460.py plugins/Officejet_H470.py plugins/powersettings2.py
 
316
endif
 
317
endif
 
318
 
 
319
# ui plugins (qt4)
 
320
if GUI_BUILD
 
321
if QT4_INSTALL
 
322
plugins4dir = $(hplipdir)/ui4/plugins
 
323
dist_plugins4_SCRIPTS =
 
324
endif
 
325
endif
 
326
 
 
327
# PolicyKit
 
328
if POLICYKIT_INSTALL
 
329
policykit_dbus_etcdir = /etc/dbus-1/system.d
 
330
dist_policykit_dbus_etc_DATA = data/policykit/com.hp.hplip.conf
 
331
policykit_dbus_sharedir = /usr/share/dbus-1/system-services
 
332
dist_policykit_dbus_share_DATA = data/policykit/com.hp.hplip.service
 
333
policykit_policydir = $(policykit_dir)
 
334
dist_policykit_policy_DATA = data/policykit/com.hp.hplip.policy
 
335
endif
 
336
 
 
337
# hppgsz
 
338
noinst_PROGRAMS += hppgsz
 
339
hppgsz_SOURCES = prnt/hpijs/PrinterProperties.cpp prnt/hpijs/PrinterProperties.h prnt/hpijs/bug.h
 
340
hppgsz_CXXFLAGS = $(libapdk_la_CXXFLAGS)
 
341
hppgsz_CFLAGS = $(libapdk_la_CFLAGS)
 
342
hppgsz_LDADD = libapdk.la -ljpeg -ldl
 
343
 
 
344
# hplip.desktop
 
345
hplip_desktopdir = $(icondir)
 
346
hplip_desktop_DATA = hplip.desktop
 
347
 
 
348
# hplip-systray.desktop
 
349
hplip_systraydir = $(systraydir)
 
350
hplip_systray_DATA = hplip-systray.desktop
 
351
 
 
352
# hpipjs (CUPS filter)
 
353
hplipjsdir = $(cupsfilterdir)
 
354
hplipjs_PROGRAMS = hplipjs
 
355
hplipjs_SOURCES = prnt/filters/hplipjs.c
 
356
 
 
357
# hpps (CUPS filter)
 
358
hppsdir = $(cupsfilterdir)
 
359
hpps_PROGRAMS = hpps
 
360
hpps_SOURCES = prnt/hpps/hppsfilter.c
 
361
hpps_LDADD = -lcups
 
362
 
 
363
# hpcac (CUPS filter, Color Access Control, ie: CLJ 4700)
 
364
cacdir = $(cupsfilterdir)
 
365
dist_cac_SCRIPTS = prnt/filters/hpcac
 
366
 
 
367
endif   # FULL_BUILD
 
368
endif   # HPLIP_BUILD
 
369
 
 
370
# foomatic-rip-hplip
 
371
if RIP_INSTALL
 
372
ripdir = $(cupsfilterdir)
 
373
dist_rip_SCRIPTS = prnt/hpijs/foomatic-rip-hplip
 
374
endif
 
375
 
 
376
# apdk
 
377
noinst_LTLIBRARIES = libapdk.la
 
378
libapdk_la_SOURCES = prnt/hpijs/models.cpp prnt/hpijs/breaks_open.cpp \
 
379
        prnt/hpijs/dj9xxvip.cpp prnt/hpijs/dj9xx.cpp prnt/hpijs/capture.cpp prnt/hpijs/colormatch.cpp prnt/hpijs/colormatcher_open.cpp \
 
380
        prnt/hpijs/compression.cpp prnt/hpijs/context2.cpp prnt/hpijs/create_so.cpp prnt/hpijs/creator.cpp \
 
381
        prnt/hpijs/dj600.cpp prnt/hpijs/dj630.cpp prnt/hpijs/dj660.cpp prnt/hpijs/dj690.cpp prnt/hpijs/dj6xx.cpp prnt/hpijs/dj8xx.cpp prnt/hpijs/dj600_maps.cpp \
 
382
        prnt/hpijs/dj660_maps.cpp prnt/hpijs/dj690_maps.cpp prnt/hpijs/dj895_maps.cpp prnt/hpijs/dj895_maps2.cpp prnt/hpijs/dj970_maps.cpp \
 
383
        prnt/hpijs/dj970_maps2.cpp prnt/hpijs/dj970_maps3.cpp prnt/hpijs/filterhpa.cpp prnt/hpijs/apollo21xx.cpp prnt/hpijs/apollo2560.cpp prnt/hpijs/apollo2xxx.cpp \
 
384
        prnt/hpijs/dj8x5.cpp prnt/hpijs/psp100.cpp prnt/hpijs/phobos_cmaps.cpp prnt/hpijs/dj350.cpp prnt/hpijs/halftoner.cpp prnt/hpijs/halftoner_open.cpp \
 
385
        prnt/hpijs/globals.cpp prnt/hpijs/header2.cpp prnt/hpijs/htmtxhi.cpp prnt/hpijs/pmselect.cpp \
 
386
        prnt/hpijs/job.cpp prnt/hpijs/printer.cpp prnt/hpijs/registry.cpp prnt/hpijs/scaler.cpp \
 
387
        prnt/hpijs/scaler_open.cpp prnt/hpijs/script.cpp prnt/hpijs/systemservices.cpp \
 
388
        prnt/hpijs/translator.cpp prnt/hpijs/version.cpp prnt/hpijs/versioncode.cpp \
 
389
        prnt/hpijs/djgenericvip.cpp prnt/hpijs/dj540.cpp prnt/hpijs/dj850.cpp prnt/hpijs/dj850_maps.cpp prnt/hpijs/dj890.cpp \
 
390
        prnt/hpijs/apollo21xx.h prnt/hpijs/apollo2560.h prnt/hpijs/apollo2xxx.h prnt/hpijs/colormatch.h prnt/hpijs/colormatcher_open.h \
 
391
        prnt/hpijs/compression.h prnt/hpijs/config.h prnt/hpijs/context.h prnt/hpijs/dj350.h prnt/hpijs/dj400.h prnt/hpijs/dj540.h \
 
392
        prnt/hpijs/dj600.h prnt/hpijs/dj630.h prnt/hpijs/dj660.h prnt/hpijs/dj690.h prnt/hpijs/dj6xx.h prnt/hpijs/dj8x5.h prnt/hpijs/dj8xx.h \
 
393
        prnt/hpijs/dj850.h prnt/hpijs/dj890.h prnt/hpijs/dj9xx.h prnt/hpijs/dj9xxvip.h \
 
394
        prnt/hpijs/ernieplatform.h prnt/hpijs/filterhpa.h prnt/hpijs/global_types.h prnt/hpijs/halftoner.h prnt/hpijs/font.h prnt/hpijs/debug.h \
 
395
        prnt/hpijs/halftoner_open.h prnt/hpijs/header.h prnt/hpijs/hpprint_c_api.h \
 
396
        prnt/hpijs/hpprintapi.h prnt/hpijs/hptypes.h prnt/hpijs/htfed.h prnt/hpijs/internal.h \
 
397
        prnt/hpijs/interp.h prnt/hpijs/interp_data_50.h prnt/hpijs/io_defs.h prnt/hpijs/job.h prnt/hpijs/models.h prnt/hpijs/modes.h prnt/hpijs/pmselect.h \
 
398
        prnt/hpijs/printer.h prnt/hpijs/psp100.h prnt/hpijs/psp470.h prnt/hpijs/resources.h prnt/hpijs/scaler_open.h prnt/hpijs/scaler_prop.h prnt/hpijs/script.h \
 
399
        prnt/hpijs/systemservices.h prnt/hpijs/unistd_.h prnt/hpijs/djgenericvip.h prnt/hpijs/ljmono.h prnt/hpijs/ljmono.cpp \
 
400
        prnt/hpijs/dj3320.cpp prnt/hpijs/dj3320.h prnt/hpijs/dj3320_cmap.cpp prnt/hpijs/dj3600.cpp prnt/hpijs/dj3600.h prnt/hpijs/dj3600_cmap.cpp prnt/hpijs/dj4100.h prnt/hpijs/djd2600.h \
 
401
        prnt/hpijs/dj4100_cmap.cpp prnt/hpijs/ldlencap.h prnt/hpijs/ljcolor.cpp prnt/hpijs/ljcolor.h prnt/hpijs/pscript.h \
 
402
        prnt/hpijs/printerproxy.cpp prnt/hpijs/printerfactory.cpp prnt/hpijs/printerproxy.h prnt/hpijs/printerfactory.h \
 
403
        prnt/hpijs/ljjetready.cpp prnt/hpijs/ljjetready.h prnt/hpijs/jdatadbf.c prnt/hpijs/jccolor.c prnt/hpijs/ljfastraster.cpp prnt/hpijs/ljfastraster.h \
 
404
        prnt/hpijs/jinclude.h prnt/hpijs/jpegint.h prnt/hpijs/dj55xx.h prnt/hpijs/hpijsfax.h prnt/hpijs/ojprokx50.h \
 
405
        prnt/hpijs/ljzjs.cpp prnt/hpijs/ljzjs.h prnt/hpijs/ljzjsmono.cpp prnt/hpijs/ljm1005.cpp prnt/hpijs/ljm1005.h \
 
406
        prnt/hpijs/ljzjsmono.h prnt/hpijs/hpjbig_wrapper.h prnt/hpijs/quickconnect.cpp prnt/hpijs/quickconnect.h prnt/hpijs/ljp1xxx.h prnt/hpijs/ljzjscolor.cpp prnt/hpijs/ljzjscolor.h
 
407
libapdk_la_CXXFLAGS = -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 \
 
408
        -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX \
 
409
        -DAPDK_HIGH_RES_MODES -DAPDK_LJMONO -DAPDK_DJ540 -DAPDK_DJ850 -DAPDK_DJ890 -DAPDK_DJ3320 -DAPDK_LJCOLOR -DAPDK_DJGENERICVIP \
 
410
        -DAPDK_LJJETREADY  -DAPDK_LJFASTRASTER -DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS -DAPDK_EXTENDED_MEDIASIZE \
 
411
        -DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LJZJS_MONO -DAPDK_LJZJS_COLOR -DAPDK_LJM1005 -DAPDK_QUICKCONNECT \
 
412
                $(APDK_ENDIAN_FLAG) $(APDK_AUTO_INCLUDE_FLAG) -DAPDK_LINUX -DNDEBUG $(DBUS_CFLAGS)
 
413
libapdk_la_CFLAGS = $(libapdk_la_CXXFLAGS) -Iprnt/hpijs
 
414
 
 
415
if HPIJS_INSTALL
 
416
# hpijs
 
417
bin_PROGRAMS = hpijs
 
418
hpijs_SOURCES = prnt/hpijs/hpijs.cpp prnt/hpijs/ijs_server.c prnt/hpijs/ijs.c prnt/hpijs/hpijsfax.cpp prnt/hpijs/services.cpp prnt/hpijs/bug.h \
 
419
        prnt/hpijs/hpijs.h prnt/hpijs/ijs.h prnt/hpijs/ijs_server.h prnt/hpijs/services.h prnt/hpijs/ijs_client.h prnt/hpijs/hpiom.c prnt/hpijs/hpiom.h
 
420
hpijs_CXXFLAGS = $(libapdk_la_CXXFLAGS)
 
421
hpijs_CFLAGS = $(libapdk_la_CFLAGS)
 
422
if HPLIP_BUILD
 
423
hpijs_LDADD = libapdk.la -ljpeg -ldl libhpip.la libhpmud.la $(DBUS_LIBS)
 
424
else
 
425
hpijs_LDADD = libapdk.la -ljpeg -ldl
 
426
endif
 
427
endif # HPIJS_INSTALL
 
428
 
 
429
if HPCUPS_INSTALL
 
430
# hpcups
 
431
#if NEW_HPCUPS
 
432
hpcupsdir = $(cupsfilterdir)
 
433
hpcups_PROGRAMS = hpcups
 
434
hpcups_SOURCES = prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/HPCupsFilter.h prnt/hpcups/dbuscomm.cpp prnt/hpcups/dbuscomm.h prnt/hpcups/Compressor.cpp prnt/hpcups/Compressor.h \
 
435
        prnt/hpcups/Mode2.cpp prnt/hpcups/Mode2.h prnt/hpcups/Mode3.cpp prnt/hpcups/Mode3.h \
 
436
        prnt/hpcups/Mode9.cpp prnt/hpcups/Mode9.h prnt/hpcups/Mode10.cpp prnt/hpcups/Mode10.h \
 
437
        prnt/hpcups/ModeDeltaPlus.cpp prnt/hpcups/ModeDeltaPlus.h prnt/hpcups/ModeJbig.cpp prnt/hpcups/ModeJbig.h \
 
438
        prnt/hpcups/ErnieFilter.cpp prnt/hpcups/ErnieFilter.h prnt/hpcups/EncapsulatorFactory.cpp prnt/hpcups/EncapsulatorFactory.h \
 
439
        prnt/hpcups/Encapsulator.cpp prnt/hpcups/Encapsulator.h prnt/hpcups/Pcl3.cpp prnt/hpcups/Pcl3.h \
 
440
        prnt/hpcups/Pcl3Gui.cpp prnt/hpcups/Pcl3Gui.h prnt/hpcups/Pcl3Gui2.cpp prnt/hpcups/Pcl3Gui2.h \
 
441
        prnt/hpcups/LJMono.cpp prnt/hpcups/LJMono.h prnt/hpcups/LJColor.cpp prnt/hpcups/LJColor.h \
 
442
        prnt/hpcups/LJFastRaster.cpp prnt/hpcups/LJFastRaster.h prnt/hpcups/LJJetReady.cpp prnt/hpcups/LJJetReady.h \
 
443
prnt/hpcups/LJZjStream.cpp prnt/hpcups/LJZjStream.h \
 
444
        prnt/hpcups/LJZxStream.cpp prnt/hpcups/LJZxStream.h prnt/hpcups/Job.cpp prnt/hpcups/Job.h \
 
445
        prnt/hpcups/Pipeline.cpp prnt/hpcups/Pipeline.h prnt/hpcups/Processor.cpp prnt/hpcups/Processor.h \
 
446
        prnt/hpcups/RasterSender.cpp prnt/hpcups/RasterSender.h prnt/hpcups/ColorMatcher.cpp prnt/hpcups/ColorMatcher.h \
 
447
        prnt/hpcups/Halftoner.cpp prnt/hpcups/Halftoner.h prnt/hpcups/Scaler.cpp prnt/hpcups/Scaler.h prnt/hpcups/resources.h \
 
448
        prnt/hpcups/dj400ColorMaps.cpp prnt/hpcups/dj600ColorMaps.cpp prnt/hpcups/dj970ColorMaps.cpp prnt/hpcups/dj8xxColorMaps.cpp \
 
449
        prnt/hpcups/dj4100ColorMaps.cpp \
 
450
        prnt/hpcups/BreakTables.cpp prnt/hpcups/PrinterCommands.h prnt/hpcups/Utils.cpp prnt/hpcups/Utils.h \
 
451
        prnt/hpcups/SystemServices.cpp prnt/hpcups/SystemServices.h prnt/hpcups/CommonDefinitions.h prnt/hpcups/hpjbig_wrapper.h \
 
452
        prnt/hpcups/apPrintModes.h prnt/hpcups/dj400PrintModes.h prnt/hpcups/dj540PrintModes.h prnt/hpcups/dj600PrintModes.h \
 
453
        prnt/hpcups/dj630PrintModes.h prnt/hpcups/dj690PrintModes.h prnt/hpcups/dj850PrintModes.h prnt/hpcups/dj890PrintModes.h \
 
454
        prnt/hpcups/dj895PrintModes.h prnt/hpcups/dj8x5PrintModes.h prnt/hpcups/dj970PrintModes.h prnt/hpcups/Pcl3GuiPrintModes.h \
 
455
        prnt/hpcups/Pcl3PrintModes.h prnt/hpcups/ColorMaps.h \
 
456
        prnt/hpcups/QuickConnect.cpp prnt/hpcups/QuickConnect.h \
 
457
        prnt/hpcups/ModeJpeg.cpp prnt/hpcups/ModeJpeg.h \
 
458
        prnt/hpcups/jccolor.c prnt/hpcups/jinclude.h \
 
459
        prnt/hpcups/jdatadbf.c prnt/hpcups/jinclude.h \
 
460
        prnt/hpcups/Lidil.cpp prnt/hpcups/Lidil.h \
 
461
        prnt/hpcups/LidilCompress.cpp prnt/hpcups/LidilCompress.h \
 
462
        prnt/hpcups/LidilPrintModes.h prnt/hpcups/dj3320ColorMaps.cpp \
 
463
        prnt/hpcups/dj3600ColorMaps.cpp prnt/hpcups/dj3320PrintModes.h \
 
464
        prnt/hpcups/dj4100PrintModes.h
 
465
 
 
466
hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
 
467
hpcups_LDADD = -ljpeg -ldl -lcups -lcupsimage $(DBUS_LIBS)
 
468
#else
 
469
#hpcupsdir = $(cupsfilterdir)
 
470
#hpcups_PROGRAMS = hpcups
 
471
#hpcups_SOURCES = prnt/hpijs/hpcups.cpp prnt/hpijs/hpcups.h prnt/hpijs/services.cpp prnt/hpijs/services.h prnt/hpijs/hpiom.c prnt/hpijs/hpiom.h prnt/hpijs/bug.h prnt/hpijs/hpimage.cpp prnt/hpijs/hpimage.h
 
472
#hpcups_CXXFLAGS = $(libapdk_la_CXXFLAGS)
 
473
#hpcups_CFLAGS = $(libapdk_la_CFLAGS)
 
474
#if HPCUPS_ONLY_BUILD
 
475
#hpcups_LDADD = libapdk.la -ljpeg -ldl -lcups -lcupsimage
 
476
#else
 
477
#hpcups_LDADD = libapdk.la -ljpeg -ldl libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -lcupsimage
 
478
#endif #HPCUPS_ONLY_BUILD
 
479
#endif # NEW_HPCUPS
 
480
if !HPCUPS_ONLY_BUILD
 
481
if FAX_BUILD
 
482
# hpcupsfax
 
483
hpcupsfaxdir = $(cupsfilterdir)
 
484
hpcupsfax_PROGRAMS = hpcupsfax
 
485
hpcupsfax_SOURCES = prnt/hpijs/hpcupsfax.cpp prnt/hpijs/hpcupsfax.h
 
486
hpcupsfax_LDADD = libhpip.la -lcups -lcupsimage
 
487
endif # FAX_BUILD
 
488
endif # HPCUPS ONLY
 
489
endif # HPCUPS_INSTALL
 
490
 
 
491
# PPDs
 
492
ppddir = $(hpppddir)
 
493
dist_ppd_DATA = $(foomatic_ps_printers)
 
494
if FOOMATIC_PPD_INSTALL
 
495
dist_ppd_DATA += $(foomatic_ppd_printers)
 
496
endif
 
497
if FOOMATIC_DRV_INSTALL
 
498
cupsdrvdir = $(drvdir)
 
499
cupsdrv_DATA = $(foomatic_drv)
 
500
endif
 
501
if CUPS_PPD_INSTALL
 
502
dist_ppd_DATA += $(cups_ppd_printers)
 
503
endif
 
504
if CUPS_DRV_INSTALL
 
505
cupsdrv2dir = $(drvdir)
 
506
cupsdrv2_DATA = $(cups_drv)
 
507
endif
 
508
 
 
509
install-dist_hplip_LogDATA:
 
510
if FULL_BUILD
 
511
        test -z "$(DESTDIR)$(hplip_Logdir)" || mkdir -p $(DESTDIR)$(hplip_Logdir)
 
512
        chgrp "lp" -R $(DESTDIR)$(hplip_Logdir)
 
513
        chmod 774 $(DESTDIR)$(hplip_Logdir)
 
514
endif   #FULL_BUILD
 
515
if HPLIP_BUILD
 
516
        test -z "$(DESTDIR)$(hplip_Logdir)" || mkdir -p $(DESTDIR)$(hplip_Logdir)
 
517
        chgrp "lp" -R $(DESTDIR)$(hplip_Logdir)
 
518
        chmod 774 $(DESTDIR)$(hplip_Logdir)
 
519
endif   #FULL_BUILD
 
520
 
 
521
install-data-hook:
 
522
if HPLIP_BUILD
 
523
#          If scanner build, add hpaio entry to sane dll.conf.
 
524
        if [ "$(scan_build)" = "yes" ]; then \
 
525
           $(mkinstalldirs) $(DESTDIR)/etc/sane.d; \
 
526
           if [ ! -f $(DESTDIR)/etc/sane.d/dll.conf ]; then \
 
527
                  touch $(DESTDIR)/etc/sane.d/dll.conf; \
 
528
           fi; \
 
529
           if ! grep ^hpaio $(DESTDIR)/etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
 
530
                  echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
 
531
                  echo hpaio >>$(DESTDIR)/etc/sane.d/dll.conf ; \
 
532
           fi \
 
533
        fi
 
534
if FULL_BUILD
 
535
#          Create hp-xxx commands in bindir.
 
536
        $(mkinstalldirs) $(DESTDIR)$(bindir)
 
537
        for i in $(dist_cmd_SCRIPTS); do \
 
538
           cmd=`basename $$i .py`; \
 
539
           if [ ! \( "$$cmd" = "toolbox" -a "$(gui_build)" = "no" \) ]; then \
 
540
                  ln -sf ../share/$(PACKAGE)/$$i $(DESTDIR)$(bindir)/hp-$$cmd; \
 
541
           fi \
 
542
        done
 
543
#
 
544
#          Install fax support.
 
545
        if [ "$(fax_build)" = "yes" ]; then \
 
546
           mv $(DESTDIR)$(hpfaxdir)/hpfax.py $(DESTDIR)$(hpfaxdir)/hpfax; \
 
547
           chmod 700 $(DESTDIR)$(hpfaxdir)/hpfax; \
 
548
        fi
 
549
#
 
550
#       Make backend run as root.
 
551
#       chmod 700 $(DESTDIR)$(hpdir)/hp
 
552
endif # FULL_BUILD
 
553
endif # HPLIP_BUILD
 
554
 
 
555
uninstall-hook:
 
556
if HPLIP_BUILD
 
557
#          Remove hp-xxx commands.
 
558
        for i in $(dist_cmd_SCRIPTS); do \
 
559
                cmd=`basename $$i .py`; \
 
560
                rm -f $(DESTDIR)$(bindir)/hp-$$cmd; \
 
561
        done
 
562
#
 
563
#          Remove fax support.
 
564
        rm -f $(DESTDIR)$(hpfaxdir)/hpfax
 
565
endif
 
566
 
 
567
rpm:
 
568
if FULL_BUILD
 
569
        epm -f rpm hplipfull hplip.list
 
570
endif
 
571
if LITE_BUILD
 
572
        epm -f rpm hpliplite hplip.list
 
573
endif
 
574
if HPCUPS_ONLY_BUILD
 
575
        epm -f rpm hpliphpcupsonly hplip.list
 
576
endif
 
577
if HPIJS_ONLY_BUILD
 
578
        epm -f rpm hpliphpijsonly hplip.list
 
579
endif
 
580
 
 
581
deb:
 
582
if FULL_BUILD
 
583
        epm -f deb hplipfull hplip.list
 
584
endif
 
585
if LITE_BUILD
 
586
        epm -f deb hpliplite hplip.list
 
587
endif
 
588
if HPCUPS_ONLY_BUILD
 
589
        epm -f deb hpliphpcupsonly hplip.list
 
590
endif
 
591
if HPIJS_ONLY_BUILD
 
592
        epm -f deb hpliphpijsonly hplip.list
 
593
endif