summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2008-04-08 03:57:47 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2008-04-08 03:57:47 +0000
commit57da3c2f730dde4456d13c7e6595ac0f18b1c498 (patch)
tree79f2d7c3fb0b3f14c021fc6795b4242855710fcb /graphics
parent- Update to 1.30. (diff)
- 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)
Notes
Notes: svn path=/head/; revision=210815
Diffstat (limited to 'graphics')
-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 30e3d05a796d..5c0d116e4399 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 000000000000..ceab23673ba1
--- /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 000000000000..51396ee55325
--- /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 000000000000..65c3faca7da6
--- /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;
+ }