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
- Fixed memory reallocation on bitmap size change. Reallocation is not only
needed when dimendions and margins change, but also when the color depth
changes. Fixes bugs #691029 and #691108.
- Fixed arrayoption() macro in cups_put_params() function. Array values did
not get actually set in cups.header data structure. Bug only showed via
a compiler warning.
- Silenced compiler warning by presetting c0..c3 in cups_map_cmyk() to zero.
makes my epson USB printer work again with 2010Q3 cups+ghostscript
PKGREVISION++
"@file" args get processed, fixes PR pkg/42984 from T. M. Pederson.
I'm not 100% sure that this has no side effects (the initialization
order in gs is messy and undocumented) but I haven't found any within
some weeks of testing.
bump PKGREVISION
This is the second release in the stable 8.7x series. It features
improved handling of fonts, nesting and color fixes with
transparency objects, reduced memory footprint for the halftone cache,
as well as improvements to the pxl output devices,
and the usual number of bug and robustness fixes.
which seems to actually exist is recorded. (When I updated jpeg from
6.2 to 7, the shlib major changed, ghostscript was not rebuilt, and it
failed to run.)
Proposed on tech-pkg on 22 October, with no objections received.
The license is now GPLv3 or later. A large number of issues with
transparency were fixed. Several significant fixes to font handling,
especially when generating PDF, were made. Numerous robustness,
correctness, and performance improvements were made. Security fixes
addressing CVE-2009-0583 and CVE-2009-0792 were made. New generic
Esc/Page devices, eplmono and eplcolor, were added, as well as the
cdnj500 device to support the HP DesignJet 500. The size of PostScript
integers was limited to 32 bits, as recommended in the specification.
XXX: does not fix build with cups option and jpeg7.
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.
Approximately 100 bugs have been fixed since the 8.63 release.
Of particular note in this release are improvements to overprint and
spot color support in documents with transparency, improvements to PDF
and PS output, proper handling of PDF-specific text rendering modes and
support for reading AES-encrypted PDF documents.
Also improved is handling of CJK text, especially in vertical writing
modes, memory footprint processing some files at high resolution and
support for using the system's default paper size on unix.
The interpreter's handling of color spaces has been moved from
PostScript code to C.
A number of the included printer drivers and cups wrappers have been
updated to support a PDF-based workflow. Also fixed are several
long-standing bugs in the pcl drivers with respect to duplex, resolution
and paper tray selection.
that does not do the right thing on Darwin (where shared libs are
created with different linking flags and use dylib rather than so
as an extension).
you need to manually reconfigure unix-dll.mak to make it work, so
do it in hacks.mk.
XXX: this still leaves the issue of libgs.so (et al.) being hardwired
in PLIST, instead of using libgs.dylib (et al.). i'm not sure of
the best way to fix that. at least it compiles now....
changes:
-bugfixes
-multithreaded rendering
-Images are now always interpolated in their source colorspace
-Support for OpenPrinting Vector devices has been upgraded to version 1.0
-two new devices: cairo, svgwrite
-maximum number of color components has been reduced to 8 (from 252)
-The -Z: debugging option now uses 'realtime' instead of 'usertime'
changes: a number of bug fixes and improvements
Note: The default device in the gcc build is now the 'x11alpha' device
which provides antialiasing for display. To recover the old
default behaviour add '-sDEVICE=x11' to the command line.
option in ghostscript-esp, although there it was on by default.
Here it is off by default, which is more in keeping with how the "cups" option
is generally used - it is usually off by default, and a CUPS user would
usually add "cups" to the global options.
doesn't currently pull in CUPS itself. Generally that means the
package builds without CUPS support. However, if you are
using Pkgsrc on a system with CUPS installed via some other means (E.g.
Linux with another packaging system, or even a second Pkgsrc root probably)
then things can go wrong.
I solve this case here by explicitly disabling CUPS support. For
normal cases this should mean "No change", but in exotic cases it fixes
the build and install.
Of course, there may be value in using the CUPS support, but it isn't clear
whether the right way to do that is to add a "cups" package option or to
have a second ghostscript-cups package that CUPS depends on - it kind of
looks like the latter is closer to correct at first glance.
The major milestone of this release is a merge from the ESP Ghostscript
fork, used to support the CUPS printing system. This means that free
operating systems can now ship a single copy of upstream Ghostscript with
their releases. Thanks to Till Kamppeter and Mike Sweet for making this
possible.
This release also includes numerous important bug fixes over the previous
stable versions, as well as improvements to performance, memory footprint,
shading and image handling. We recommend this upgrade to all free users.
While here, add DESTDIR support.
In addition to the usual bug fixes, there are specific performance and
quality improvements in the areas of patterns, shading and image
filtering. Also new in this release is an implementation of the Well
Tempered Screening algorithm in an output device, using Graeme
Gill's IMDI library for efficient color mapping.
pkgsrc change: use the bundled jasper as the pkgsrc one is incompatible
There actually is an autoconf test in ghostscript for a 64-bit int, used
for GX_COLOR_INDEX_TYPE, but the fallback for that is "ulong", not
necessarily 64 bits. So to make gdevpdfe.c happy for now, force the issue.
developer is officially maintaining the package.
The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list). Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
Several changes are involved since they are all interrelated. These
changes affect about 1000 files.
The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files. Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred. This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.
The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.
The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc. The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.
The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files. Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories. These files are used as input
to imake since imake can't use stdin for that purpose.
The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead. This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed. Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries. Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
all dependencies on packages depending on "png" which contain shared
libraries, all for the (imminent) update to the "png" package.
[List courtesy of John Darrow, courtesy of "bulk-build".]
6.0.1nb1 include updating the hpijs driver to the latest released version
1.0.2. The new HPIJS device is "ijs" and replaces several older devices:
AP21xx DJ630 DJ6xx DJ6xxP DJ8xx DJ9xx DJ9xxVIP
So if you are using any of the above devices, you must use the new gs IJS
interface documented in:
${PREFIX}/share/doc/html/ghostscript/hpijs/hpijs_readme.html
This update is based on pkg/15470 by IWAMOTO Toshihiro <toshii@netbsd.org>.
Changes to the HPIJS driver include:
* Fixed a problem printing Photo Full Bleed on the Photosmart 100.
* Meet the Debian Free Software Guidelines (DFSG).
* Fixed a setpagedevice problem with the IJS client. PageSize can now
be set from postscript.
* Fixed a off-by-one error in IJS server.
* Added support for the following printers:
Deskjet 656 Photosmart 100 Apollo P-22
Deskjet 825/845 Photosmart 1115 Apollo P2500
Deskjet 920 Photosmart 1215 Apollo P2600
Deskjet 940/948 Photosmart 1315
Deskjet 995 CP 1160
Deskjet 1125 CP 1700
Deskjet 1220
Deskjet 2250
* Added support for the IJS interface.
* Added support for Duplex. When Duplex mode is set, top and bottom
margins are set to 1/2 inch.
* Added support for the following paper sizes:
Photo, Photo Full Bleed, A6, B4, B5, Oufuku-Hagaki, Hagaki
* The PrintMode command has been replaced with separate commands:
Quality, ColorMode, MediaType and PenSet.
* Changed top margin from 1/3 to 1/8 inch. Also, changed the bottom
margin to 1/2 inch. Note, on the 6xx series the maximum bottom
margin is .46 inch for black and .587 for color. This means for
the 6xx series, color printing to within 1/2 inch bottom margin is
not guaranteed.