2021-01-22 17:27:21 +01:00
|
|
|
# $NetBSD: Makefile,v 1.90 2021/01/22 16:27:21 nros Exp $
|
2001-10-04 13:58:37 +02:00
|
|
|
|
Update "xpdf" package to version 3.04. Changes since version 3.03:
- New text extractor.
- Added the pdftohtml tool.
- Added the pdftopng tool.
- New trapezoid-based rasterizer core (for performance).
- Generate appearance streams for Line, PolyLine, and Polygon
annotations.
- Added the closeWindowOrQuit command, and changed the default binding
for ctrl-W from closeWindow to closeWindowOrQuit.
- Implemented the new AES-256 mode (R=6, Acrobat X).
- Add an object cache.
- Added a small cache for object streams.
- Modify PSOutputDev to use LZW compression instead of RLE, with a
fallback to RLE if the "psLZW no" setting is given.
- Pdfinfo now prints page rotation info.
- Modified ImageOutputDev, used by pdfimages, to output the masks and
soft masks used when drawing images.
- Remove non-printable characters from error output, just in case they
might cause problems for the terminal program.
- Added initial support for Code3of9 bar codes in XFA forms.
- Added the mapExtTrueTypeFontsViaUnicode xpdfrc command.
- Apply stroke adjustment to rectangular images and clipping regions (in
addition to strokes and fills).
- Decode JPEG 2000 images at less than full resolution if the full res
image isn't needed (i.e., if the raw image is higher resolution than
the output).
- Implemented knockout groups.
- Removed t1lib support.
- Added support for images with 16-bit components.
- Rewrote the Dict class to use a hash table; as a side effect, this
handles dictionaries with multiple definitions for a key, which are
in violation of the spec, but Acrobat appears to handle.
- The transformed line width computation -- used to implement the
minLineWidth setting, and the hairline threshold in monochrome mode --
was incorrect.
- Pdftops was not correctly handling the case where it couldn't find
a 16-bit font -- this led to crashes and/or invalid PostScript.
- A bug in FlateStream::getBlock() was causing problems with narrow
images.
- Use the correct _WIN32 define instead of WIN32.
- Use copy-on-write for the clip path in SplashState (when doing gsave),
for performance.
- Added a Solaris-specific entry to the ghostscript font search path.
- SplashState was initializing line width to 0 instead of 1.
- Abort processing on a content stream after getting 500 errors
(undefined operator, wrong number of args) -- this avoids very long
processing time for malicious PDF files using bogus RLE encoded
content streams.
- Added the psUseCropBoxAsPage xpdfrc option; "pdftops -pagecrop" now
sets psUseCropBoxAsPage; "pdftops -pagecrop -paper match" now uses
the CropBox as the page size.
- Re-architected the AcroForm support code into a separate AcroForm
module.
- Fixed the handling of overprinting/transparency interaction, using
the CompatibleOverprint blend mode.
- The TIFF predictor code for the 1-bit-per-pixel case was broken.
- For triangle and patch mesh shadings (types 4-7) with color functions,
interpolate the function parameter not the color.
- Check the fontFile/fontDir commands before (instead of after) doing
Base-14 substitution in PS output.
- Correctly handle non-embedded TrueType fonts that have an Identity
ToUnicode mapping (display and PS output were failing).
- Added support for XFA form rendering, including an "enableXFA" xpdfrc
setting.
- Handle PFB Type 1 fonts when generating PostScript output.
- Unwind any extraneous saved graphics state at the end of the page
(before drawing annotations).
- Added some integer overflow checks in the GString class.
- Handle 16-bit components in JPEG 2000 images.
- ActualText spans can end without a valid font, in which case
TextPage::beginWord was crashing.
- The Domain entry in function shadings wasn't being parsed correctly.
- Fixed a bug in the JPEG decoder - successive approximation
(progressive mode) coefficients weren't being handled correctly.
- Added a better infinite loop test to the xref parser.
- When generating PostScript, merge reused TrueType fonts (if their
code-to-GID mappings are the same).
- Tweak the Gouraud triangle shaded fill code to end the recursive
splitting if the triangles get sufficiently small.
- Do bilinear interpolation when upsampling images.
- When skipping extraneous image data from an inline image, look for
EI<whitespace> instead of just EI.
- When writing to stdout on Windows, pdftoppm now sets the file mode to
binary. [Thanks to Robert Frunzke.]
- Accept strings as well as names for the BaseFont entry in font
objects.
- Removed the TEXTOUT_WORD_LIST config option (with the new text
extractor, this is always enabled).
- Fixed a bug in the JBIG2 decoder (the TPGD context for template #3 in
readGenericBitmap was incorrect).
- Rewrote the PostScriptFunction code for performance.
- Handle 8-bit OpenType CFF fonts that are missing required tables in
the OpenType wrapper.
- Handle tiling patterns with reversed coordinates in their bounding
boxes.
- Added support for 64-bit file offsets, i.e., PDF files larger than
2GB.
- Optimize the code that rasterizes pattern-filled image masks.
- Added support for Mac OS X system fonts (Base-14 only).
- The backdrop color in luminosity-type soft mask groups was not being
handled correctly.
- Modified behavior of "pdftops -paper match -duplex ..." - it will now
duplex consecutive same-sized pages.
- Tweak the handling of degenerate fills ('moveto lineto fill') to
match Adobe.
- Don't honor the OPM=1 setting with ICCBased CMYK color spaces.
- Whole-word searches were treating certain punctuation (Unicode number
separators and terminators) as part of the word, e.g., searching for
"foo" would not match "foo,".
- Use the TextString class everywhere it makes sense.
- Removed the unnecessary segment sort in Splash (performance
optimization).
- Handle hyperlinks that use Widget-type annotations.
- Fix up the integer overflow checks to avoid issues with clever
compilers. [Thanks to Nickolai Zeldovich.]
- Correctly handle streams with missing Length entries in damaged PDF
files.
- Added a compile-time option (LOAD_FONTS_FROM_MEM) to load fonts from
memory rather than temporary files on disk.
- Added the psRasterSliceSize xpdfrc option.
- Fixed a case in the JPEG 2000 arithmetic decoder where extra data is
present in packet i, and needs to be saved for use in packet i+1.
- Fixed a bug in the JPEG 2000 decoder related to images with fewer than
8 bits per component.
- Handle the case in PSOutputDev where slice size overflows a 32-bit
integer.
- Add (partial) support for TrueType cmap format 2.
- Always pass FT_LOAD_NO_BITMAP to FreeType -- bitmaps apparently fail
with rotated characters.
- Support fonts specified in ExtGState dictionaries.
- Annotations with empty Border arrays should not draw a border.
- Fix the CMap parser to handle large CID ranges.
- Check for Type 3 CharProcs that call q or Q before the d0/d1 operator,
and treat them as uncacheable.
- Invert the selection color when starting in reverse video mode.
- Device{Gray,RGB,CMYK} cannot be mapped via a resource dict.
- Changed the PS output for masked images (explicit and color key
masking): use a plain old clip path instead of rectclip to avoid
array overflows.
- Check the StemSnapH/V arrays when converting Type 1C fonts to Type 1 -
if there are any duplicate or out-of-order values, skip that
StemSnapH/V array.
- Added the psMinLineWidth xpdfrc setting.
- Fix an obscure issue in converting TrueType fonts to Type 42, related
to empty glyph descriptions (12 zero bytes).
- Pdftops now reports an error if there were any I/O errors writing to
the PS output file.
- Fix vertical text (CJK fonts) in PS output -- offset the character
origin correctly.
- Increased the number of digits used by pdfimages for the image number
from three to four.
- Handle right-to-left (e.g., Arabic) ligatures correctly in the text
extractor.
- Added the -loc and -locPS options to pdffonts.
- Extend the object parser recursion limit to cover Stream::addFilters()
/ Stream::makeFilters() - to avoid another possibility of stack
overflow.
- Disable FreeType autohinting, because it can fail badly with font
subsets that use invalid glyph names -- except in the case of Type 1
fonts, which look much better with light autohinting.
- Modified the rasterizer pipeline functions to process a scan line at a
time (for performance).
- Removed VMS build support (it hasn't been updated in ages).
- Removed pdftotext's '-htmlmeta' option (use pdftohtml instead).
- PSOutputDev's font/form setup code, and pdffonts, were not scanning
soft mask groups in ExtGState dictionaries.
- Invalid DCT input (e.g., from a damaged PDF file) could overflow the
dctClip array.
- When upsampling an image mask or image with a large resulting image
size, do it in stream mode instead of prescaling the whole image
(to avoid running out of memory).
- Added infinite loop detection to pdffonts.
2014-08-01 14:31:27 +02:00
|
|
|
DISTNAME= xpdf-3.04
|
2001-10-04 13:58:37 +02:00
|
|
|
CATEGORIES= print
|
2021-01-22 17:27:21 +01:00
|
|
|
MASTER_SITES= https://dl.xpdfreader.com/old/
|
2015-03-07 16:30:58 +01:00
|
|
|
PKGREVISION= 1
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.xpdfreader.com/
|
2019-10-23 00:21:26 +02:00
|
|
|
COMMENT= Display tool for PDF files (Motif version)
|
2009-10-16 21:36:29 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2007-04-06 16:29:59 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2010-06-13 10:56:04 +02:00
|
|
|
DEPENDS+= urw-fonts-[0-9]*:../../fonts/urw-fonts
|
2009-11-15 23:31:51 +01:00
|
|
|
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
|
2001-10-04 13:58:37 +02:00
|
|
|
|
|
|
|
CONFLICTS= xpdf-crypto-[0-9]*
|
|
|
|
|
2004-02-02 14:02:49 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2005-09-07 17:19:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2002-08-25 23:48:57 +02:00
|
|
|
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
|
|
|
|
MAKE_ENV+= SED=${SED:Q} ECHO=${ECHO:Q}
|
2001-10-04 13:58:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
|
|
|
|
CONFIGURE_ARGS+= --enable-a4-paper
|
|
|
|
.endif
|
|
|
|
|
2002-09-19 03:45:42 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/xpdf
|
|
|
|
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
|
|
|
|
|
2006-01-12 03:02:16 +01:00
|
|
|
SUBST_CLASSES+= paths
|
2009-11-14 00:12:02 +01:00
|
|
|
#SUBST_FILES.paths= doc/pdffonts.1 doc/pdfimages.1 doc/pdfinfo.1
|
|
|
|
#SUBST_FILES.paths+= doc/pdftoppm.1 doc/pdftops.1 doc/pdftotext.1
|
2006-01-12 14:56:12 +01:00
|
|
|
SUBST_FILES.paths+= doc/sample-xpdfrc doc/xpdf.1 doc/xpdfrc.5
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.paths= PREFIX
|
|
|
|
SUBST_VARS.paths+= PKG_SYSCONFDIR
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
2003-03-25 15:02:37 +01:00
|
|
|
|
2006-11-06 11:47:18 +01:00
|
|
|
OWN_DIRS= share/xpdf
|
2003-03-25 15:02:37 +01:00
|
|
|
|
2006-05-31 09:57:17 +02:00
|
|
|
BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.2.1
|
|
|
|
|
2004-04-19 01:58:29 +02:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2006-11-06 11:47:18 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2004-04-19 01:58:29 +02:00
|
|
|
.include "../../mk/motif.buildlink3.mk"
|
2002-08-25 23:48:57 +02:00
|
|
|
|
2001-10-04 13:58:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2002-09-19 03:45:42 +02:00
|
|
|
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-O[0-9]*}
|
|
|
|
.endif
|