aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xpdf
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2008-04-08 11:57:47 +0800
committeraraujo <araujo@FreeBSD.org>2008-04-08 11:57:47 +0800
commitc0429d668d0d55a37cfcdfbf4a82b89ce4f1cd2a (patch)
tree21f5e032813bf2db3833129402a7821364f61131 /graphics/xpdf
parent7b07d7ffe722c14910f2bcc8a416b0f7000d30bf (diff)
downloadfreebsd-ports-graphics-c0429d668d0d55a37cfcdfbf4a82b89ce4f1cd2a.tar.gz
freebsd-ports-graphics-c0429d668d0d55a37cfcdfbf4a82b89ce4f1cd2a.tar.zst
freebsd-ports-graphics-c0429d668d0d55a37cfcdfbf4a82b89ce4f1cd2a.zip
- Adding support to recognizing the keys Ctrl+(numpad+) and Ctrl+(numpad-) to control the ZoomIn and ZoomOut.
- Bump PORTREVISION. Submitted by: Eugeny N Dzhurinsky <bofh@redwerk.com> (via email)
Diffstat (limited to 'graphics/xpdf')
-rw-r--r--graphics/xpdf/Makefile2
-rw-r--r--graphics/xpdf/files/patch-xpdf_GlobalParams.cc13
-rw-r--r--graphics/xpdf/files/patch-xpdf_GlobalParams.h11
-rw-r--r--graphics/xpdf/files/patch-xpdf_XPDFViewer.cc13
4 files changed, 38 insertions, 1 deletions
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index 30e3d05a796..5c0d116e439 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xpdf
PORTVERSION= 3.02
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
diff --git a/graphics/xpdf/files/patch-xpdf_GlobalParams.cc b/graphics/xpdf/files/patch-xpdf_GlobalParams.cc
new file mode 100644
index 00000000000..ceab23673ba
--- /dev/null
+++ b/graphics/xpdf/files/patch-xpdf_GlobalParams.cc
@@ -0,0 +1,13 @@
+--- xpdf/GlobalParams.cc.orig 2007-02-28 00:05:52.000000000 +0200
++++ xpdf/GlobalParams.cc 2008-04-04 15:44:24.000000000 +0300
+@@ -1566,6 +1566,10 @@
+ *code = xpdfKeyCodeUp;
+ } else if (!strcmp(p0, "down")) {
+ *code = xpdfKeyCodeDown;
++ } else if (!strcmp(p0, "numpad-plus")) {
++ *code = xpdfKeyPlus;
++ } else if (!strcmp(p0, "numpad-minus")) {
++ *code = xpdfKeyMinus;
+ } else if (p0[0] == 'f' && p0[1] >= '1' && p0[1] <= '9' && !p0[2]) {
+ *code = xpdfKeyCodeF1 + (p0[1] - '1');
+ } else if (p0[0] == 'f' &&
diff --git a/graphics/xpdf/files/patch-xpdf_GlobalParams.h b/graphics/xpdf/files/patch-xpdf_GlobalParams.h
new file mode 100644
index 00000000000..51396ee5532
--- /dev/null
+++ b/graphics/xpdf/files/patch-xpdf_GlobalParams.h
@@ -0,0 +1,11 @@
+--- xpdf/GlobalParams.h.orig 2007-02-28 00:05:52.000000000 +0200
++++ xpdf/GlobalParams.h 2008-04-04 15:40:29.000000000 +0300
+@@ -157,6 +157,8 @@
+ #define xpdfKeyCodeDown 0x100d
+ #define xpdfKeyCodeF1 0x1100
+ #define xpdfKeyCodeF35 0x1122
++#define xpdfKeyPlus 0x1200
++#define xpdfKeyMinus 0x1201
+ #define xpdfKeyCodeMousePress1 0x2001
+ #define xpdfKeyCodeMousePress2 0x2002
+ #define xpdfKeyCodeMousePress3 0x2003
diff --git a/graphics/xpdf/files/patch-xpdf_XPDFViewer.cc b/graphics/xpdf/files/patch-xpdf_XPDFViewer.cc
new file mode 100644
index 00000000000..65c3faca7da
--- /dev/null
+++ b/graphics/xpdf/files/patch-xpdf_XPDFViewer.cc
@@ -0,0 +1,13 @@
+--- xpdf/XPDFViewer.cc.orig 2008-04-04 15:36:27.000000000 +0300
++++ xpdf/XPDFViewer.cc 2008-04-04 15:41:05.000000000 +0300
+@@ -569,6 +569,10 @@
+ keyCode = xpdfKeyCodeDown;
+ } else if (key >= XK_F1 && key <= XK_F35) {
+ keyCode = xpdfKeyCodeF1 + (key - XK_F1);
++ } else if (key == XK_KP_Add) {
++ keyCode = xpdfKeyPlus;
++ } else if (key == XK_KP_Subtract) {
++ keyCode = xpdfKeyMinus;
+ } else {
+ return;
+ }