Commit graph

64 commits

Author SHA1 Message Date
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
wiz
f0aca6ea72 Update to 1.0.12. Extract of changes since 1.0.11:
. Added some never-to-be-executed code in pnggccrd.c to quiet compiler
  warnings.
. Added a check for attempts to read or write PLTE in grayscale PNG
  datastreams.
. Eliminated the png_error about apps using png_read|write_init().  Instead,
  libpng will reallocate the png_struct and info_struct if they are too small.
  This achieves future binary compatibility for old applications written for
  libpng-0.88 and earlier.  Expanded the warnings about incompatible library
  and application.
. Modified png_create_struct so it passes user mem_ptr to user memory
  allocator.
. Check for missing profile length field in iCCP chunk and free the chunk_data
  in case of truncated iCCP chunk.
2001-08-03 23:19:25 +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
jlam
d068dacc38 Move inclusion of buildlink.mk files to end of Makefile. 2001-07-14 03:16:50 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
34d11d8a0f Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0.  This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-23 19:26:48 +00:00
jlam
8f1a1450ae Mark as USE_BUILDLINK_ONLY. 2001-06-19 04:00:48 +00:00
jlam
dbfde59b14 The buildlink include and lib directories are added to CFLAGS, CPPFLAGS,
CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra
definitions to add them from the package Makefiles.  As advised by the
bsd.buildlink.mk file, also ensure that the buildlink.mk files are
included prior to defining any package-specific CFLAGS/LDFLAGS to ensure
that the buildlink directories are at the head of the compiler search
paths.
2001-06-11 02:05:07 +00:00
jlam
072be2ad69 Use bsd.buildlink.mk instead of duplicating code all over the place. 2001-06-11 01:59:33 +00:00
jlam
5d02f04b3a Use cookies (.*_done) to determine whether headers and libs have been
linked from a particular package, and add a pre-configure target to
the buildlink.mk file to more painlessly use buildlink.mk files.  A
${BUILDLINK_TARGETS} variable still exists in case a package _must_
define NO_CONFIGURE.
2001-06-10 00:09:29 +00:00
jlam
3bc5e40254 Remove dependency on ${BUILDLINK_TARGETS} in pre-configure and pre-build
targets as the buildlink.mk files now add the dependency automatically.
Remove any NO_CONFIGURE definitions as they seem to be useless.
2001-06-10 00:08:41 +00:00
wiz
5be454e29d ' '->'\t' 2001-06-09 15:25:18 +00:00
jlam
d0fb8a773f png depends on zlib, so add dependency on zlib for those platforms without
in the base system.  Make sure that libz.so is found during the build.
2001-05-28 02:41:54 +00:00
jlam
321e922031 Add buildlink.mk files that can link headers and libraries into
${BUILDLINK_INCDIR} and ${BUILDLINK_LIBDIR}, for use by other packages
during build.
2001-05-26 08:10:42 +00:00
wiz
ff1f2b2d8e Update libpng to 1.0.11.
pkgsrc change: bump shared library major like it happened in libpng some
time ago -- our libtool'ified build didn't reflect this. Fixes pkg/12856
by Thor Simon. Note necessity of manual major/minor handling in Makefile,
to decrease chance that this will repeat in the future.
Changes since 1.0.10:
  Added type casts on several png_malloc() calls (Dimitri Papadapoulos).
  Removed a no-longer needed AIX work-around from pngconf.h
  Changed several "//" single-line comments to C-style in pnggccrd.c
  Removed PNGAPI from several functions whose prototypes did not have PNGAPI.
  Updated scripts/pngos2.def
  Added a check for NULL return from user's malloc_fn().
  Removed some useless type casts of the NULL pointer.
  Added makefile.netbsd [not used, since we're using libtool instead]
2001-05-21 21:39:13 +00:00
wiz
a4f21a5507 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 09:54:06 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00
mjl
8985136ded Update to 1.0.10. Updates are bug fixes and MMX support.
Moved some error checking from png_handle_IHDR to png_set_IHDR.
  Added PNG_NO_READ_SUPPORTED and PNG_NO_WRITE_SUPPORTED macros.
  Revised png_mmx_support() function in pnggccrd.c
  Restored version 1.0.8 PNG_WRITE_EMPTY_PLTE_SUPPORTED behavior in pngwutil.c
  Fixed memory leak in contrib/visupng/PngFile.c
  Fixed bugs in png_combine_row() in pnggccrd.c and pngvcrd.c (C version)
  Added warnings when retrieving or setting gamma=0.
  Increased the first part of msg buffer from 16 to 18 in png_chunk_warning().
  Fixed bug in progressive reading (pngpread.c) with small images (height < 8).
2001-04-02 02:23:48 +00:00
mycroft
adf28acea7 Fix quoting problems. 2001-03-30 12:57:38 +00:00
tron
dc1792c8f5 As point by Johnny C. Lam in private e-mail a new function was added in
this release of the PNG library. So increase the shared library minor
number and bump the package version to "1.0.9nb1".
2001-03-04 07:53:34 +00:00
tron
77c54b7ea0 Update "png" package to version 1.0.9. This update fixes several bugs
found in version 1.0.8. Patches contributed by Nathan Ahlstrom
in PR pkg/12317.
2001-03-03 22:24:01 +00:00
wiz
a2a4d06c6f Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 15:22:13 +00:00
wiz
8ed768d6ab Don't force '-O'. Noted by Adam Ciarcinski. 2001-01-18 18:05:52 +00:00
jlam
78a5fb9eb6 Replace spaces with tabs. 2001-01-13 03:24:26 +00:00
jlam
c1b8f58400 HOMEPAGE and primary FTP site have moved. 2001-01-13 03:20:54 +00:00
tron
e30dbaba42 Make this build if "${CC}" is not "cc". 2001-01-13 01:33:20 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
jlam
2af0082fc4 Honor CFLAGS passed in from environment. 2000-10-06 01:38:50 +00:00
tron
263891f670 Evalute package name from distribution file name. 2000-08-02 15:43:49 +00:00
wiz
7650c1172b Update to libpng-1.0.8. Changes since 1.0.7:
o Added png_free(png_ptr, key) two places in pngpread.c to stop memory
  leaks.
o Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in
  pngrutil.c and pngwutil.c.
o Changed PNG_EXPORT_VAR to use PNG_IMPEXP, in pngconf.h.
o Removed unused "#include <assert.h>" from png.c
o Added WindowsCE support.
o Revised pnggccrd.c to work with gcc-2.95.2 and in the Cygwin environment.
o Only set the PNG_FLAG_FREE_TRNS or PNG_FREE_TRNS flag in
  png_handle_tRNS() for indexed-color input files to avoid potential
  double-freeing trans array under some unusual conditions; problem
  was introduced in version 1.0.7.
o Added the files pngbar.png and pngbar.jpg to the distribution.
o Added cygwin subdirectory, makefile.cygwin, and cygwin support in pngconf.h
o Added PNG_NO_ZALLOC_ZERO macro (makes png_zalloc skip zeroing memory)
o Revised png_debug() macros and statements to eliminate compiler warnings.
o Updated makefile.hpux to build a shared library.
2000-08-01 15:58:23 +00:00
rh
e0b2cc8740 Update png to 1.0.7.
Changes are:
  Changed sprintf() to strcpy() in png_write_sCAL_s() to work without STDIO
  Added data_length parameter to png_decompress_chunk() function
  Revised documentation to remove reference to abandoned png_free_chnk functions
  Fixed an error in png_rgb_to_gray_fixed()
  Revised example.c, usage of png_destroy_write_struct().
  Renamed makefile.ibmvac3 to makefile.ibmc, added libpng.icc IBM project file
  Added a check for info_ptr->free_me&PNG_FREE_TEXT when free'ing text in png.c
  Simplify png_sig_bytes() function to remove use of non-ISO-C strdup().
  Added png_data_freer() function.
  In the code that checks for over-length tRNS chunks, added check of
    info_ptr->num_trans as well as png_ptr->num_trans (Matthias Benckmann)
  Check for existing data and free it if the free_me flag is set, in png_set_*()
    and png_handle_*().
  Only define PNG_WEIGHTED_FILTERS_SUPPORTED when PNG_FLOATING_POINT_SUPPORTED
    is defined.
  Changed several instances of PNG_NO_CONSOLE_ID to PNG_NO_STDIO in pngrutil.c
    and mentioned the purposes of the two macros in libpng.txt/libpng.3.
  Revised png_set_iCCP() and png_set_rows() to avoid prematurely freeing data.
  Add checks in png_set_text() for NULL members of the input text structure.
  Removed superfluous prototype for png_set_itxt from png.h
  Removed "else" from pngread.c, after png_error(), and changed "0" to "length".
  Changed several png_errors about malformed ancillary chunks to png_warnings.
  Added png_pass-* arrays to pnggccrd.c when PNG_USE_LOCAL_ARRAYS is defined.
  Relocated paragraph about png_set_background() in libpng.3/libpng.txt
    and other revisions (Matthias Benckmann)
  Relocated info_ptr->free_me to restore binary compatibility with libpng-1.0.5
    (breaks compatibility with libpng-1.0.6).
  Relocated info_ptr->free_me, png_ptr->free_me, and other info_ptr and
    png_ptr members to restore binary compatibility with libpng-1.0.5
    (breaks compatibility with libpng-1.0.6).
  Rearranged some members at the end of png_info and png_struct, to put
    unknown_chunks_num and free_me within the original size of the png_structs
    and free_me, png_read_user_fn, and png_free_fn within the original png_info,
    because some old applications allocate the structs directly instead of
    using png_create_*().
  Added documentation of user memory functions in libpng.txt/libpng.3
  Modified png_read_png so that it will use user_allocated row_pointers
    if present, unless free_me directs that it be freed, and added description
    of the use of png_set_rows() and png_get_rows() in libpng.txt/libpng.3.
  Added PNG_LEGACY_SUPPORTED macro, and #ifdef out all new (since version
    1.00) members of png_struct and png_info, to regain binary compatibility
    when you define this macro.  Capabilities lost in this event
    are user transforms (new in version 1.0.0),the user transform pointer
    (new in version 1.0.2), rgb_to_gray (new in 1.0.5), iCCP, sCAL, sPLT,
    the high-level interface, and unknown chunks support (all new in 1.0.6).
    This was necessary because of old applications that allocate the structs
    directly as authors were instructed to do in libpng-0.88 and earlier,
    instead of using png_create_*().
  Added makefile.intel and updated makefile.watcom (Pawel Mrochen)
  Overloaded png_read_init() and png_write_init() with macros that convert
    calls to png_read_init_2() or png_write_init_2() that check the version
    and structure sizes.
  Made PNG_NO_ITXT_SUPPORTED the default setting, to avoid memory overrun
    when old applications fill the info_ptr->text structure directly.
  Added PNGAPI macro, and added it to the definitions of all exported functions.
  Relocated version macro definitions ahead of the includes of zlib.h and
    pngconf.h in png.h.
  Made PNG_NO_CONSOLE_IO the default condition when PNG_BUILD_DLL is defined.
  Use MSC _RPTn debugging instead of fprintf if _MSC_VER is defined.
  Added png_access_version_number() function.
  Check for mask&PNG_FREE_CHNK (for TEXT, SCAL, PCAL) in png_free_data().
  Expanded libpng.3/libpng.txt information about png_data_freer().
  Changed pnggccrd.c and pngvcrd.c to handle bad adaptive filter types as
    warnings instead of errors, as pngrutil.c does.
  Set the PNG_INFO_IDAT valid flag in png_set_rows() so png_write_png()
    will actually write IDATs.
  Made the default PNG_USE_LOCAL_ARRAYS depend on PNG_DLL instead of WIN32.
  Make png_free_data() ignore its final parameter when freeing data that can
    have multiple instances (text, sPLT, unknowns).
  Removed info_ptr->valid tests from png_free_data(), as in version 1.0.5.
  Added png_set_invalid() function.
  Fixed incorrect illustrations of png_destroy_write_struct() in example.c.
  Revised the deliberately erroneous Linux setjmp code in pngconf.h to produce
    fewer error messages.
  Set each pointer to NULL after freeing it in png_free_data().
  Worked around a problem in pngconf.h; AIX's strings.h defines an "index"
    macro that conflicts with libpng's png_color_16.index. (Dimitri Papadapoulos)
  Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
    indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
  Added a check for overlength PLTE chunk in pngrutil.c.
  Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
    indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
  Added a warning in png_decompress_chunk() when it runs out of data.
  Revised the copyright/disclaimer/license notice.
  Corrected the definition of PNG_TRANSFORM_INVERT_ALPHA  (0x0400 not 0x0200)
  Added PNG_USE_DLL macro.
  Added "msvc" and contrib/msvctest directories with MSVC++ project files
    (Simon-Pierre Cadieux) and contrib/visupng directory (Willem van Schaik).
  Removed leading underscores from "_PNG_H" and "_PNG_SAVE_BSD_SOURCE" macros.
  Fixed bugs in pngwrite.c and pngwutil.c that prevented writing iCCP chunks.
  Revised the definition of "trans_values" in libpng.3/libpng.txt
