aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2023-06-25 14:30:09 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2023-06-25 14:44:03 +0000
commit1237feacf2ac1214abeb3b68b3f6412b7a90c418 (patch)
tree57a1f71445113274533abd5978e9fb7b9fdf5fa3 /print
parentdff31335fa89933bc6236eb0dce78b1c6d7ec4e4 (diff)
downloadports-1237feacf2ac1214abeb3b68b3f6412b7a90c418.tar.gz
ports-1237feacf2ac1214abeb3b68b3f6412b7a90c418.zip
Diffstat (limited to 'print')
-rw-r--r--print/hplip/files/patch-Makefile.in34
-rw-r--r--print/hplip/files/patch-prnt_cupsext_cupsext.c16
-rw-r--r--print/hplip/files/patch-prnt_hpcups_Mode9.cpp11
-rw-r--r--print/hplip/files/patch-prnt_hpcups_ModeDeltaPlus.cpp13
-rw-r--r--print/hplip/files/patch-prnt_hpps_pserror.c11
-rw-r--r--print/hplip/files/patch-scan_sane_bb__ledm.c10
-rw-r--r--print/hplip/files/patch-scan_sane_http.c10
-rw-r--r--print/hplip/files/patch-scan_sane_orblite.c22
8 files changed, 115 insertions, 12 deletions
diff --git a/print/hplip/files/patch-Makefile.in b/print/hplip/files/patch-Makefile.in
index 0cb028e2d783..55b0a117b418 100644
--- a/print/hplip/files/patch-Makefile.in
+++ b/print/hplip/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2022-02-23 07:42:31 UTC
+--- Makefile.in.orig 2023-06-02 08:11:21 UTC
+++ Makefile.in
-@@ -96,8 +96,7 @@ DIST_COMMON = $(am__configure_deps) \
+@@ -113,8 +113,7 @@ DIST_COMMON = $(am__configure_deps) \
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@LIBUSB01_BUILD_TRUE@am__append_5 = io/hpmud/musb_libusb01.c
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@LIBUSB01_BUILD_TRUE@am__append_6 = -lusb
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@LIBUSB01_BUILD_FALSE@am__append_7 = io/hpmud/musb.c
@@ -10,7 +10,7 @@
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@NETWORK_BUILD_TRUE@am__append_10 = -Iprotocol/discovery
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@NETWORK_BUILD_TRUE@am__append_11 = -l$(SNMPLIB) -lcrypto
-@@ -125,7 +124,6 @@ DIST_COMMON = $(am__configure_deps) \
+@@ -142,7 +141,6 @@ DIST_COMMON = $(am__configure_deps) \
@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@am__append_17 = libhpipp.la
@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@NETWORK_BUILD_TRUE@am__append_18 = libhpdiscovery.la
@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@NETWORK_BUILD_TRUE@am__append_19 = -Iprotocol/discovery
@@ -18,7 +18,15 @@
@FULL_BUILD_TRUE@@GUI_BUILD_TRUE@@HPLIP_BUILD_TRUE@@QT3_INSTALL_TRUE@am__append_21 = ui/colorcalform2_base.ui ui/settingsdialog_base.ui ui/aligntype6form1_base.ui \
@FULL_BUILD_TRUE@@GUI_BUILD_TRUE@@HPLIP_BUILD_TRUE@@QT3_INSTALL_TRUE@ ui/aboutdlg_base.ui ui/imagepropertiesdlg_base.ui ui/paperedgealignform_base.ui ui/aligntype6form2_base.ui \
@FULL_BUILD_TRUE@@GUI_BUILD_TRUE@@HPLIP_BUILD_TRUE@@QT3_INSTALL_TRUE@ ui/nodevicesform_base.ui ui/cleaningform_base.ui ui/colorcalform_base.ui ui/devmgr4_base.ui ui/loadpaperform_base.ui \
-@@ -4645,7 +4643,7 @@ dist_unrel_DATA =
+@@ -453,7 +451,6 @@ scanext_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAG
+ @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@SCAN_BUILD_TRUE@am_scanext_la_rpath = -rpath \
+ @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@SCAN_BUILD_TRUE@ $(scanextdir)
+ @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@am__EXEEXT_1 = ptest$(EXEEXT)
+-@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@am__EXEEXT_2 = hppgsz$(EXEEXT)
+ PROGRAMS = $(bin_PROGRAMS) $(dat2drv_PROGRAMS) $(hp_PROGRAMS) \
+ $(hpcdmfax_PROGRAMS) $(hpcups_PROGRAMS) $(hpcupsfax_PROGRAMS) \
+ $(hpps_PROGRAMS) $(locatedriver_PROGRAMS) $(noinst_PROGRAMS)
+@@ -4837,7 +4834,7 @@ dist_unrel_DATA =
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@@SCAN_BUILD_TRUE@ $(am__append_2)
#libhpdiscovery_la_SOURCES = protocol/discovery/mdns.c protocol/discovery/mdns.h
@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpdiscovery_la_SOURCES = protocol/discovery/avahiDiscovery.c protocol/discovery/avahiDiscovery.h
@@ -27,7 +35,7 @@
@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpdiscovery_la_LDFLAGS = -version-info 0:1:0 -L$(libdir)
@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpdiscovery_la_LIBADD = -l$(SNMPLIB) -lcrypto -lavahi-client -lavahi-core -lavahi-common $(DBUS_LIBS)
-@@ -4705,7 +4703,7 @@ dist_unrel_DATA =
+@@ -4897,7 +4894,7 @@ dist_unrel_DATA =
@HPLIP_BUILD_TRUE@dist_halpre_DATA = data/rules/20-hplip-devices.fdi
# hplip.conf
@@ -36,7 +44,15 @@
@HPLIP_BUILD_TRUE@hplip_conf_DATA = hplip.conf
#pstotiff filter
-@@ -5027,7 +5025,7 @@ libapdk_la_CFLAGS = $(libapdk_la_CXXFLAGS) -Iprnt/hpij
+@@ -5128,7 +5125,6 @@ dist_unrel_DATA =
+ @RIP_INSTALL_TRUE@dist_rip_SCRIPTS = prnt/hpijs/foomatic-rip-hplip
+
+ # apdk
+-noinst_LTLIBRARIES = libapdk.la
+ libapdk_la_SOURCES = prnt/hpijs/models.cpp prnt/hpijs/breaks_open.cpp \
+ prnt/hpijs/dj9xxvip.cpp prnt/hpijs/dj9xx.cpp prnt/hpijs/capture.cpp prnt/hpijs/colormatch.cpp prnt/hpijs/colormatcher_open.cpp \
+ prnt/hpijs/compression.cpp prnt/hpijs/context2.cpp prnt/hpijs/create_so.cpp prnt/hpijs/creator.cpp \
+@@ -5219,7 +5215,7 @@ libapdk_la_CFLAGS = $(libapdk_la_CXXFLAGS) -Iprnt/hpij
@HPCUPS_INSTALL_TRUE@ prnt/hpcups/ImageProcessor.h
@HPCUPS_INSTALL_TRUE@hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
@@ -45,7 +61,7 @@
#else
#hpcupsdir = $(cupsfilterdir)
#hpcups_PROGRAMS = hpcups
-@@ -9562,7 +9560,7 @@ install-data-am: install-apparmor_abstractionDATA \
+@@ -9951,7 +9947,7 @@ install-data-am: install-apparmor_abstractionDATA \
install-dist_basepexpectDATA install-dist_cmdSCRIPTS \
install-dist_copierDATA install-dist_faxDATA \
install-dist_fax_filtersDATA install-dist_filterDATA \
@@ -54,7 +70,7 @@
install-dist_homeDATA install-dist_hpcupsfaxppdDATA \
install-dist_hpfaxSCRIPTS install-dist_hpijsfaxppdDATA \
install-dist_hplipSCRIPTS install-dist_hplip_stateDATA \
-@@ -9580,7 +9578,6 @@ install-data-am: install-apparmor_abstractionDATA \
+@@ -9969,7 +9965,6 @@ install-data-am: install-apparmor_abstractionDATA \
install-dist_policykit_policyDATA install-dist_postscriptDATA \
install-dist_ppdDATA install-dist_printpluginsDATA \
install-dist_prntDATA install-dist_ripSCRIPTS \
@@ -62,7 +78,7 @@
install-dist_scanDATA install-dist_selinuxDATA \
install-dist_ui4DATA install-dist_ui5DATA install-dist_uiDATA \
install-dist_unrelDATA install-dist_www0DATA \
-@@ -9814,14 +9811,8 @@ install-data-hook:
+@@ -10207,14 +10202,8 @@ install-data-hook:
@HPLIP_BUILD_TRUE@ fi
# If scanner build, add hpaio entry to sane dll.conf.
@HPLIP_BUILD_TRUE@@HPLIP_CLASS_DRIVER_FALSE@ if [ "$(scan_build)" = "yes" ]; then \
diff --git a/print/hplip/files/patch-prnt_cupsext_cupsext.c b/print/hplip/files/patch-prnt_cupsext_cupsext.c
new file mode 100644
index 000000000000..c2336633c873
--- /dev/null
+++ b/print/hplip/files/patch-prnt_cupsext_cupsext.c
@@ -0,0 +1,16 @@
+--- prnt/cupsext/cupsext.c.orig 2023-06-02 08:02:35 UTC
++++ prnt/cupsext/cupsext.c
+@@ -89,6 +89,13 @@ Sanjay Kumar
+ #include "hp_ipp.h"
+ #include "utils.h"
+
++void _releaseCupsInstance(void);
++int addCupsPrinter(char *name, char *device_uri, char *location,
++ char *ppd_file, char *model, char *info);
++int delCupsPrinter(char *pr_name);
++int setDefaultCupsPrinter(char *pr_name);
++int controlCupsPrinter(char *pr_name, int op);
++
+ /* Ref: PEP 353 (Python 2.5) */
+ #if PY_VERSION_HEX < 0x02050000
+ typedef int Py_ssize_t;
diff --git a/print/hplip/files/patch-prnt_hpcups_Mode9.cpp b/print/hplip/files/patch-prnt_hpcups_Mode9.cpp
new file mode 100644
index 000000000000..68be6f7a0dcf
--- /dev/null
+++ b/print/hplip/files/patch-prnt_hpcups_Mode9.cpp
@@ -0,0 +1,11 @@
+--- prnt/hpcups/Mode9.cpp.orig 2023-06-02 08:02:35 UTC
++++ prnt/hpcups/Mode9.cpp
+@@ -203,7 +203,7 @@ bool Mode9::Process(RASTERDATA* input)
+ unsigned int offset,byte_count,rem_count;
+ Mode9_comtype command;
+ char* dest= (char*) compressBuf;
+- register char *dptr=dest;
++ char *dptr=dest;
+
+ while ( size > 0 )
+ {
diff --git a/print/hplip/files/patch-prnt_hpcups_ModeDeltaPlus.cpp b/print/hplip/files/patch-prnt_hpcups_ModeDeltaPlus.cpp
new file mode 100644
index 000000000000..c468c6493b4c
--- /dev/null
+++ b/print/hplip/files/patch-prnt_hpcups_ModeDeltaPlus.cpp
@@ -0,0 +1,13 @@
+--- prnt/hpcups/ModeDeltaPlus.cpp.orig 2023-06-02 08:02:35 UTC
++++ prnt/hpcups/ModeDeltaPlus.cpp
+@@ -241,8 +241,8 @@ bool ModeDeltaPlus::compress (BYTE *outmem,
+ const uint32_t inheight,
+ uint32_t horz_ht_dist)
+ {
+- register BYTE *outptr = outmem;
+- register uint32_t col;
++ BYTE *outptr = outmem;
++ uint32_t col;
+ const BYTE *seedrow;
+ uint32_t seedrow_count = 0;
+ uint32_t location = 0;
diff --git a/print/hplip/files/patch-prnt_hpps_pserror.c b/print/hplip/files/patch-prnt_hpps_pserror.c
new file mode 100644
index 000000000000..050af911b09a
--- /dev/null
+++ b/print/hplip/files/patch-prnt_hpps_pserror.c
@@ -0,0 +1,11 @@
+--- prnt/hpps/pserror.c.orig 2023-06-02 08:02:35 UTC
++++ prnt/hpps/pserror.c
+@@ -24,7 +24,7 @@ void message(int flags, char *format, ...)
+ void message(int flags, char *format, ...)
+ {
+ va_list args ;
+- static column = 0 ; /* current screen column for message wrap */
++ static int column = 0 ; /* current screen column for message wrap */
+ char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */
+ char *bufptr = msgbuf ; /* message buffer pointer */
+
diff --git a/print/hplip/files/patch-scan_sane_bb__ledm.c b/print/hplip/files/patch-scan_sane_bb__ledm.c
new file mode 100644
index 000000000000..ae4576e86667
--- /dev/null
+++ b/print/hplip/files/patch-scan_sane_bb__ledm.c
@@ -0,0 +1,10 @@
+--- scan/sane/bb_ledm.c.orig 2023-06-02 08:02:36 UTC
++++ scan/sane/bb_ledm.c
+@@ -16,6 +16,7 @@
+ # include <string.h>
+ # include <fcntl.h>
+ # include <math.h>
++# include <unistd.h>
+ # include "sane.h"
+ # include "saneopts.h"
+ # include "hpmud.h"
diff --git a/print/hplip/files/patch-scan_sane_http.c b/print/hplip/files/patch-scan_sane_http.c
new file mode 100644
index 000000000000..6b58cfb83c23
--- /dev/null
+++ b/print/hplip/files/patch-scan_sane_http.c
@@ -0,0 +1,10 @@
+--- scan/sane/http.c.orig 2023-06-02 08:02:36 UTC
++++ scan/sane/http.c
+@@ -36,6 +36,7 @@
+ #include <string.h>
+ #include <syslog.h>
+ #include <ctype.h>
++#include <unistd.h>
+ #include "hpmud.h"
+ #include "http.h"
+
diff --git a/print/hplip/files/patch-scan_sane_orblite.c b/print/hplip/files/patch-scan_sane_orblite.c
index e3aed6fae952..c3c65cd210f8 100644
--- a/print/hplip/files/patch-scan_sane_orblite.c
+++ b/print/hplip/files/patch-scan_sane_orblite.c
@@ -1,6 +1,22 @@
---- scan/sane/orblite.c.orig 2022-03-07 20:11:09 UTC
+--- scan/sane/orblite.c.orig 2023-06-25 13:07:58 UTC
+++ scan/sane/orblite.c
-@@ -315,7 +315,7 @@ orblite_open (SANE_String_Const devicename, SANE_Handl
+@@ -19,6 +19,7 @@
+ #undef NDEBUG
+ #include "orblitei.h"
+ #include "orblite.h"//Added New
++#include <dlfcn.h>
+ #include <math.h>
+ #include "utils.h"
+ #include "io.h"
+@@ -195,7 +196,6 @@ static int bb_unload(SANE_THandle ps)
+
+ static int bb_unload(SANE_THandle ps)
+ {
+- _DBG("Calling orblite bb_unload: \n");
+ if (ps->bb_handle)
+ {
+ dlclose(ps->bb_handle);
+@@ -315,7 +315,7 @@ orblite_close (SANE_Handle handle)
void
orblite_close (SANE_Handle handle)
{
@@ -17,7 +33,7 @@
}
-@@ -372,7 +373,7 @@ orblite_read (SANE_Handle handle, SANE_Byte * data, SA
+@@ -372,7 +373,7 @@ orblite_cancel (SANE_Handle handle)
void
orblite_cancel (SANE_Handle handle)
{