2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 16:34:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xpdf < Formula
|
2009-09-30 16:34:16 +00:00
|
|
|
homepage 'http://www.foolabs.com/xpdf/'
|
2012-02-29 21:32:56 +00:00
|
|
|
url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '499423e8a795e0efd76ca798239eb4d0d52fe248'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-02-29 21:52:20 +00:00
|
|
|
depends_on 'lesstif'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2012-02-29 21:52:20 +00:00
|
|
|
|
2013-08-30 00:03:34 +00:00
|
|
|
conflicts_with 'pdf2image', 'poppler',
|
|
|
|
:because => 'xpdf, pdf2image, and poppler install conflicting executables'
|
2013-08-29 17:13:15 +00:00
|
|
|
|
2012-02-29 21:32:56 +00:00
|
|
|
# see: http://gnats.netbsd.org/45562
|
|
|
|
def patches; DATA; end
|
|
|
|
|
2009-09-30 16:34:16 +00:00
|
|
|
def install
|
2013-07-31 17:11:01 +00:00
|
|
|
ENV.append_to_cflags "-I#{MacOS::X11.include} -I#{MacOS::X11.include}/freetype2"
|
|
|
|
ENV.append "LDFLAGS", "-L#{MacOS::X11.lib}"
|
2012-02-29 21:32:56 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
2009-09-30 16:34:16 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-10-22 18:39:18 +00:00
|
|
|
end
|
2012-02-29 21:32:56 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/xpdf/XPDFViewer.cc b/xpdf/XPDFViewer.cc
|
|
|
|
index 2de349d..e6ef7fa 100644
|
|
|
|
--- a/xpdf/XPDFViewer.cc
|
|
|
|
+++ b/xpdf/XPDFViewer.cc
|
|
|
|
@@ -1803,7 +1803,7 @@ void XPDFViewer::initToolbar(Widget parent) {
|
|
|
|
menuPane = XmCreatePulldownMenu(toolBar, "zoomMenuPane", args, n);
|
|
|
|
for (i = 0; i < nZoomMenuItems; ++i) {
|
|
|
|
n = 0;
|
|
|
|
- s = XmStringCreateLocalized(zoomMenuInfo[i].label);
|
|
|
|
+ s = XmStringCreateLocalized((char *)zoomMenuInfo[i].label);
|
|
|
|
XtSetArg(args[n], XmNlabelString, s); ++n;
|
|
|
|
XtSetArg(args[n], XmNuserData, (XtPointer)i); ++n;
|
|
|
|
sprintf(buf, "zoom%d", i);
|