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
PKGLOCALEDIR and which install their locale files directly under
${PREFIX}/${PKGLOCALEDIR} and sort the PLIST file entries. From now
on, pkgsrc/mk/plist/plist-locale.awk will automatically handle
transforming the PLIST to refer to the correct locale directory.
* In addition to hot pixels in an otherwise black image, the `jpeghotp'
program can now also find dead pixels in an otherwise white image.
* Fail gracefully if the locale cannot be set.
Jpegpixi is short for JPEG Pixel Interpolator. The intent of the
program is to interpolate pixels (single pixels, dots, stripes) in
JPEG images. This is useful to correct images from a digital camera
with CCD defects. For example, if one pixel is always bright green,
this pixel can be interpolated with jpegpixi.
Jpegpixi is unique in that it tries to preserve the quality of the
JPEG image as much as possible. Usual graphics programs decode JPEG
images when they are loaded, and re-encode them when they are saved,
which results in an overall loss of quality. Jpegpixi, on the other
hand, only decodes the DCT blocks (typically 8x8, 16x8, or 16x16 pixel
areas) which contain pixels to be interpolated, and when it re-encodes
them, it uses exactly the same parameters with which the image has
originally been encoded. These blocks are therefore only minimally
disturbed, and other blocks remain pixel-by-pixel identical to the
original image.