2000-07-03 12:06:47 +00:00
wiz
6f8379fafb Fix library dependencies (on libm and libz).
USE_LIBTOOL instead of USE_PKGLIBTOOL.
2000-06-03 19:46:42 +00:00
rh
74add3b300 s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
2000-06-01 11:23:11 +00:00
wiz
62a8f68a2d install man pages for libpng, as requested in pkg/9937. 2000-04-20 02:11:46 +00:00
tron
5657c17928 Update for distribution file change. 2000-03-21 23:24:46 +00:00
tron
1f4530690d Use official site and official mirror in master site list. 2000-03-21 23:24:24 +00:00
tron
152243dbb2 Update "png" package to version 1.0.6. Changes since version 1.0.5:
- Added contrib/pngsuite and contrib/pngminus (Willem van Schaik)
- Fixed a typo in the png_set_sRGB() function call in example.c (Jan Nijtmans)
- Further optimization and bugfix of pngvcrd.c
- Revised pngset.c so that it does not allocate or free memory in the user's
  text_ptr structure.- Instead, it makes its own copy.
- Added code in pngwrite.c to free info_ptr->text[i].key to stop a memory leak.
- Created separate write_end_info_struct in pngtest.c for a more severe test.
- Moved PNG_FLAG_HAVE_CHUNK_HEADER, PNG_FLAG_BACKGROUND_IS_GRAY and
  PNG_FLAG_WROTE_tIME from flags to mode.
