Commit graph

116 commits

Author SHA1 Message Date
reed
45d9dae994 Honor PKGMANDIR. 2005-12-27 17:34:53 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
rillig
7fe72478c0 Replaced the "!" in the sed expression with a ",". This might have been
the cause for PR 31953, but I'm not sure. At least, "!" is some special
character for the shell whereas "," is not.
2005-11-04 11:58:54 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
wiz
829094795b Update to 1.2.8:
Changes since the last public release (1.2.7):

  Fixed bug in png_text_compress() that would fail to complete a large block.
  Fixed bug, introduced in libpng-1.2.7, that overruns a buffer during
    strip alpha operation in png_do_strip_filler().
  Added PNG_1_2_X definition in pngconf.h
  #ifdef out png_info_init in png.c and png_read_init in pngread.c (as of 1.3.0)
  Reduce color_type to a nonalpha type after strip alpha operation in
    png_do_strip_filler().
  Revised definitions of PNG_MAX_UINT_32, PNG_MAX_SIZE, and PNG_MAXSUM
  Fixed (again) definition of PNG_LIBPNG_VER_DLLNUM in png.h (Cosmin).
  Added PNG_LIBPNG_BUILD_PRIVATE in png.h (Cosmin).
  Set png_ptr->zstream.data_type to Z_BINARY, to avoid unnecessary detection
    of data type in deflate (Cosmin).
  Deprecated but continue to support SPECIALBUILD and PRIVATEBUILD in favor of
    PNG_LIBPNG_BUILD_SPECIAL_STRING and PNG_LIBPNG_BUILD_PRIVATE_STRING.
  Despammed mailing addresses by masking "@" with "at".
  Added scripts/makefile.elf with supporting code in pngconf.h for symbol
    versioning (John Bowler).
  Added projects/visualc71 (Simon-pierre).
2004-12-05 11:17:12 +00:00
adam
60c7748ee4 Changes 1.2.7:
* Removed unused pngasmrd.h file.
* Removed references to uu.net for archived files.  Added references to
    PNG Spec (second edition) and the PNG ISO/IEC Standard.
* Added "test-dd" target in 15 makefiles, to run pngtest in DESTDIR.
* Fixed bug with "optimized window size" in the IDAT datastream, that
    causes libpng to write PNG files with incorrect zlib header bytes.
* Fixed bug with sCAL chunk and big-endian machines (David Munro).
* Undid new code added in 1.2.6rc2 to update the color_type in
    png_set_filler().
* Added png_set_add_alpha() that updates color type.
* Revised png_set_strip_filler() to not remove alpha if color_type has alpha.
* Added makefile.hp64
* Changed projects/msvc/png32ms.def to scripts/png32ms.def in makefile.cygwin
2004-10-15 12:33:21 +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
reed
77260d34ff Revert the BUILDLINK_DEPENDS.png back to previous value (1.2.4)
because no ABI change or soname changes.

It is important to note that because of the fixed *_RECOMMENDED
mechanism, that 1.2.6rc2 will be the default version required.
2004-08-24 16:51:34 +00:00
drochner
45553da701 update to 1.2.6 (first official release after the recent
security fixes)
changes:
version 1.2.6rc3 [August 9, 2004]
  Eliminated use of "abs()" in testing cHRM and gAMA values, to avoid
  trouble with some 64-bit compilers.  Created PNG_OUT_OF_RANGE() macro.
  Revised documentation of png_set_keep_unknown_chunks().
  Check handle_as_unknown status in pngpread.c, as in pngread.c previously.
  Moved  "PNG_HANDLE_CHUNK_*" macros out of PNG_INTERNAL section of png.h
  Added "rim" definitions for CONST4 and CONST6 in pnggccrd.c
version 1.2.6rc4 [August 10, 2004]
  Fixed mistake in pngtest.c introduced in 1.2.6rc2 (declaration of
  "pinfo" was out of place).
version 1.2.6rc5 [August 10, 2004]
  Moved  "PNG_HANDLE_CHUNK_*" macros out of PNG_ASSEMBLER_CODE_SUPPORTED
  section of png.h where they were inadvertently placed in version rc3.
version 1.2.6rc6 [August 15, 2004]
  Revised pngtest so memory allocation testing is only done when PNG_DEBUG==1.
