pkgsrc/print/xpdf/Makefile

58 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.26 2003/11/07 16:34:41 gavan Exp $
Updated to 2.03. PR pkg/23165, Greg Troxel <gdt@ir.bbn.com>. Changelog: 2.03 (2003-oct-10) ------------------ Rewrote the text extractor to: - do a better job with rotated text; - handle right-to-left scripts; - be faster. Changed the zoom setting to use a percentage (relative to 72 dpi) instead of a zoom "factor". If the PDF file has an outline, open the outline pane initially. Added -f and -l options to pdfinfo; print multiple page sizes. The HAVE_XTAPPSETEXITFLAG test in XPDFApp.cc was backwards. The BitsPerComponent entry is optional in image mask objects. Render any annotation with an appearance stream, instead of just Widget and Stamp annotations. Fix a bug in the TrueType font checker: the test for an unsorted 'loca' table was wrong. Modify the TrueType cmap selection algorithm yet again to try to match Adobe's behavior. Changed sqrt(2) to sqrt(2.0) in pdfinfo.cc to make various compilers happy. Fixed a deadlock problem (when MULTITHREADING is set); cleaned up some other problems with the locking code. Fixed a bug in the interpolation code for type 0 (sampled) functions. Implemented type 1 (function-based) shaded fills. Fixed some stupid bugs in the JBIG2 decoder (introduced with the previous optimization work). Fixed a typo in the code that parses vertical font metrics for CID fonts that was causing a seg fault. Fixed a couple of bugs that were causing seg faults with badly damaged PDF files. Limit the number of nested Forms to avoid infinite recursion (in buggy PDF files). Add a special case for rectangular clip regions - make sure these don't drop pixels on the right and bottom edges. Tell FreeType not to use glyph bitmaps when in anti-aliased mode. Read all of the border style info for links. All of the shaded fill types now do at least one bisection to avoid problems when the colors at the endpoints of the domain are the same. If the Length2 parameter for an embedded Type 1 font was incorrect (too small), pdftops was losing font data. Deal with (broken) DCT streams that use the same component ID number for different components. The MediaBox page attribute was not being inherited correctly. Fixed a bug in the Type 1C font converter related to local subroutines. The Type 1C -> Type 1 font converter was allocating the font dictionary one slot too small. Added a missing private dictionary entry to Type 1 fonts generated by the Type 1C converter. [Thanks to Michael Shell.] Fixed bugs in the tiling pattern fill code. Try the TrueType 0xf000 char code offset hack for the MacRoman encoding too (in addition to MS Symbol). Update the font metrics info for the Base 14 fonts to include the Euro character. SECURITY HOLE: Escape various characters in URLs before running a web browser (or movie viewer). [Fixed in 2.02p11] SECURITY HOLE: In the dialog used to verify "launch" links, provide a scrolling view if the command to be run is excessively long. [Fixed in 2.02p11] Added an option to disable insertion of page breaks (form feed characters) in extracted text (pdftotext -nopgbrk; xpdfrc "textPageBreaks" option). Check for 8-bit fonts that specify an out-of-range FirstChar or LastChar. Correctly handle an obsolete Type 2 charstring op (in the Type 1C-to-Type 1 font converter). [Thanks to Helge Blischke.] Use the font encoding info to fill in holes in the ToUnicode map. Added character names for Bulgarian (in the Cyrillic support pacakage) and Greek. Handle clipping to text in xpdf and pdftops. Fix color space detection in DCT decoder. [Thanks to Dwight Kelly.] Added the "unicodeToUnicode" xpdfrc option, intended (initially) for Arabic support. Handle the case in PSOutputDev where two font objects refer to the same embedded TrueType font, but with different encodings. [Thanks to Frank Siegert.] Kill any pre-existing path before drawing a form (or annotation). Save state before rendering page content; restore state afterward. Fix Stream::reset/close to work correctly with encoder streams; fix PSOutputDev to use Stream::close consistently. Fix a seg fault when hitting the 'back' button after closing a file. GfxState::getStrokeGray was returning the fill gray value (this only affected Level 1 PS output). Change PSOutputDev to reuse dictionaries in Level 1 mode (since Level 1 PS interpreters don't do garbage collection). [Thanks to Frank Siegert.] PSOutputDev was generating incorrect translations for landscape-mode pages. Implemented shading pattern color spaces. PSOutputDev wasn't correctly handling Type 3 fonts which used image resources (as opposed to inline images). [Thanks to Frank Siegert.] The fix from 1.00 which clipped out-of-bounds points was a bit too aggressive. Do proper Floyd-Steinberg dithering in XOutputDev. Don't automatically check for a null owner password (to match Adobe's behavior). Allow the FlateDecode filter in Level 3 PostScript output. Fixed small bugs in the Type 1C -> Type 1 converter and Type 1C -> Type 0 converter. [Thanks to Tom Kacvinsky.] Work around another weird Motif problem with the right button menu (which was sometimes causing the menu to not be displayed). Make the code that handles fonts defined directly in the resource dict more robust. Add a brief description of the outline pane to the xpdf man page. Ignore extra operands to content stream operators. Fixed a bug in the CCITTFax decoder. Allow the Count entry in a Pages dictionary to be a real number (because some PDF generators actually do this). Shading pattern fills weren't being clipped correctly. Incorrect shallow copies in GfxRadialShading and StitchingFunction. The StitchingFunction destructor wasn't checking for funcs being NULL. Change the TrueType code-to-GID mapping code so it looks at the TrueType 'post' table. Set the print command in the print dialog once at startup, don't change it each time a file is (re)loaded. Generate the %%BoundingBox comment in regular PostScript files (not just EPS files). Fixed a bug in the Unicode CMap parser.
2003-10-24 03:12:52 +02:00
DISTNAME= xpdf-2.03
CATEGORIES= print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/}
2003-11-03 01:36:02 +01:00
MAINTAINER= dillo@NetBSD.org
HOMEPAGE= http://www.foolabs.com/xpdf/
COMMENT= Display tool for PDF files
DEPENDS+= ghostscript-fonts-[0-9]*:../../fonts/ghostscript-fonts
CONFLICTS= xpdf-crypto-[0-9]*
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
Updated to version 2.02. Changes: - s/USE_X11BASE/USE_X11/ - fix paths in manual pages - install shared directory for supplemental packages 2.02: ===== - Rewrote the text extractor code that assembles words into lines to better handle vertically overlapping lines. - Add the "match" option for paper size (in PostScript output). - Added support for external 16-bit TrueType fonts; added the displayCIDFontTT and displayNamedCIDFontTT commands to the xpdfrc file. - Added an Arabic language support package. - Added the Windows-1255 encoding to the Hebrew language package. - A missing NULL check was causing a crash when closing the file in a single window (which clears out the window, but leaves it open). - Deal with TrueType fonts whose glyph data is out of order - this affected both FreeType rasterization and PostScript generation. - Munge font names in PSOutputDev to avoid names that are problematic for ghostscript because they start with an out-of-limits number (e.g., 1e999foo). - Modify the TrueType font encoding deciphering algorithm in yet another attempt to match up with Acrobat's behavior. - Bounds check the indexHigh value in indexed color spaces. - The text extractor no longer bothers trying to get an average character width for Type 3 fonts, since it generally doesn't work very well (because Type 3 metrics are unreliable). - Don't crash if the user hits ctrl-G ("find again") before doing a find. - Set the button pixmap foreground color correctly. - Handle text drawn backward on 180 degree rotated pages. - Added a magic call to XtUngrabButton after calling XmCreatePopupMenu which appears to prevent some very odd problems (idea taken from the DDD source code). - Fix the MacOS X fix (needed to include <AvailabilityMacros.h>). - Fixed a bunch of Motif 1.x / X11R5 incompatibilities. [Thanks to William Bader and Albert Chin-A-Young.] - Fixed various bugs in previously untested code in the JBIG2 decoder. - Modify the XPDFCore destructor to avoid a bogus warning message from OpenMotif 2.2. - Modified the Type 1C font parser to do proper bounds checking. - Fixed the bounds checking in the TrueType font parser. - Text extractor shouldn't do block merging in physical layout mode. - Fixed a problem in PSOutputDev in level2sep mode with images in a Separation color space and with a non-default Decode array. - Text extraction with "-raw" was concatenating lines from the bottom of one column and the top of the next. - Handle Type 1C subroutines in the font converters. - Correctly handle progressive JPEG images whose scans are slightly different sizes (e.g., the Y scan rounds up to a multiple of 8 pixels and the Cb/Cr scans round up to 16 pixels). - Avoid a potential divide-by-zero problem in TextOutputDev. - Modified the T1Font and FTFont modules to correctly handle glyphs that are larger than the font's claimed bounding box. - Tweak dupMaxDeltaX parameter in TextOutputDev to avoid triggering on double characters. - Improved detection in pdfinfo for ISO paper sizes. [Thanks to Hartmut Henkel.] - Xpdf wasn't responding to the TARGETS atom, which prevented pasting the selection into various applications. [Thanks to Phillip Ezolt.] - Handle XObjects with recursive references in their Resources dictionaries (in PSOutputDev). - Change PSOutputDev to deal with invalid PDF files that use non-embedded TrueType fonts with no encoding. - Check for undersized Widths arrays in fonts. - Add bounds checking code to Array class. - Updated VMS build scripts. [Thanks to Martin Zinser.] - Tweak the TrueType font handling code (again): - char codes in symbolic fonts may or may not be offset by 0xf000 - discard empty tables because they sometimes confuse FreeType - Fixed bounds checking in the Flate decoder. - Removed a bogus error message for exponential functions without explicit C0/C1 values. [Thanks to Hartmut Henkel.] - Handle the other Unicode cmap type (platform=0) in TrueType fonts. - Added support for the SGI Motif horizontal paned window widget. [Thanks to Felix Ritter.] - Ignore extra elements in link destination arrays. - Accept external Type 1 font files with a suffix of ".ps" or no suffix at all. - Add a bounds check in the DCT decoder. - Added instructions for building xpdf.exe under cygwin/XFree86.
2003-03-25 15:02:37 +01:00
USE_X11= YES
USE_GCC_SHLIB= YES
Updated print/xpdf to version 1.01. Changes from version 1.00 include: Honoring ${PKG_SYSCONFDIR} for location of xpdfrc. Implemented Type 3 fonts. Implemented PostScript CID font embedding; added a psEmbedCIDPostScriptFonts option. Implemented PostScript 16-bit font substitution; added psNamedFont16 and psFont16 options. Moved the initialZoom setting from X resources to the xpdfrc file. Implemented the radial shading type in the sh (shaded fill) operator. [Thanks to Mike Sweet.] Added an 'include' command to the xpdfrc format. Added the displayNamedCIDFontX option so different fonts can be used within one character collection. Implemented stroked text in XOutputDev (with t1lib and FreeType2). [Thanks to Leonard Rosenthol.] Implemented stroked text in PSOutputDev. Added a built-in Unicode map for UCS-2. PSOutputDev will now embed external TrueType fonts in addition to external Type 1 fonts. Added the Big5ascii Unicode map to the Chinese-traditional support package (maps 7-bit ASCII straight through). [Thanks to Lawrence Lai.] Modified the EUC-CN and EUC-JP encodings to pass 7-bit ASCII straight through. [Thanks to Lawrence Lai.] In the code that guesses character names (for font subsets), also handle names of the form 'ABnnn'. [Thanks to Colin Granville.] Tweak the Type 1 font bbox code to look at the bboxes in both the PDF font object and the embedded font file. Added an optional displayCIDFontX entry for one of the Arphic TrueType fonts in the traditional Chinese 'add-to-xpdfrc' file. Added psASCIIHex parameter. Added the GBK Unicode map to the simplified Chinese language pack. Pdftotext now opens the text file in binary mode to avoid Microsoft's annoying automatic end-of-line translation stuff. Added an executeCommand function in goo/gfile.cc. [Thanks to Mikhail Kruk.] The %ALDImagePosition OPI comment was wrong if the page was scaled to a different paper size. The OPI code was saving the default transform matrix before calling setpagedevice, which can change the matrix. PSOutputDev now handles PostScript XObjects.
2002-09-19 03:45:42 +02:00
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CONFIGURE_ARGS+= --with-t1-includes=${BUILDLINK_PREFIX.t1lib}/include
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
MAKE_ENV+= SED="${SED}" ECHO="${ECHO}"
.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+= --enable-a4-paper
.endif
Updated print/xpdf to version 1.01. Changes from version 1.00 include: Honoring ${PKG_SYSCONFDIR} for location of xpdfrc. Implemented Type 3 fonts. Implemented PostScript CID font embedding; added a psEmbedCIDPostScriptFonts option. Implemented PostScript 16-bit font substitution; added psNamedFont16 and psFont16 options. Moved the initialZoom setting from X resources to the xpdfrc file. Implemented the radial shading type in the sh (shaded fill) operator. [Thanks to Mike Sweet.] Added an 'include' command to the xpdfrc format. Added the displayNamedCIDFontX option so different fonts can be used within one character collection. Implemented stroked text in XOutputDev (with t1lib and FreeType2). [Thanks to Leonard Rosenthol.] Implemented stroked text in PSOutputDev. Added a built-in Unicode map for UCS-2. PSOutputDev will now embed external TrueType fonts in addition to external Type 1 fonts. Added the Big5ascii Unicode map to the Chinese-traditional support package (maps 7-bit ASCII straight through). [Thanks to Lawrence Lai.] Modified the EUC-CN and EUC-JP encodings to pass 7-bit ASCII straight through. [Thanks to Lawrence Lai.] In the code that guesses character names (for font subsets), also handle names of the form 'ABnnn'. [Thanks to Colin Granville.] Tweak the Type 1 font bbox code to look at the bboxes in both the PDF font object and the embedded font file. Added an optional displayCIDFontX entry for one of the Arphic TrueType fonts in the traditional Chinese 'add-to-xpdfrc' file. Added psASCIIHex parameter. Added the GBK Unicode map to the simplified Chinese language pack. Pdftotext now opens the text file in binary mode to avoid Microsoft's annoying automatic end-of-line translation stuff. Added an executeCommand function in goo/gfile.cc. [Thanks to Mikhail Kruk.] The %ALDImagePosition OPI comment was wrong if the page was scaled to a different paper size. The OPI code was saving the default transform matrix before calling setpagedevice, which can change the matrix. PSOutputDev now handles PostScript XObjects.
2002-09-19 03:45:42 +02:00
EGDIR= ${PREFIX}/share/examples/xpdf
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
Updated to version 2.02. Changes: - s/USE_X11BASE/USE_X11/ - fix paths in manual pages - install shared directory for supplemental packages 2.02: ===== - Rewrote the text extractor code that assembles words into lines to better handle vertically overlapping lines. - Add the "match" option for paper size (in PostScript output). - Added support for external 16-bit TrueType fonts; added the displayCIDFontTT and displayNamedCIDFontTT commands to the xpdfrc file. - Added an Arabic language support package. - Added the Windows-1255 encoding to the Hebrew language package. - A missing NULL check was causing a crash when closing the file in a single window (which clears out the window, but leaves it open). - Deal with TrueType fonts whose glyph data is out of order - this affected both FreeType rasterization and PostScript generation. - Munge font names in PSOutputDev to avoid names that are problematic for ghostscript because they start with an out-of-limits number (e.g., 1e999foo). - Modify the TrueType font encoding deciphering algorithm in yet another attempt to match up with Acrobat's behavior. - Bounds check the indexHigh value in indexed color spaces. - The text extractor no longer bothers trying to get an average character width for Type 3 fonts, since it generally doesn't work very well (because Type 3 metrics are unreliable). - Don't crash if the user hits ctrl-G ("find again") before doing a find. - Set the button pixmap foreground color correctly. - Handle text drawn backward on 180 degree rotated pages. - Added a magic call to XtUngrabButton after calling XmCreatePopupMenu which appears to prevent some very odd problems (idea taken from the DDD source code). - Fix the MacOS X fix (needed to include <AvailabilityMacros.h>). - Fixed a bunch of Motif 1.x / X11R5 incompatibilities. [Thanks to William Bader and Albert Chin-A-Young.] - Fixed various bugs in previously untested code in the JBIG2 decoder. - Modify the XPDFCore destructor to avoid a bogus warning message from OpenMotif 2.2. - Modified the Type 1C font parser to do proper bounds checking. - Fixed the bounds checking in the TrueType font parser. - Text extractor shouldn't do block merging in physical layout mode. - Fixed a problem in PSOutputDev in level2sep mode with images in a Separation color space and with a non-default Decode array. - Text extraction with "-raw" was concatenating lines from the bottom of one column and the top of the next. - Handle Type 1C subroutines in the font converters. - Correctly handle progressive JPEG images whose scans are slightly different sizes (e.g., the Y scan rounds up to a multiple of 8 pixels and the Cb/Cr scans round up to 16 pixels). - Avoid a potential divide-by-zero problem in TextOutputDev. - Modified the T1Font and FTFont modules to correctly handle glyphs that are larger than the font's claimed bounding box. - Tweak dupMaxDeltaX parameter in TextOutputDev to avoid triggering on double characters. - Improved detection in pdfinfo for ISO paper sizes. [Thanks to Hartmut Henkel.] - Xpdf wasn't responding to the TARGETS atom, which prevented pasting the selection into various applications. [Thanks to Phillip Ezolt.] - Handle XObjects with recursive references in their Resources dictionaries (in PSOutputDev). - Change PSOutputDev to deal with invalid PDF files that use non-embedded TrueType fonts with no encoding. - Check for undersized Widths arrays in fonts. - Add bounds checking code to Array class. - Updated VMS build scripts. [Thanks to Martin Zinser.] - Tweak the TrueType font handling code (again): - char codes in symbolic fonts may or may not be offset by 0xf000 - discard empty tables because they sometimes confuse FreeType - Fixed bounds checking in the Flate decoder. - Removed a bogus error message for exponential functions without explicit C0/C1 values. [Thanks to Hartmut Henkel.] - Handle the other Unicode cmap type (platform=0) in TrueType fonts. - Added support for the SGI Motif horizontal paned window widget. [Thanks to Felix Ritter.] - Ignore extra elements in link destination arrays. - Accept external Type 1 font files with a suffix of ".ps" or no suffix at all. - Add a bounds check in the DCT decoder. - Added instructions for building xpdf.exe under cygwin/XFree86.
2003-03-25 15:02:37 +01:00
post-patch:
@cd ${WRKSRC}/doc && \
for f in *.1 *.5; do \
${MV} $${f} $${f}.orig; \
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
done
# Used by supplemental packages.
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf
.include "../../fonts/t1lib/buildlink2.mk"
.include "../../graphics/freetype2/buildlink2.mk"
.include "../../graphics/xpm/buildlink2.mk"
.include "../../mk/motif.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
Updated print/xpdf to version 1.01. Changes from version 1.00 include: Honoring ${PKG_SYSCONFDIR} for location of xpdfrc. Implemented Type 3 fonts. Implemented PostScript CID font embedding; added a psEmbedCIDPostScriptFonts option. Implemented PostScript 16-bit font substitution; added psNamedFont16 and psFont16 options. Moved the initialZoom setting from X resources to the xpdfrc file. Implemented the radial shading type in the sh (shaded fill) operator. [Thanks to Mike Sweet.] Added an 'include' command to the xpdfrc format. Added the displayNamedCIDFontX option so different fonts can be used within one character collection. Implemented stroked text in XOutputDev (with t1lib and FreeType2). [Thanks to Leonard Rosenthol.] Implemented stroked text in PSOutputDev. Added a built-in Unicode map for UCS-2. PSOutputDev will now embed external TrueType fonts in addition to external Type 1 fonts. Added the Big5ascii Unicode map to the Chinese-traditional support package (maps 7-bit ASCII straight through). [Thanks to Lawrence Lai.] Modified the EUC-CN and EUC-JP encodings to pass 7-bit ASCII straight through. [Thanks to Lawrence Lai.] In the code that guesses character names (for font subsets), also handle names of the form 'ABnnn'. [Thanks to Colin Granville.] Tweak the Type 1 font bbox code to look at the bboxes in both the PDF font object and the embedded font file. Added an optional displayCIDFontX entry for one of the Arphic TrueType fonts in the traditional Chinese 'add-to-xpdfrc' file. Added psASCIIHex parameter. Added the GBK Unicode map to the simplified Chinese language pack. Pdftotext now opens the text file in binary mode to avoid Microsoft's annoying automatic end-of-line translation stuff. Added an executeCommand function in goo/gfile.cc. [Thanks to Mikhail Kruk.] The %ALDImagePosition OPI comment was wrong if the page was scaled to a different paper size. The OPI code was saving the default transform matrix before calling setpagedevice, which can change the matrix. PSOutputDev now handles PostScript XObjects.
2002-09-19 03:45:42 +02:00
.if !empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
CXXFLAGS:= ${CXXFLAGS:N-O[0-9]*}
.endif