Commit graph

215 commits

Author SHA1 Message Date
wiz
379f888f27 Update tiff to 4.0:
At long last, libtiff 4.0.0 is finally released.  Libtiff 4.0.0 is the
successor to the libtiff 3.9.X release series.  It is intended to be
largely API compatible with the 3.9.X releases, but it is definitely
not ABI compatible so any software which plans to use it will need to
be recompiled.  With appropriate care, source code can easily compile
with both the 3.9.X releases and libtiff 4.0.0.

This release supports the BigTIFF TIFF format in which all offsets are
unsigned 64-bit, supporting huge files.  APIs which deal with tag
offsets are necessarily updated to pass 64-bit values.  I/O functions
supporting the TIFFClientOpen() interface are updated to pass 64-bit
offset values.
2012-02-06 12:30:52 +00:00
wiz
cf1950d152 Update to 3.9.5:
Many bugs and security issues are resolved in this stable release.
2011-04-12 08:57:57 +00:00
drochner
95bcc3e8fe add patch from upstream
(http://bugzilla.maptools.org/show_bug.cgi?id=2300)
to fix possible buffer overflow in the "thunder" decoder (CVE-2011-1167)
bump PKGREV
2011-03-31 11:05:44 +00:00
tron
5733c6c7a9 Add fix for vulnerability reported in SA43593 taken from the
"libtiff" CVS repository.
2011-03-12 16:10:42 +00:00
dsainty
1f40f3a084 Mechanically replace references to graphics/jpeg with the suitable
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
2010-12-23 11:44:24 +00:00
tron
030186375d Add patches from either libtiff's or Red Hat's Bugzilla which fix the
following vulnerabilities:
- CVE-2010-2233
- CVE-2010-2482
- CVE-2010-2483
- CVE-2010-2595
- CVE-2010-2597
There is no patch for CVE-2010-2596 yet. But it is low risk (an assertion
gets triggered) and cannot be exploited after the above vulnerabilities
are fixed (at least if I understood correctly).

No butcher was involved in fixing this package.
2010-08-04 17:48:22 +00:00
drochner
8961a28632 update to 3.9.4
changes:
-Complete the fixes for CVE-2009-2347.
-Tiffcrop now supports custom page sizes.
+minor bugfixes
2010-06-16 13:56:41 +00:00
dholland
04c1877a53 Update to 3.9.3, fixing CVE-2010-1411. Other changes are minor bug fixes;
gory details at http://www.remotesensing.org/libtiff/v3.9.3.html.
2010-06-15 05:57:45 +00:00
tnn
8e202bfc1b tiff seems to be a common point of failure from the jpeg fallout,
so bump the revision.
2010-01-29 11:14:57 +00:00
wiz
91871f449e Second try at jpeg-8 recursive PKGREVISION bump. 2010-01-18 09:58:37 +00:00
drochner
850d444779 updated to 3.9.2
changes:
-bugfixes
-OJPEG support updated to work with IJG JPEG 7 release
-Tiffcrop validated for most TIFF storage subformats and sample depths
2009-11-15 18:12:44 +00:00
wiz
f01d749a2b Update to 3.9.1:
This is a bugfix release to correct serious defects found in libtiff
3.9.0. In particular, it was discovered that libtiff 3.9.0 may
write defective TIFF files. This release is intended to be API and
ABI compatible with libtiff 3.8.2.
2009-08-29 12:32:08 +00:00
sno
6f7368d4db bump revision because of graphics/jpeg update 2009-08-26 19:56:37 +00:00
wiz
a5394b0b0e Update to 3.9.0:
MAJOR CHANGES:
  * New tiffcrop utility contributed by Richard Nolde. tiffcrop does the
    same as tiffcp, but also can crop, extract, rotate and mirror images.
  * tif_jbig.c: Added support for JBIG compression scheme (34661 code),
    contributed by Lee Howard.
  * Totally new implementation of OJPEG module from Joris Van Damme. No
    need to patch libjpeg anymore. Many OJPEG files should be supported
    now that was not supported previously.

------------------------------------------------

CHANGES IN THE SOFTWARE CONFIGURATION:
  * tif_config.wince.h, tiffconf.wince.h, tif_wince.c: WinCE-specific
    compatibility stuff from Mateusz Loskot.
  * Rename config.h.vc and tif_config.h.vc to config.vc.h and
    tif_config.vc.h for easier identification by folks using an IDE.
  * configure, configure.ac: OJPEG support enabled by default (i.e., whe
    the conformant JPEG support enabled).
  * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
    tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: Added
    support for OpenVMS by Alexey Chupahin.
  * nmake.opt: use /EHsc for VS2005 compatibility. Also define
    _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.

------------------------------------------------

CHANGES IN LIBTIFF:
  * tif_dirinfo.c (_TIFFFindFieldInfo): Don't attempt to bsearch() on a
    NULL fieldinfo list. (_TIFFFindFieldInfoByName): Don't attempt to
    lfind() on a NULL fieldinfo list.
  * tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it will convert
    from decompressor to compressor or compress to decompress if required
    by the force arguments. This works around a problem in where the
    JPEGFixupTestSubsampling() may cause a decompressor to be setup on a
    directory when later a compressor is required with the force flag set.
    Occurs with the addtiffo program for instance.
  * tif_dirwrite.c: Fixed swapping of byte arrays stored in-place in tag
    offsets as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1363
  * tif_getimage.c: workaround for 'Fractional scanline' error reading
    OJPEG images with rowsperstrip that is not a multiple of vertical
    subsampling factor. This bug is mentioned in
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 and
    http://www.asmail.be/msg0054766825.html
  * tif_dirread.c: Added special function to handle SubjectDistance EXIF
    tag as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
  * tif_dirread.c, tif_read.c: Type of the byte counters changed from
    tsize_t to uint32 to be able to work with data arrays larger than 2GB.
    Fixes bug http://bugzilla.remotesensing.org/show_bug.cgi?id=89 Idea
    submitted by Matt Hancher.
  * tif_dir.c: Workaround for incorrect TIFFs with ExtraSamples == 999
    produced by Corel Draw. As per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
  * tif_write.c: TIFFAppendToStrip() - clear sorted flag if we move a
    strip. http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
  * tif_fax3.c: Save the state of printdir codec dependent method.
  * tif_jpeg.c: Save the state of printdir codec dependent method as per
    bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
  * tif_win32.c: Fixed problem with offset value manipulation as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
  * tif_fax3.c, tif_next.c, tif_pixarlog.c: Fixed multiple
    vulnerabilities, as per Gentoo bug ():
    http://bugs.gentoo.org/show_bug.cgi?id=142383
  * tif_lzw.c, tif_zip.c: Fixed problems with mixing encoding and decoding
    on the same read-write TIFF handle. The LZW code can now maintain
    encode and decode state at the same time. The ZIP code will switch
    back and forth as needed.
    http://bugzilla.remotesensing.org/show_bug.cgi?id=757
  * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron
  * tif_dirwrite.c: take care not to flush out buffer of strip/tile data
    in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates to bug
    report by Peng Gao with black strip at bottom of images.
  * tif_dirwrite.c: make sure to use uint32 for wordcount in
    TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. It
    already seems to have been done for other field types. Needed for
    "tiffset" on files with geotiff ascii text.
  * tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
  * tif_dirread.c: Move IFD fetching code in the separate function
    TIFFFetchDirectory() avoiding code duplication in TIFFReadDirectory()
    and TIFFReadCustomDirectory().
  * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
    files. Modified TIFFReadDirectory() to not invoke
    EstimateStripByteCounts() for case where entry 0 and 1 are unequal but
    one of them is zero.
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
  * tif_open.c, tif_dirread.c, tiffiop.h: Move IFD looping checking code
    in the separate function TIFFCheckDirOffset().
  * tif_aux.c: Added _TIFFCheckRealloc() function.
  * tif_fax3.c: Fixed problems in fax decoder as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
  * tif_jbig.c: Added support for JBIG compression scheme (34661 code)
    contributed by Lee Howard. As per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=896
  * tif_getimage.c: Added support for planarconfig separate non-subsampled
    YCbCr (i.e. separate YCbCr with subsampling [1,1]).
  * tif_getimage.c: Revision of all RGB(A) put routines:
       * Conversion of unassociated alpha to associated alpha now done
         with more performant LUT, and calculation more correct.
       * Conversion of 16bit data to 8bit data now done with more
         performant LUT, and calculation more correct
       * Bugfix of handling of 16bit RGB with unassociated alpha
  * tif_ojpeg.c: totally new implementation
  * tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling of OJPEG images
    in favor of tif_getimage.c native handling of YCbCr and desubsampling.
  * tif_jpeg.c: JPEGVSetField() so that altering the photometric
    interpretation causes the "upsampled" flag to be recomputed. Fixes
    peculiar bug where photometric flag had to be set before jpegcolormode
    flag.

------------------------------------------------

CHANGES IN THE TOOLS:
  * tiff2ps.c: Added support 16-bit images as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1566. Patch from
    William Bader.
  * tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and significant
    upgrade of the whole utility as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1560. Now we don't
    need tiffiop.h in tiff2pdf anymore and will open output PDF file using
    TIFFClientOpen() machinery as it is implemented by Leon Bottou.
  * tiffcrop.c: New tiffcrop utility contributed by Richard Nolde. As per
    bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
  * tiff2pdf.c: Do not assume inches when the resolution units do not
    specified. As per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
  * tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. As per
    bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
  * tif2rgba.c: This utility does not work properly on big-endian
    architectures. It was fixed including the bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
  * tiff2pdf.c: Fix handling of -q values.
    http://bugzilla.remotesensing.org/show_bug.cgi?id=587
  * tiffcmp.c: Fixed floating point comparison logic as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
  * tiff2pdf.c: Fixed buffer overflow condition in t2p_write_pdf_string()
    as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1196

------------------------------------------------

CHANGES IN THE CONTRIB AREA:
  * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
    blocks in TIFF_DownSample_Subsampled() (bug 1542).
  * contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. Though it is
    still far from the state of being working and useful.
2009-08-24 08:50:33 +00:00
tron
36bc447ab2 Apply fix for integer overflows in various inter-color space conversion
tools taken from MapTools Bugzilla. This fixes CVE-2009-2347.
2009-07-19 11:45:09 +00:00
drochner
55feadba01 add a patch from upstream
(http://bugzilla.maptools.org/show_bug.cgi?id=2065)
to fix a buffer underflow which can cause DOS or system access
(SA35515)
bump PKGREVISION
2009-06-22 14:54:44 +00:00
joerg
3a3c07bc30 Remove @dirrm entries from PLISTs 2009-06-14 17:59:04 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
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.
2009-03-20 19:23:50 +00:00
tron
6578630dc9 Apply Debian's fix for the security vulnerability reported in
CVE-2008-2327. Bump package revision.
2008-08-30 08:12:45 +00:00
joerg
7f279c69f3 DESTDIR support. 2006-11-02 17:59:37 +00:00
taca
4cb606f64b Modify patch to tif_dir.c to be compiled by gcc prior to 3.x.
Requested by solo@.
2006-08-03 15:17:49 +00:00
salo
298dde72b0 Security fixes for SA21304:
"Some vulnerabilities have been reported in libTIFF, which can be
 exploited by malicious people to cause a DoS (Denial of Service)
 or potentially compromise a vulnerable system.

 The vulnerabilities are caused due to various heap and integer
 overflows when processing TIFF images and can be exploited via
 a specially crafted TIFF image.

 Successful exploitation allows crashing applications linked against
 libTIFF and may also allow execution of arbitrary code."

http://secunia.com/advisories/21304/
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3459
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3460
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3461
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3462
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3463
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3464
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3465

Patches from Tavis Ormandy, Google Security Team via SUSE.
Bump PKGREVISION.
2006-08-02 15:42:25 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
reed
be0444dc35 Configure with --without-x. This fixes problem where GL components
were detected and tiffgt was built.

No change to package.

(TODO: do not install the tiffgt manual pages. Maybe install separate
tiffgt package if needed.)
2006-06-17 20:25:23 +00:00
salo
0f84cfb46d Security fix for CVE-2006-2193:
"A vulnerability in LibTIFF can be exploited by malicious people to
 cause a DoS (Denial of Service) and potentially compromise a user's
 system.

 The vulnerability is caused due to a boundary error within tiff2pdf
 when handling a TIFF file with a "DocumentName" tag that contains
 UTF-8 characters.  This can be exploited to cause a stack-based buffer
 overflow and may allow arbitrary code execution."

http://secunia.com/advisories/20488/
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2193

Patch from Ubuntu.
2006-06-08 11:05:14 +00:00
heinz
089d51008d Added appropriate TEST_TARGET. 2006-04-14 07:08:07 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
uebayasi
c1c2e3ae73 A missing entry in PLIST, found by ftp://ftp.NetBSD.org/pub/pkgsrc/misc/kristerw
/pkgstat/i386-2.1/20060404.0711/graphics/tiff/.broken.html.

Reviewed By:	reed
2006-04-05 07:04:18 +00:00
drochner
8667bc40aa update to 3.8.2
changes: bugfixes
2006-03-31 14:31:03 +00:00
drochner
b9c3caf48b update to 3.8.1
changes:
-many bugfixes
-support PBM files in ppm2tiff
-Added ability to create multipage TIFFs in bmp2tiff
2006-03-14 14:08:30 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
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.
2006-03-04 21:28:51 +00:00
drochner
533340bb1d The "--with-default-strip-size" did just help because it worked
around a problem caused by a bash'ism in the configure script.
Fix the script instead.
No functional change.
2006-02-22 12:38:17 +00:00
joerg
7f2cd475d3 Include stddef.h instead of defining NULL manually. This fixes
the inclusion of tiffio.h from C++ as seen in digikam.
Bump revision.
2006-02-20 17:56:36 +00:00
wiz
9c4306c0d7 Update to 3.8.0:
MAJOR CHANGES:
  * Read-only support for custom directories (e.g. EXIF directory).
  * Preliminary support for MS MDI format.

----------------------------------------------------------------------------------------

CHANGES IN THE SOFTWARE CONFIGURATION:
  * Make the default strip size configurable via the
    --with-default-strip-size and STRIP_SIZE_DEFAULT options.

----------------------------------------------------------------------------------------

CHANGES IN LIBTIFF:
  * tiffio.h: Added VC_EXTRALEAN definition before including
    windows.h, to reduce the compile time.
  * tif_jpeg.c: Improve compilation under MinGW.
  * {tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, tif_print.c,
    tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and StoNits tags
    custom.
  * {tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make WhitePoint tag
    custom.
  * tiffio.h: fixed typo that potentially resulted in redefininition of
    USE_WIN32_FILEIO
  * {tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, Photoshop and
    ICCProfile tags custom.
  * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling newer
    code to get context indicator in error handler and still remain
    compatible with older code: Done TIFFError calls everywhere
    except in tools.
  * tiffinfo.c: Print EXIF directory contents if exist.
  * {tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: Custom
    directory read-only support.
  * {tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
    tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite tags
    custom.
  * tif_dirread.c: One more workaround for broken StripByteCounts tag.
    Handle the case when StripByteCounts array filled with completely wrong
    values.
  * tif_dirinfo.c: Release file descriptor in case of failure in
    the TIFFOpenW() function as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
  * tif_dirinfo.c: Correctly yse bsearch() and lfind() functions
    as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
  * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support for MS
    MDI format.
    http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
  * libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory public.
  * /tif_dirinfo.c: Make XResolution, YResolution and ResolutionUnit tags
    modifiable during write process. As per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=977
  * if_dirread.c: Don't try and split single strips into "0" strips in
    ChopUpSingleUncompressedStrip. This happens in some degenerate
    cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
  * tif_fax3.c: changed 'at scanline ...' style warning/errors with
    incorrect use of tif_row, to 'at line ... of strip/tile ...'
    style.

CHANGES IN THE TOOLS:
  * tiffcp.c: Added many error reporting messages; fixed integer
    overflow as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=789
  * tiffcp.c: Return non-zero status when reading fails.
  * fax2tiff.c: Properly calculate sizes of temporary arrays as
    per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=943
  * fax2tiff.c: Added option '-r' to set RowsPerStrip parameter as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=944
  * tiffdump.c: Fixed typeshift and typemask arrays initialization problem
    as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=946
  * bmp2tiff.c: Fixed possible integer overflow error as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=965
  * tiffsplit.c: Copy fax related fields over splitted parts as
    per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=983
  * tiffdump.c: Fixed crash when reading malformed tags.
  * tiff2pdf.c: Added missed 'break' statement as per bug
    http://bugzilla.remotesensing.org/show_bug.cgi?id=932
2005-12-31 00:07:36 +00:00
wiz
bb7729e647 Update to 3.7.4:
MAJOR CHANGES:
     * Fixed important bug in custom tags handling code..

   ------------------------------------------------

   CHANGES IN THE SOFTWARE CONFIGURATION:
     * Applied patch from Patrick Welche (all scripts moved in the 'config'
       and 'm4' directories).
     * SConstruct, libtiff/SConstruct: Added the first very preliminary
       support for SCons software building tool (http://www.scons.org/). This
       is experimental infrastructure and it will exist along with the
       autotools stuff.
     * port/lfind.c: Added lfind() replacement module.

   ------------------------------------------------

   CHANGES IN LIBTIFF:
     * tif_dir.c: When prefreeing tv->value in TIFFSetFieldV also set it to
       NULL to avoid double free when re-setting custom string fields as per:
       http://bugzilla.remotesensing.org/show_bug.cgi?id=922
     * tif_dir.c: Fixed up support for swapping "double complex" values (128
       bits as 2 64 bits doubles). GDAL gcore tests now pass on bigendian
       (macosx) system.
     * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to SHORTs
       in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() function,
       use TIFFFetchNormalTag() instead as per bug
       http://bugzilla.remotesensing.org/show_bug.cgi?id=831 Remove
       TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() instead.
     * tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
     * tif_write.c: Do not check the PlanarConfiguration field in the
       TIFFWriteCheck() function in case of single band images (as per TIFF
       spec).
     * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: Make
       FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
       ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.

   ------------------------------------------------

   CHANGES IN THE TOOLS:
     * tiffcp.c: Fixed WhitePoint tag copying.

   ------------------------------------------------

   CHANGES IN THE CONTRIB AREA:
     * tiffdump.c: Added support for TIFF_IFD datatype.
     * addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: Make
       overviews working for contiguous images.
2005-10-15 17:11:51 +00:00
wiz
556ad0ac4b Add lfind replacement function. From libtiff CVS. 2005-07-14 14:59:10 +00:00
wiz
7406152919 Update to 3.7.3:
Many bugfixes and several new features. The runtime endianness check
has been replaced with the compile time one. Support has been added
for the new predictor type (floating point predictor) defined at the
TIFF Technical Note 3, for custom tags passed by value, and for all
DNG tags.
2005-07-14 13:43:28 +00:00
grant
606814554a remove sunpro c++ runtime library hack, as this is handled in the
sunpro-cxx wrapper now.
2005-07-14 00:29:16 +00:00
grant
3ab61075e3 libtiffxx needs to be linked against the C++ runtime libraries libCrun
and libCstd when building with sunpro.

ok'd by jlam@
2005-06-22 02:31:36 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00
salo
074a2c4935 Security fix:
"A vulnerability in libTIFF was found, it can be potentially exploited by
 malicious people to compromise a vulnerable system."

http://secunia.com/advisories/15320/
http://bugzilla.remotesensing.org/show_bug.cgi?id=843

Bump PKGREVISION, patch from libtiff cvs repository.
2005-05-12 12:53:21 +00:00
toshii
4e3ae3bf13 Fix for NetBSD LP64 arches by checking if _LP64 is defined. These arches
don't define __LP64__.  This is basically same as patch-ab rev. 1.13,
which was probably removed by mistake.
2005-05-07 00:47:29 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
recht
f2fad56402 Pull in libtiff/Makefile.in rev. 1.54 and 1.55 without the rpath changes
from libtiff CVS to fix the build on Darwin.
2005-03-24 17:46:29 +00:00
wiz
66cd1b42a2 Update to 3.7.2.
Package changes:
Put options in options.mk, and retire support for USE_GIF; turn on
the lzw option by default (since USE_GIF was on by default).
C++ library's name changed, to be in sync with tiff distribution's name
for it (libtiffcxx -> libtiffxx).

Changes in 3.7.2:
	Maintainance [sic] release. Many bugfixes in the build
	environment and compatibility improvements.
2005-03-23 01:17:45 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
jlam
926758d356 Add patch-ah that is adapted from http://bugzilla.remotesensing.org/
that fixes a bug where docked TIFF icons in WindowMaker have a black
background rather than a transparent background.  Ride the previous
PKGREVISION bump to 3.  This fixes PR pkg/28989.
2005-01-17 08:37:31 +00:00
jlam
e99455329a Link the tiff library, which has no C++ functions, with $(CC) instead
of $(CXX) so that applications needing libtiff don't also need to be
linked against $(CXX).  Bump the PKGREVISION to 3.  This should fix
PR pkg/28961.
2005-01-17 08:04:25 +00:00
jlam
c5ded12681 Fix error in patch to build libtiffcxx.la that tried to create libraries
with no objects.  libtiffcxx.la now correctly builds using tif_stream.lo.
Bump the PKGREVISION to 2.
2005-01-13 15:39:20 +00:00
jlam
5378ac50d3 Create a separate libtiffcxx.so library for use by C++ applications.
It's meant to be used directly in place of libtiff.so, i.e. instead
of linking against -ltiff, you link against -ltiffcxx.  It also leaves
libtiff.so as a plain C-linkage library again, as it was in tiff-3.6.x,
and avoids needing to patch tiff-using packages to link using the C++
compiler.  Bump the PKGREVISION to 1.
2005-01-11 05:29:55 +00:00
jlam
bae594225d --enable-c++ isn't a valid option name because of stupidity on the tiff
configure script.  Remove this from CONFIGURE_ARGS.
2005-01-09 23:03:58 +00:00
jlam
801a9ccd7f Note that this package requires C++. Also, convert to use the
bsd.options.mk framework.  The USE_GIF option is now called "lzw" and
is enabled by default.
2005-01-09 21:34:41 +00:00
reed
3c13c65aca Upgrade tiff to 3.7.1.
Remove OpenWindows workaround in pkgsrc for this.

Too many changes to include here.
See http://www.remotesensing.org/libtiff/v3.7.1.html
and http://www.remotesensing.org/libtiff/v3.7.0.html
and previous change files for changes information.

tiff-3.7.1 now includes the lzw compression code again.
It also uses autoconf and libtool now.

A new tool is bmp2tiff.

Docs are placed under share/doc/tiff/html instead of share/doc/html/tiff.

Many manpage symlinks are now missing. (This was reported to tiff list.)
2004-12-28 23:10:09 +00:00
reed
77d31fda4a patch-ag and patch-ao already had security fixes for CESA-2004-006.
But now these are improved in response to
 iDEFENSE Security Advisory 12.21.04
 www.idefense.com/application/poi/display?id=173&type=vulnerabilities
 libtiff STRIPOFFSETS Integer Overflow Vulnerability
 December 21, 2004

This fix (in two files) was from that advisory and also seen
in tiff 3.7.1.

PKGREVISION is bumped to 6 and BUILDLINK_RECOMMENDED is adjusted for
this possible security issue. Other packages depending on this are not
bumped.
2004-12-22 03:57:15 +00:00
jmmv
f0a0c0cc8f Bump revisions of tiff and qt1 after changing the default USE_GIF value
to 'yes'.  (In behalf of jlam@, who can't commit this ATM.)
2004-11-26 15:32:34 +00:00
tron
56b7ac6ed0 Add various bug fixes taken from Debian's unstable distribution which
include fixes for CESA-2004-006. Bump package revision.
2004-10-18 14:37:24 +00:00
tron
5116fcf5e1 Add mirror on "ftp.fu-berlin.de" to master site list. 2004-10-18 10:30:33 +00:00
tron
60f386841e Derive "PKGNAME" from "DISTNAME" instead of defining it manually. 2004-10-18 10:05:11 +00:00
reed
283a185679 Remove second master site because it doesn't return the tarball.
Add /old/ to end of master site URL.

This was reported by Georg Schwarz on tech-pkg
and also by Ian Harding via PR #27278.

Note that this is insecure version of tiff!
2004-10-16 22:27:40 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
jschauma
877f034380 When ``relativize''-ing CFLAGS, don't substitute anything that begins
with a '-' as '../-', as this is basically guaranteed to be wrong.

Examples:  -n32 or -64 for IRIX ABI would be substituted as '../-64',
which of course breaks the package.  Other possible CFLAGS would
have the same result.
2004-09-05 16:49:03 +00:00
wiz
f1d962502c Unused. 2004-07-02 22:13:09 +00:00
tv
7cdb6a5a2a Use INSTALL_LIB instead of INSTALL_SCRIPT. 2004-04-27 22:38:51 +00:00
tv
9ac386988e nb2: Obey PKGDIRMODE, and install shlibs as executable. 2004-04-27 20:38:48 +00:00
tv
e0d96890ea Don't put plain comments in make commands. These can result in a nonzero
shell exit code, and thus a failure.

Move comments out of the list of commands.  (Alternately ${DO_NADA} could
have been used.)
2004-04-24 18:24:56 +00:00
jschauma
5edb12a017 don't ``relativize'' -rpath - fixes build on Irix. 2004-04-12 14:41:03 +00:00
wiz
a122440606 regen. 2004-03-22 17:05:17 +00:00
abs
7fd6f3acb3 Add back previous patch to libtiff/tif_fax3.c lost in last commit.
Flagged by wizd :) - many thanks.
Note to self: Running patch on a file twice does tend to make the .orig file
less than useful for comparing to the original state...
2004-03-22 17:03:30 +00:00
abs
b055030838 Update tiff to tiff-3.6.1nb1:
Add a patch to fix fax3 tiff handling. Without this hylafax
	generates completely garbled tiff images unless error correction
	was disabled:  http://bugs.hylafax.org/bugzilla/show_bug.cgi?id=500
2004-03-22 16:48:13 +00:00
jlam
7db11b582a Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly
by moving the inclusion of buildlink3.mk files outside of the protected
region.  This bug would be seen by users that have set PREFER_PKGSRC
or PREFER_NATIVE to non-default values.

BUILDLINK_PACKAGES should be ordered so that for any package in the
list, that package doesn't depend on any packages to the left of it
in the list.  This ordering property is used to check for builtin
packages in the correct order.  The problem was that including a
buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed
from BUILDLINK_PACKAGES and appended to the end.  However, since the
inclusion of any other buildlink3.mk files within that buildlink3.mk
was in a region that was protected against multiple inclusion, those
dependencies weren't also moved to the end of BUILDLINK_PACKAGES.
2004-03-18 09:12:08 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
jlam
1b2674fcd7 The BUILDLINK_DEPENDS.<pkg> lines should match between the buildlink3.mk
and any pre-existing buildlink2.mk files.
2004-02-10 20:45:01 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
jlam
38252eb956 bl3ify 2004-01-05 22:33:45 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
reed
d4d8ee5999 Update to tiff-3.6.1. This is many changes and fixes.
The main changes include:
new utility tiff2pdf for converting a TIFF image to a PDF document
new utility raw2tiff for converting raw rasters into TIFF files
new tiff2ps options
new fax2tiff options
bug fixes for LZW, JPEG and OJPEG compression.
more documentation
and upgrade to libtiff.so.3.6
other changes at http://www.libtiff.org/v3.6.0.html

Removed patch-ab because
html/Makefile.in: added missing images per bug 92
Removed patch-ag because
http://bugzilla.remotesensing.org/show_bug.cgi?id=315

Other changes:
HOMEPAGE changed due to libtiff.org has been hijacked
INSTALL.OpenWindows updated (thank you to dieter)

tiff is backward compatible with older version,
but buildlink2.mk version is increased because libtiff
was broken for amd64 support.
2004-01-03 18:33:24 +00:00
salo
841ce6f5fb Fix manpages installation.
From Ben Collver via PR pkg/23047.
2003-10-03 15:38:46 +00:00
jlam
a203353b33 Make these INSTALL scripts safe for when pkgviews is merged. 2003-08-30 23:01:31 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
wiz
54d0c29e94 Remove -O from default CFLAGS. Requested by Adam Ciarcinski. 2003-05-23 09:26:58 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
wiz
4d19cf473a Fix core dump when fax2tiff is started without arguments.
Patch from Ingolf Steinbach in PR 19306.
Bump PKGREVISION to 1.
2002-12-25 14:25:27 +00:00
jlam
d1991ca961 Use bsd.pkg.install.mk and change INSTALL.OpenWindows into a model for how
to replace the complexity of the default INSTALL/DEINSTALL scripts with
something simpler when simple is all that's needed.  Also replace the
check for OpenWindows with one that's more sensible.
2002-10-20 09:15:23 +00:00
wiz
8507c437bd Unused. 2002-10-09 14:36:16 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
grant
57fcd136f3 update MASTER_SITES. 2002-07-13 00:53:35 +00:00
jlam
e191bdff56 Rearrange so that buildlink.mk files come _after_ USE_BUILDLINK_ONLY. 2002-03-07 21:55:08 +00:00
martti
b36d79392e Fixed compilation when USE_GIF is set. 2002-03-05 19:33:16 +00:00
martti
bb80f781d4 Updated tiff to 3.5.7
* many bug fixes
* added support for 16bit minisblack/miniswhite images in RGBA interface
* integrated experimental OJPEG support
* updated tiffcp utility
* substantial changes to tiff2ps
2002-03-05 10:33:35 +00:00
tron
14e9242870 Add work arround for problem with Solaris's "sed" so that the "post-patch"
target works there.
2002-01-05 22:30:12 +00:00
zuntum
afeb1d898f Finishing my cvs {rm,add} crusade in pkg/ 2001-11-01 20:38:21 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
abs
f301128f74 Lets compile libtiff on sparc64, gcc 2.95.3. 2001-08-23 00:07:18 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
7b1d3cb465 Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:31 +00:00