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
|
|
|
|
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
|
2012-08-06 05:33:36 +00:00
|
|
|
ENV.append_to_cflags "-I#{MacOS::X11.include} -#{MacOS::X11.include}/freetype2"
|
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);
|