- Added png_write_info_before_PLTE() function.
- Fixed some typecasting in contrib/gregbook/*.c
- Updated scripts/makevms.com (Martin Zinser)
- Moved png_get_header_version from png.h to png.c, to accomodate ansi2knr.
- Removed all global arrays (according to PNG_NO_GLOBAL_ARRAYS macro), to
  accomodate making DLL's: Moved usr_png_ver from global variable to function
  png_get_header_ver() in png.c.- Moved png_sig to png_sig_bytes in png.c and
  eliminated use of png_sig in pngwutil.c.- Moved the various png_CHNK arrays
  into local arrays.- Eliminated use of global png_pass arrays.- Declared the
  png_CHNK and png_pass arrays to be "const".- Made the global arrays
  available to applications when PNG_NO_GLOBAL_ARRAYS is not defined or
  when PNG_USE_GLOBAL_ARRAYS is defined.- Made available to applications a
  macro "PNG_USE_LOCAL_ARRAYS".
- Changed the PNG_sRGB_INTENT macros in png.h to be consistent with PNG-1.2.
- Change PNG_SRGB_INTENT to PNG_sRGB_INTENT in libpng.txt and libpng.3
- Added PNG_EXPORT_VAR macro to accommodate making DLL's.
- Refactored the inflate/deflate support to make adding new chunks with
  trailing compressed parts easier in the future (Eric S. Raymond).
- Added iCCP, iTXt, sCAL, and sPLT support; added "lang", "lang_key", and
  itxt_length" members to the png_text structure (Eric S. Raymond, Glenn R-P)
- Changed png_get_oFFs() and png_set_oFFs() to use signed rather than unsigned
  offsets (Eric S. Raymond).
- Combined PNG_READ_cHNK_SUPPORTED and PNG_WRITE_cHNK_SUPPORTED macros into
  PNG_cHNK_SUPPORTED and combined the three types of PNG_text_SUPPORTED
  macros, leaving the separate macros also available.
- Removed comments on #endifs at the end of many short, non-nested #if-blocks.
- Changed makefile.solaris to issue a warning about potential problems when
  the ucb "ld" is in the path ahead of the ccs "ld".
- Removed "- [date]" from the "synopsis" line in libpng.3 and libpngpf.3.
- Added code in pngwrite.c to work around a newly discovered zlib bug.
- Unknown chunk handling is now supported (Eric S. Raymond).
- Option to eliminate all floating point support was added.- Some new
  fixed-point functions such as png_set_gAMA_fixed() were added.
- Added new type "png_fixed_point" for integers that hold float*100000 values
- Added many parentheses, e.g., "if (a && b & c)" becomes "if (a && (b & c))"
- Added png_handle_as_unknown()
- Added chunk_list and num_chunk_list members of png_ptr.
- Define png_get_int_32 when oFFs chunk is supported as well as when pCAL is.
- Added functions png_set_read_user_chunk_fn() and png_get_user_chunk_ptr()
  for setting a callback function to handle unknown chunks and for
  retrieving the associated user pointer (Glenn).
- Added png_free_data() function.
- Added high-level functions png_read_png() and png_write_png() (ESR).
- Renamed pngdll.mak to makefile.bd32
- Cosmetic changes in pngtest.c
- Fixed pngvcrd.c bug by pushing/popping registers in mmxsupport (Bruce Oberg)
- Revised makefile.gcmmx
- Fixed a bug in pngrtran.c that improperly expanded the background color.
- Return *num_text=0 from png_get_text() when appropriate, and fix
  documentation of png_get_text() in libpng.txt/libpng.3.
- Added PNG_SETJMP_SUPPORTED, PNG_SETJMP_NOT_SUPPORTED, and PNG_ABORT() and
  "png_jmpbuf()" macros to pngconf.h, to help people migrate to the new error
  handler that's planned for the next libpng release, and changed example.c,
  pngtest.c, and contrib programs to use this macro.
- Revised some of the DLL-export macros in pngconf.h (Greg Roelofs)
- Fixed some mistakes in the unused and undocumented INCH_CONVERSIONS functions
  in pngget.c
- Updated makefile.linux and makefile.gccmmx to make directories conditionally.
- Increased precision of rgb_to_gray calculations from 8 to 15 bits and
  added png_set_rgb_to_gray_fixed() function.
- Added makefile.bc32 (32-bit Borland C++, C mode)
- Updated references to the zlib home page, which has moved to
  freesoftware.com.
- Corrected bugs in documentation regarding png_read_row() and png_write_row().
- Renamed makefile.borland,turboc3 back to makefile.bor,tc3 as in version
  1.0.3, revised borland makefiles; added makefile.ibmvac3 and makefile.gcc
  (Cosmin)
- Added makefile.sggcc (SGI IRIX with gcc)
2000-03-21 22:07:57 +00:00
tron
eaed2d6261 Add mirror on "ftp.fu-berlin.de". 2000-02-09 22:13:34 +00:00
tron
a5127075eb Update "png" package to version 1.0.5. This version mostly fixes bugs
discovered since version 1.0.3. A complete list of the changes can be
found under "ftp://ftp.uu.net/graphics/png/src/libpng-1.0.5-README.txt".
2000-02-09 15:46:27 +00:00
tron
c247f960da Update "png" package to version 1.0.5. This version mostly fixes bugs
discovered since version 1.0.3. A complete list of the changes can be
found under "ftp://ftp.uu.net/graphics/png/src/libpng-1.0.5-README.txt".
2000-02-09 15:22:31 +00:00
abs
df05aef71f Strip trailing '.', and/or leading '(a|an) ' 2000-01-05 15:37:50 +00:00
agc
a910a6fd62 Add package patch-sum files 1999-07-09 13:50:05 +00:00
tron
f03e5614c7 Update "png" package to version 1.0.3. 1999-03-04 13:50:48 +00:00
hubertf
2a95ad9c6b Fix CONFLICTS (remove redundancy, mostly) 1999-02-20 22:48:24 +00:00
tsarna
6bd0d65c65 The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
1998-08-20 15:16:34 +00:00
agc
05b88260d7 Add NetBSD RCS Ids. 1998-08-07 13:16:49 +00:00
agc
86db14e819 Add NetBSD RCS Ids. 1998-08-07 10:35:47 +00:00
tv
a75a2272cd Update to use USE_LIBTOOL. 1998-07-24 01:56:59 +00:00
tv
ce44544840 Change libtool _not_ to install the .la file. Though marked as "for
informational purposes," it's not used by any of the toolchain and is
pretty much useless.
1998-07-16 13:36:47 +00:00