alternative from mk/jpeg.buildlink3.mk
This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).
The mechanical edits were applied via the following script:
#!/bin/sh
for d in */*; do
[ -d "$d" ] || continue
for i in "$d/"Makefile* "$d/"*.mk; do
case "$i" in *.orig|*"*"*) continue;; esac
out="$d/x"
sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
-e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
< "$i" > "$out"
if cmp -s "$i" "$out"; then
rm -f "$out"
else
echo "Edited $i"
mv -f "$i" "$i.orig" && mv "$out" "$i"
fi
done
done
provides both fmin(3) and fmax(3). The build is still broke under
NetBSD 5.0_STABLE built from sources after 2010-03-12. A possible fix
for this case is to upgrade to NetBSD 5.1*.
circumstances. This leads to NaNs passed to cairo which makes that
literally "nan" is inserted into the output file when printing. The
resulting file crashes ghostscript, and also poppler when it is fed
to it again.
I didn't read PDF specs yet to understand where the math is failing,
just avoided the division by zero.
changes:
-Security fixes from xpdf 3.02pl4
-bugfixes
-qt4 API improvements
pkgsrc change: add patch for CVE-2009-3607 (integer overflow
in create_surface_from_thumbnail_data)
(which got slightly out of sync) and use the original Makefile,
fixes an unresolved autoconf variable in the .pc file reported
by Hasso Tepper
bump PKGREVISION
This is a major update, switches to the 0.12 release branch.
Most notable change is that the color management stuff which we had
as patches in pkgsrc is official now.
Otherwise - many fixes and enhancements.
(while this is a .0 release I've been tracking the 0.11.x snapshots
and release candidate for a while so I don't expect big problems)
-if a choice field defines both an "export value" and a "name", use the
latter as "value" if selected (according to the PDF spec) -- makes
that I can fill in my company's travel expenses form correctly
(there is still an issue with captions of check boxes / radio
buttons which looks like a font problem)
-where iconv() is called to fill in a text field, use "UTF-8" and
"UTF-16BE" as encoding names rather than the less portable
"UTF8" and "UTF16BE" -- this makes it work on NetBSD
bump PKGREVISION
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
Changes since 0.10.4:
core:
* Read the UF entry if present and prefer it over F in Filespec dictionary
* Fix typo that was making CairoOutputDev crash on some files. Bug #17337
* Make JBIG2Stream more robust to corrupt input data
* Do not blindly follow loops parsing OutlineItem. Bug #18364
* Set up the error manager before calling jpeg_create_decompress. Bug #20484
* Check there is an optional content config before using it. Bug #20587
* Fix rendering of some PDF with OpenType fonts. Bug #20605
build system:
* Yet more support for build on windows
* Use AC_CHECK_HEADER to find headers. Bug #20538
* Check for pkgconfig before using it
* General autotools improvements
changes:
-fixed some crashes and a memory leak
-fixed pdfimages to work for jpeg
pkgsrc change: pulled in color management support from the development
branch (but tested by me for many weeks), as an option which is on
per default
Release 0.10.3
core:
* Fix a crash on documents with malformed outline. Bug #19024
* Fix leak on AnnotScreen destructor. Bug #19095
* Fix wrong PS generation when a large image is in Patterns. Bug #18908
* Remove BaseFile.h it was never used. Bug #19298
* Improve document saving
* Fix PS generation of PDF with malformed font Length2 definition
* Fix a leak while parsing annotations
* Fix rendering of some checkboxes
Qt4:
* Fix positioning of Form rects on PDF with cropbox
* Fix positioning of Annotation rects on PDF with cropbox. Bug #18558.
* Small documentation improvements
* Make Document::fonts() work when called more than once. Bug #19405
build system:
* CMake: look harder for openjpeg
* CMake: update the poppler core headers installation
* Autotools: do not install Function.cc as it's not a header
Qt:
* Fix deserialization of links right coordinate
Release 0.10.2
core:
* Fix a crash when selecting text in word mode
* Fix a crash in some malformed documents (second argument
of opMarkPoint is not a dictionary)
* Ensure cairo font matrix is invertable. Fixes bugs #18254
and #18429
* Fix a memory leak (Bug #18924)
Qt4:
* Fix deserization of links right coordinate
misc:
* Fix build on Solaris 10 + Sun Studio 12
* Compile with -pedantic
The previous libraries had major of 3 and now they are 4.
I didn't bump those depending on this as this update happened
months ago.
I noticed this two ways:
new poppler didn't work with my already installed evince and
new poppler didn't work with my alreadyinstalled poppler-glib.
Release 0.10.1
core:
* Improvements in Optional Content support
* Small fix in Form support
* Fix memory leak in case of error
* Fix potential crash on text search
* Try render documents with invalid indexed color space parameters. Bug #18374
* Fix crash on text extraction when poppler-data is not installed. Bug #18023
Qt:
* Fix two memory leaks
Qt4:
* Small documentation improvement
* Fix memory leak in the demo code
Release 0.10.0
core:
* Fix crashes on PDF using Stitching or Axial Shading painting
* Fix rendering of PDF with Type1 fonts that have more than
one encoding definition per line
* Do not try to save documents that have Encryption as we
do not support that and the user ended with a broken file
* Fix crash on files with OptionalContentGroup but no Name
Qt4:
* Fix the area of the links to be correctly reported on rotated documents
misc:
* Mingw+Msys should work
Release 0.9.3 (0.10 RC 2)
core:
* Fix rendering regression on some embedded fonts
* Fix rendering regression of some special fonts
* Fix crash on documents with bogus jpeg data
Qt4:
* The printing flag defaults to true on PSConverter
* Documentation improvement
utils:
* Fix regression that made HmtlOutputDev ignore jpeg images
misc:
* Improve compilation on mingw
Release 0.9.2 (0.10 RC 1)
core:
* Fix conversion to PS some files (bug #17645)
* Small Form fixes
* Small JS fixes
* Improve memory usage of the cairo renderer
utils:
* Fix mismatched free/delete in pdftohtml
* Fix memory leak in pdftohtml
* Fix crash in pdftohtml
glib:
* Fix a crash in forms demo
misc:
* Compile with -pedantic
Release 0.9.1 (0.10 Beta 2)
Core:
* Fix crash on some AESv2 encrypted files (bugs #13972, #16092, #17523)
* Improve parsing of broken files (bug #17568)
glib frontend:
* Minor improvements to the demo application
utils:
* pdftohtml: Generate the outline file in the same place
of the other generated files (bug #17504)
Release 0.9.0 (0.10 Beta 1)
Core:
* Initial JavaScript support
* Annotation improvements
* Improvements in the Arthur based renderer
* Improvements in the Cairo based renderer
* Added a JPEG2000 decoder based on OpenJPEG
* Small fixes in ActualText implementation
* Fix jpeg rendering when not using the libjpeg based decoder
* Movie fixes
* Do not get out of memory on documents that specify huge fonts
* Emulate Adobe Reader behaviour on documents with duplicate keys in Dictionaries
* Forms improvements
Qt4 frontend:
* Annotation improvements
* Forms improvements
* Add the possibility of extracting embedded fonts
* Initial Movie support
* Documentation improvements
* Small improvements in the PS exporter
glib frontend:
* Annotation improvements
* Attachment fixes
utils:
* updated man pages
* Added -listenc to pdfinfo and pdftotext