2004-08-17 09:54:30 +00:00
wiz
f2dc3a4ee6 Drop whitespace at EOL. 2004-08-13 14:20:02 +00:00
kristerw
7ddb4e1eed Convert a C99-ism to C89 to make this build with gcc 2.95.
This fixes PR 26602 submitted by Hauke Fath.
2004-08-09 10:49:00 +00:00
recht
1537d1cea7 update to libpng-1.2.6rc2
changes:
version 1.2.6rc2 [August 8, 2004]
  Revised makefile.darwin and makefile.solaris.  Removed makefile.macosx.
  Revised pngtest's png_debug_malloc() to use png_malloc() instead of
     png_malloc_default() which is not supposed to be exported.
  Fixed off-by-one error in one of the conversions to PNG_ROWBYTES() in
     pngpread.c.  Bug was introduced in 1.2.6rc1.
  Fixed bug in RGB to RGBX transformation introduced in 1.2.6rc1.
  Fixed old bug in RGB to Gray transformation.
  Fixed problem with 64-bit compilers by casting arguments to abs()
    to png_int_32.
  Changed "ln -sf" to "ln -f -s" in three makefiles (solaris, sco, so9).
  Changed "HANDLE_CHUNK_*" to "PNG_HANDLE_CHUNK_*" (Cosmin)
  Added "-@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ)" to 15 *NIX makefiles.
  Added code to update the row_info->colortype in png_do_read_filler() (MSB).
2004-08-09 07:37:35 +00:00
drochner
6376c20751 require >=1.2.6rc1 to force updates 2004-08-06 11:22:34 +00:00
drochner
7c4d3fabcf update to 1.2.6rc1,
fixes some security issues, see
http://scary.beasts.org/security/CESA-2004-001.txt
2004-08-06 09:25:18 +00:00
wiz
37ffbf2261 Fix path to pkgconfig file in PKGCONFIG_OVERRIDE.
Bump PKGREVISION, since now the pkgconfig file contains the right rpath.
2004-07-10 01:11:18 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
fredb
05ba31daa0 Don't read past the end of the error message string. This patch was
posted to png-implement by Glenn Randers-Pherson, libpng's maintainer.

This error was widely reported as "security issue",

    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0421

even though there is no security issue. The most the error could do is
SIGSEGV, and that only with some fairly uncommon circumstances. The patch
posted with the advisory is in fact flawed, in that it calls strlen() on
presumably arbitrary data.

Bump PKGREVISION.
2004-05-10 01:15:14 +00:00
tv
1f40881d7d Convert INSTALL_SCRIPT to INSTALL_LIB. 2004-04-27 22:40:35 +00:00
tv
f1db9cd144 Shared objects must be installed as executable on some platforms. Convert
BSD_INSTALL_DATA to BSD_INSTALL_SCRIPT.
2004-04-27 19:36:27 +00:00
minskim
6c55c7ff67 Create pkgconfig directory before installing libpng12.pc. Noted by
Cesar Catrian C. in PR pkg/24974.
2004-03-30 15:52:09 +00:00
wiz
2899bc814c Fix pngconf.h on Linux systems. From Michal Pasternak in PR 24581.
Ride yesterday's PKGREVISION bump for this one.
2004-03-30 11:09:15 +00:00
wiz
5974879340 Bump PKGREVISION for pkgconfig file addition. 2004-03-29 17:11:46 +00:00
ben
6a15bc7987 Install lib/pkgconfig/libpng12.pc, otherwise "pkg-config --list-all" will
fail with an error if imlib2 is installed.
2004-03-29 16:02:08 +00:00
ben
b146e33847 Backing out PNG patch that installed lib/pkgconfig/libpng12.pc because it
was done incorrectly and because it was disruptive to the pkgsrc freeze.
Will fix this correctly after the freeze is finished.
2004-03-19 18:36:46 +00:00
ben
27f414b735 Install lib/pkgconfig/libpng12.pc, otherwise "pkgconfig --list-all" will
fail with an error if imlib2 is installed.
2004-03-18 22:40:40 +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
a1c40fc01e We no longer need to explicitly call ${BUILDLINK_*} for CC, CXX, LIBTOOL,
etc. because the bare variables will point to the correct executables.
2004-02-08 04:03:14 +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
6ec3370def Packages converted to use buildlink should think that the "real" CC is
BUILDLINK_CC.
2004-01-15 21:07:42 +00:00
jlam
02eb6f1e19 bl3ify 2004-01-05 20:38:34 +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
jlam
8ed9d09370 The checks for MIPSPro and including gcc.buildlink3.mk have moved to
bsd.pkg.mk, so no need for the same logic here.
2003-08-29 20:49:30 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
jschauma
436f1a18cb Under IRIX, we don't need gcc's buildlink. MIPSPro does just fine. 2003-06-12 15:40:31 +00:00
grant
c8036d6723 include gcc.buildlink2.mk, allows this to build on NetBSD with gcc 3.3. 2003-05-28 12:51:29 +00:00
dillo
5f4ad95078 convert to use test target from bsd.pkg.mk
addresses PR pkg/19416
2003-02-17 15:27:58 +00:00
fredb
d5cfb80689 Fix another bug in png_do_read_filler() regarding 16-big *grayscale*
images (and bump package to 1.2.5nb2). The following is taken directly
from the png-implement mailing list...


    Date: Fri, 20 Dec 2002 11:26:31 -0500
    From: Glenn Randers-Pehrson <glennrp@comcast.net>
    Reply-To: png-implement@ccrc.wustl.edu
    To: png-implement@ccrc.wustl.edu
    Subject: Re: [png-implement] bug in png_read_filler() with 16-bit  samples

    At 01:01 AM 12/5/02 -0500, Glenn Randers-Pehrson wrote:
    >A bug has turned up in png_read_filler() with 16-bit samples.
    >The starting offsets for the loops are calculated incorrectly
    >which causes a buffer overrun beyond the beginning of the row
    >buffer.
    >
    >To fix, at lines 1968 and 1990,
    >change "row_width * 3" to "row_width * 6"
    >and at lines 1969 and 1991,
    >change "row_width;" to "row_width * 2;"

    This is only half of the story.  Adding an alpha channel to
    16-bit *grayscale* images with png_do_read_filler() exhibits
    the same bug, and pngcrush crashes if I try to do it.

    To fix, at lines 1892, 1893, 1910, and 1911 of pngrtran.c
    change "row_width" to "row_width * 2"

    Note that applications that do not add an alpha channel via
    png_set_filler(), and any applications that do, but reduce 16-bit
    samples to 8 bit via png_set_strip_16() are invulnerable to
    the bug.  Pngcrush is the only application that I know of
    that uses png_set_filler() without also using png_set_strip_16().

    Glenn


    --
    Send the message body "help" to png-implement-request@ccrc.wustl.edu
2002-12-20 17:54:27 +00:00
fredb
ef1cddb8ab Fix a buffer overrun in png_do_read_filler() with 16-bit samples, as
reported to the png-implement mailing list by Glenn Randers-Pehrson:

ftp://swrinde.nde.swri.edu/pub/png-group/archives/png-implement.200212

[Glenn Randers-Pehrson is the original author and chief maintainer of
libpng.]

From the discussion in the archive, it appears to be unlikely that the
bug could be exploited by a malicious web-server, chiefly because the
operation that triggers it is more likely to be carried out by an image
manipulation program (i.e. pngcrush), than by a web browser.
2002-12-19 21:25:09 +00:00
cjep
e9dea94b6d NetBSD tag. 2002-11-26 21:35:35 +00:00
fredb
5c5c4303d6 Update to png 1.2.5:
* Changed png_error() to png_warning() about
  "Too much data" in pngpread.c and about
  "Extra compressed data" in pngrutil.c.
* Prevent png_ptr->pass from exceeding 7 in
  png_push_finish_row().
* Updated png.c and pnggccrd.c handling of return from
  png_mmx_support() [Doesn't apply to the package.]
* Only issue png_warning() about "Too much data" in
  pngpread.c when avail_in is nonzero.
* Relocated two misplaced PNGAPI lines in pngtest.c

Update submitted by Stefan Krüger in PR/18926.
2002-11-06 21:30:20 +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
fredb
75f1730606 Update to version 1.2.4. Two new functions since 1.2.1, png_malloc_warn()
and png_set_text_2(), call for a minor version bump in the shared library.
Update "BUILDLINK_DEPENDS" to current level. Also make the shared library
versions visible in the top-level "Makefile", and add a top-level "test"
target to invoke "pngtest" in ${WRKSRC}.

The following is culled from the extensive "CHANGES" file, ommitting
all make system and doc changes, and some bug fixes for bugs that weren't
present in 1.2.1. See "CHANGES" for complete details:

  Added setjmp() at the end of png_create_*_struct_2() in case user forgets
    to put one in their application.
  Exported png_zalloc(), png_zfree(), png_default_read(), png_default_write(),
    png_default_flush(), and png_push_fill_buffer() and included them in
    module definition files.
  Revised prototype for png_default_flush()
  Typos in *.def files (png_default_read|write -> png_default_read|write_data)
  Once more restored png_zalloc and png_zfree to regular nonexported form.
  Restored png_default_read|write_data, png_default_flush, png_read_fill_buffer
    to nonexported form, but with PNGAPI, and removed them from module def files.
  Removed "PNGAPI" from png_zalloc() and png_zfree() in png.c
  Plugged various memory leaks; added png_malloc_warn() and png_set_text_2()
    functions.
  Plugged memory leak of png_ptr->current_text (Matt Holgate).
  Check for buffer overflow before reading CRC in pngpread.c (Warwick Allison)
  Plugged memory leak of row_buf in pngtest.c when there is a png_error().
  Detect buffer overflow in pngpread.c when IDAT is corrupted with extra data.
  Changed png_warning() to png_error() when width is too large to process.
2002-07-19 14:33:08 +00:00
mycroft
26b2b82afd Fix LP64 printf() problems. 2002-07-19 03:22:17 +00:00
tron
98d35c5926 Frederick Bruckman maintains this package at the moment. 2002-05-16 06:08:09 +00:00