Commit graph

59 commits

Author SHA1 Message Date
adam
d2f3dde216 Fix build on FreeBSD 6 (PR-32234) 2006-02-14 21:57:44 +00:00
markd
af46f24af1 Fix build on Solaris. 2006-02-04 12:23:55 +00:00
joerg
71ab31518c Save a bunch of coredump message in my dmesg and allow groff to compile
by fixing pnmtopng's opt parsing. Bump revision.
2006-02-02 17:01:17 +00:00
joerg
be8365b843 Fix compilation on DragonFly by reordering includes. 2006-02-02 16:04:13 +00:00
adam
034380fe31 Changes 10.31:
* Bug fixes
2006-01-16 15:17:02 +00:00
adam
9e9c489b88 Changes 10.30:
Add pambayer.

Add pamrgbatopng.

Add pamtilt.  Thanks Gregg Townsend <gmt@cs.arizona.edu>.

pamtotiff: create from pnmtotiff.

pamtofits: create from pnmtofits.

pamaddnoise: crate from pnmaddnoise.

pamarith: Add -divide.

pammasksharpen: Add -sharpness.

pnmtopng: add -comp_mem_level, -comp_strategy, -comp_method,
-comp_window_bits, -comp_buffer_size.

pnmtopng: use Shhopt command line processor; replace
-chroma with -rgb, -phys with -size, -time with -modtime.

pnmremap: Handle multiple image stream.

xpmtoppm: Expand capacity from 2K character input lines to
8K character input lines.

libnetpbm: improved messages for "color xxx cannot be
represented precisely with maxval M"

libnetpbm color specification parsing:  Improve warning message
about rounding.

libnetpbm/everything: speed up ppm_writeppmrow() and
pgm_writepgmrow() by doing one fwrite per row instead of
a pgm_writerawsample() per sample.

pnmtopng: fix "meaningful bits" optimization of PGM so it
optimizes all the way instead of stopping at 4 bits.

pnmtopng: fix crash when no -alpha option, due to dereferencing
of undefined alpha_mask.

pnmtopng: fix bug: arbitrary color made transparent in
paletted PNG when nothing should be transparent.

pnmtops: bug: selects wrong Postscript level.

bmptopnm: Don't crash on BMP with no color map.

bmptopnm: Fix wrong file name in error messages.

ppmtowinicon: use REALLOCARRAY instead of arithmetic-overflowing
realloc().

anytopnm: fix bug: fails when 'file' database doesn't
have mime type but does have human-readable type.

manweb: recognize directory as not executable in search of PATH.

pgm_allocrow(), ppm_allocrow(), pnm_allocrow(): cure
arithmetic overflow.

libnetpbm: On plain formats, check for sample value exceeding
maxval.

libnetpbm: reject maxval > 65535 in "pam" functions.

pamarith: Use normalized libnetpbm facilities to get
proper accuracy.  Thanks Thomas Henlich
<http://sourceforge.net/users/thenlich/>.

pamarith: fix bug: shift functions don't work when maxvals
are not identical.

pamarith: fix rounding error on multiply.

pgmtexture: correct calculation of normalizing constants
for d > 1.  Thanks Marc Breithecker
<Marc.Breithecker@informatik.uni-erlangen.de>.

pnmnorm: fix divide by zero crash.

pnmnorm: fix bug that doesn't let you specify
-luminosity, -colorvalue, or -saturation.

ilbmtoppm: fix variable used before set.

pnmtofits: fix 16 bit sample values > 2**15.

pnmtopsnr: minor adjustments to messages.

pnmnorm: don't crash when wvalue == bvalue.  Thanks Thomas
<http://sourceforge.net/users/thenlich/>.

pnmnorm: fix rounding of output values.  Thanks Thomas
<http://sourceforge.net/users/thenlich/>.

pnmhisteq: Fix external map to have width maxval + 1 instead
of maxval, so full intensity input pixels map properly.

pnmhisteq: Fix -rmap.

Fix typos in error messages in various programs.

pgmmedian: change syntax to Netpbm standard.

pammasksharpen: fix signedness bug that caused random bright
pixels at edges.

pammasksharpen: fix bug with maxval != 255.

Clean up a bunch of function prototypes so some broken
compilers don't complain about missing "const" in them.

Remove dependency of pnmtops on basename().  It isn't in
some C libraries and we don't want to mess with linking
extra libraries.

Build of ppmsvgalib: work properly when LINUXSVGALIB is
a "default path" value such as "libvga.so".
2005-10-19 09:30:08 +00:00
schmonz
644ab99376 Apply patches for the three 10.29 bugs listed on SourceForge we
hadn't already fixed. The list:

http://sourceforge.net/project/shownotes.php?group_id=5128&release_id=349291

The problems fixed in this PKGREVISION bump:

* pnmtopng: can crash due to wild pointer if you don't use the
    -alpha option.
* pammasksharpen:  Multiple bugs cause it to produce incorrect
    output.
* pnmhisteq: -rmap doesn't work.

Addresses my own PR pkg/31314, with thanks to Nathan Arthur for
bringing these patches to my attention.
2005-09-20 05:04:11 +00:00
reed
d805c8c67e Add patch that fixes
error: invalid lvalue in assignment
in editor/pnmaddnoise.c.

This was noticed on DragonFly with gcc 3.4.5.
Found idea from DarwinPorts.
Also tested on NetBSD 2.0.2 (gcc 3.3.3) and Linux (gcc 3.3.5).

I do not know if this is improved in netpbm upstream yet.

Okay'ed by maintainer.
2005-08-31 19:47:53 +00:00
jlam
3bd274e5ab Using the included jasper library is a total crapshoot because netpbm
strips out the logic that determines which integer types are available,
and yet building the jasper library relies on those integer types to
be correctly provided.  Just punt on the whole thing and use the
graphics/jasper dependency instead.  This fixes building netpbm on
Solaris and older versions of FreeBSD.

Bump the PKGREVISION to 1.  The jasper library is only linked into two
executables, so there is no need to do a recursive PKGREVISION bump.
2005-08-31 08:04:58 +00:00
adam
7697e1866b Changes 10.29:
Add ppmdraw.

Add pammixinterlace.  Thanks Bruce Guenter <bruceg@em.ca>.

Add pgmmedian.

Add pnmaddnoise.

pnmtopclxl: add -rendergray option.

pnmtopclxl: add -jobsetup option.

pstopnm: add -dSAFER Ghostscript option.

pnmcrop: add -margin option.

pnmcrop: add -borderfile option.

pnmnorm: add -luminosity (which was already default),
-colorvalue, and -saturation.

pnmtopng: Don't include any alpha info if supplied alpha mask
is all opaque.

ppmcie: Make white point mark more visible.

pamdice: Remove restriction of 100 slices in each direction.

pnmtopng: Fix bug: erroneous transparent pixels when supplied
alpha mask is all opaque.

Fix bytesToWordInt(): converts incorrectly on a machine that
has pointer size != word size and uses the general case code.

libnetpbm: fix basic pm_readlittleshort() bug introduced
in 10.27.  Affects mdatopbm, rawtopgm, lispmtopgm,
pcxtoppm, winicontoppm, bmptopnm, sirtopnm, xwdtopnm,
cameratopam.

pamlookup: fix universal crash.  Thanks "Colley, Anthony
W." <Anthony.Colley@ngc.com>

pbmtolj: fix bug from 10.28: crashes with a line which is
a multiple of 8 plus 7 pixels wide not counting white right
margin.

ppmtompeg: fix uname() rc test (sometimes > 0 is success).
2005-08-22 11:59:31 +00:00
grant
43ff9bb0b2 fix build on Solaris:
- use graphics/jasper instead of built-in jasper which has little hope
  of building on Solaris
- use putenv() instead of setenv()
- fix abuse of _XOPEN_SOURCE

no PKGREVISION bump as no dependency change except on Solaris, where
this didn't build before.
2005-08-21 04:47:24 +00:00
salo
4619ac35c7 Update to version 10.28
- security fix for SA16184, patch from Debian

Changes:
- ppmtompeg: fix insecure temp file creation
- jpeg2000: don't do unsafe temporary files
- add cameratopam (Dave Coffin's dcraw)
- various other bugfixes
2005-08-06 14:07:07 +00:00
minskim
98ecdd0e66 Do not build fiasco on Darwin-8.x, where it causes a bus error. This
should be OK since the netpbm Makefile has the following:

  # Fiasco has some special requirements that make it fail to compile on
  # some systems, and since it isn't very important, just set this to "N"
  # and skip it on those systems unless you want to debug it and fix it.
  BUILD_FIASCO = Y
2005-06-30 15:58:59 +00:00
adam
e8d8220c06 Changes 10.26.11:
* Fixed memory problem in pamcomp
Changes 10.26.10:
* Fixed: jpeg2ktopam, rle_open: ppmtompeg
2005-06-30 14:55:13 +00:00
adam
20150fe025 Changes 10.26.9:
* libnetpbm: fix crash with -builtin=fixed
* pbmtoppa: fix floating point exception
Changes 10.26.8:
* pnmgamma: Correct math in -srgbramp
* ppmshadow: fix blurring
Pkgsrc:
* fixed problem on DragonFly (courtesy of Joerg Sonnenberger)
2005-05-24 07:53:54 +00:00
adam
ba2a6bb79b Changes 10.26.3:
* pnmremap: fix rounding error where map maxval is small
  and unequal to image maxval.
* ppmtompeg: fix compile failures on "no parallel" builds
  and where prototypes don't match definitions in bitio.c.

Changes 10.26.2:
* Build: handle zlib prerequisite of tiff library.
* giftopnm: fix crash with input that has bogus color indices
  in the raster.
* giftopnm: fix crash with input that has a bogus minimum code
  length field.
* pnmtopalm: fix padding with -offset.
* pnmtopalm: fix compressed images.  use 0 compressed size
  field - not totally correct, but passable.
* palmtopnm: fix incorrect handling of some combinations of
  PALM_IS_COMPRESSED flag and compression type field.
* palmtopnm: fix totally broken RLE and scanline compression.
* palmtopnm: fix wrong check for disallowed combination of
  -transparent and -rendition.
2005-02-17 11:36:01 +00:00
adam
4c013029f4 These patches are no longer needed 2005-01-18 14:17:07 +00:00
adam
f381673935 Changes 10.26.1:
* pamcomp: fix bug that duplicates last row of overlay image.
* pamcut: fix bug that fills the rightmost column with black.
* pnmtopalm: fix bug with -offset option.
* ppmforge: fix bug: crash due to wild pointer with -night.

Changes 10.26:
* pnmhistmap: Add -dots, -nmax, -red, -green, -blue, -lval,
  -rval, -height, and -width options.
* pnmnorm: accept -wpercent and -wvalue (or -bpercent and -bvalue)
  together.  Thanks Gregg Townsend <gmt@CS.Arizona.EDU>.
* xwdtopnm: Add -headerdump option.
* pnmtoxwd: Include 256 color color maps in direct color instead
  of zero.  Zero has a weird effect.
* pamtotga: recognize RGB_ALPHA instead of RGBA.
* palmtopnm: fix bug in determination of compression type.
* palmtopnm: fix bug in handling of multi-image streams.
* pnmtopalm: fix bugs in computation of nextDepthOffset.
* pamtotga: fix TGA pixel size for TGA with alpha.  Don't do
  colormap if input has transparency.
* pamtotga: fix crash due to uninitialized "id" field in TGA header.
* pbm_writepbmrow(): Fix bug in MMX/SSE code that causes segmentation fault.
* pnmhistmap: Fix bug: doesn't work with maxval != 255.
* pbmtext: fix crash with code point > 127.
* ppmtompeg: major cleanup.
* pnmtopng: fix "internal error" and crash bug with -transparent.
* pnmtoxwd: fix endianness on littleendian machines.
* pnmtoxwd: fix bug: doesn't work if you specify an option.
* jpegtopnm: fix bug: -dumpexif all wrong.
* jpegtopnm: fix bug: newline written to stdout instead of stderr with -dumpexif.
* Add missing 'col' declaration so -msse compile works.
* pcdovtoppm: fix syntax error
* pnmtojbig/jbigtopnm: add newline to "usage" message.
* pamperspective: fix bugs with -frame_include, etc.
* build: Jeg2k programs build properly with newer Jasper library.
* build: Fix bug: "no rule to build xxx.so" with external
* Jasper or Jbig library.
* Add NAME and DESCRIPTION section to pointer man pages.
2005-01-18 14:16:20 +00:00
tv
6bb8469445 Make this work on Interix. 2004-10-21 20:45:52 +00:00
grant
32fb85d783 the "pgmramp" program included in this package needs to be linked
against libm for fabs().

this is the same fix as is already in netpbm-latest.
2004-07-10 13:29:34 +00:00
fredb
b1a69d0f4f Don't play games with the featureset macros on NetBSD. This patch fixes the
build on NetBSD 2.0E/mac68k, also works fine on NetBSD 1.6.2_STABLE/i386.
2004-05-03 16:42:47 +00:00
adam
15b34f431e Changes 10.18.12:
* Don't try to install pm_gamma (which does not exist in this level)
* pamflip: fix bug with random memory accesses due to signed/unsigned comparison

Changes 10.18.11:
* pnmtopng: fix bug with -transparent

Changes 10.18.10:
* Include pm_system.h, pm_gamma.h in install package
* Fix the ftell/ftello distinction for many platforms
* ppmtogif: Don't violate array bounds when GIF color map is larger
  than internal color map.
* yuvsplittoppm: Fix -ccir601 option
* ppmtomap: Change #/bin/sh to #!/bin/sh

Changes 10.18.9:
* ppmtobmp: Fix bug: Generates invalid bits per pixel (e.g. 3) when input
  image has small number of colors
* pbmtog3: fix buffer overrun when image > 1728 columns
* pnmtotiffcmyk:  Correct abs to fabs so -theta works
* sldtoppm: Correct abs to fabs
* pgmramp: Correct abs to fabs so -rectangle and -ellipse work
* pgmramp: Don't crash with -rectangle and height or width = 1
* pnmtojpeg: interpret "length" field in exif data as unsigned 16 bit
  instead of signed.
* ppmforge: Correct abs to fabs so the planet is more than 2 pixels wide

Changes 10.18.8:
* pnmrotate: fix bug: always crashes in memory free
* pnmrotate: remove debugging messages

Changes 10.18.7:
* ppmshadow: Fix crash in all invocations
* pnmquant: Fix bug wherein all options are rejected

Changes 10.18.6:
* Add default RPATHOPT = rpath setting to Makefile.config.in
* Add stdlib.h and pm_config.h to mallocvar.h
* lib/Makefile: $(LIBNETPBMSUFFIX) instead of .so
* fitstopnm: Don't produce maxval 0

Changes 10.18.5:
* pnmtopng: fix bug with array bounds violation with -alpha
  Usual symptom: "internal inconsistency" message

Changes 10.18.4:
* anytopnm: Remove "function" so it works on FreeBSD

Changes 10.18.3:
* Fix stack corruption in pXm_check() on systems that have both 32 and 64 bit
  file offsets

Changes 10.18.2:
* installnetpbm: don't crash on mkdir on old Perl
* bmptopnm: fix bug with BMPs that end prematurely

Changes 10.11.15:
* Bmptopnm goes into an infinite loop if you give it a BMP file that ends
  prematurely.  The bug is in the way the program interprets the return code
  from fread() in readrow().  You can get the fix from the 10.18.1-10.18.2 diff.
* xwdtopnm: Doesn't work with at least one direct color 24 bits-per-pixel
  xwd generated by Xfree86's Xwd.
* ppmquant does not choose the best set of colors.  pnmquant does, though.
* giftopnm doesn't understand GIFs with the same color both transparent and
  opaque.

pnmtopng -alpha fails with "internal inconsistency detected" message
Changes 10.11.14:
* pstopnm: fix bug in which Standard Input never works
* ppmtobmp: change 'char' to 'unsigned char' to work around a Solaris C library   bug
* ppmtobmp: handle maxval properly for maxval != 256 truecolor BMP

Changes 10.11.13:
* Explicitly set SCRIPTS make variable to null so environment
  variable of the same name doesn't screw things up.
* stamp_date: don't use LOGNAME as a variable (on AIX, you can't).
* configure: put space after -o in test compiles.
* ppmtompeg: adjust header files in parallel.c so it compiles on AIX

Changes 10.11.12:
* pnmpsnr: fix bug: Cr and Cb interchanged
* Fix crash in pnmstitch

Changes 10.11.10:
* Declare internal subroutines in pgmabel as 'static' so they don't conflict
  with some C libraries

Changes 10.11.9:
* pstopnm: fix bug: encapsulated postscript confused with regular postscript,
  so all pages get overlaid as one page
2004-04-29 08:02:39 +00:00
wiz
5d908a3ef0 Add a patch that disables optimization for one file; otherwise
an ICE would result with gcc-3.3.x on sparc64.  See PR 23124.
Patch from jdc@.
2004-03-22 15:52:35 +00:00
jschauma
c4a4a453fe Make this compile on Irix.
(use 'ar rs' instead of ranlib on Irix, don't use '-fPIC', make sure
strdup is properly prototyped)
2003-09-07 17:22:15 +00:00
wiz
5daaad6900 Remove useless "No newline at end of file" chunk that is bound to make trouble. 2003-06-11 07:10:46 +00:00
tron
3003a3f5ef Fix build problems under Mac OS X. The patch was contributed by
Richard Grace in private e-mail.
2003-06-11 06:59:26 +00:00
cjep
3c5a0f9e3a Remove last hunk of patch-aa to fix build problem on 1.5.2. 2003-04-11 22:45:56 +00:00
tron
93f5c1d229 Fix "zlib" configuration in "Makefile.common" so that PNG tools get built.
Bump package revision to reflect this change. This patch was contributed
by Christopher Richards in PR pkg/20809.
2003-03-21 08:30:48 +00:00
tron
43dfa732c6 Update "netpbm" package to latest stable version 10.11.6. Numerous bugs
have been fixed and a lot of features have been added since version 9.25.
2003-03-18 12:11:55 +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
kristerw
c8c8ec2172 Make this build on NetBSD-1.4 a.out. 2002-07-02 01:47:52 +00:00
tron
45e2108b39 Fix build problems on older "a.out" system. Based on patches supplied by
Greg A. Woods in PR pkg/16030.
2002-05-14 18:03:17 +00:00
tron
6d7c885cd1 Fix build problems under Solaris. The necessary patches were contributed
by Lubomir Sedlacik in PR pkg/16554.
2002-05-06 11:46:21 +00:00
wiz
b61c185faa Fix compilation on 1.4.x, and remove a patch that was still referencing
libtool.
2002-03-20 12:42:11 +00:00
wiz
85e59f5123 Update to 9.25:
Changes since 9.24:
Add pamdice, pnmnorm (replacing ppmnorm and pgmnorm), convert bmptoppm
to bmptopnm, and some bug fixes and enhancements.
2002-03-15 11:04:29 +00:00
wiz
fbb2503ad9 Update to 9.24.
pkgsrc changes:
Don't use libtool any longer to reduce patches.
Add USE_PERL, since 4 scripts depend on it.
program changes:
Lots of new converters/modification programs and scripts, e.g. pbmtonokia,
ppmtolj, and pnmtopalm. Better alpha support.
Also, lots of bug fixes.
2002-03-14 22:21:42 +00:00
jlam
d2193b82a7 It's ${BUILDLINK_DIR}/lib, not ${BUILDLINK_LIBDIR}. 2001-06-19 04:21:04 +00:00
jlam
0f5b5101f4 Convrt to use buildlink.mk. 2001-06-16 19:50:57 +00:00
tron
614061be69 Make this package work under Solaris. 2001-01-14 13:17:55 +00:00
bad
eba074d322 The fiasco libraries need to be ranlib'ed. 2001-01-10 14:07:21 +00:00
wiz
01b0a7102d Update to 9.7.
Changes: Many bugfixes, new pam file format.
2000-08-10 10:44:09 +00:00
wiz
8b4fe32349 Update to netpbm-9.5.
Fixes pkg/8949.
Changes:
o Extend formats to allow multiple images per file.  Add -allimages
  option to pnmfile.  Add pnmsplit.  Extend pnmtops.
o Add pbmtowbmp, wbmptopbm.  Thanks Terje Sannum.
o ppmtobmp: Add 24 bit (truecolor) capability.
o pnmcut: easier, more expressive syntax for specifying what to cut.
o pnminterp: handle maxval != 255, convert to use Netpbm libraries.
o Translate pstopnm from Csh to C, eliminate dependency on the 'bc'
  program.
o Fix bug in tiff library build which caused null soname.
o Add optParseopt2() to shhopt.a so you can use long options with one
  hyphen instead of two.
o giftopnm: fix bug with variable used before set.  Fix bug (coding
  error -- 0=>i).  Unknown impact.
o bmptoppm: fix bug with 24 bit (truecolor) Windows BMPs.
o xwdtopnm: fix one more bug with bits_per_item <> bits_per_pixel.
o Fix ppmtompeg build bug with static libraries.
o Make build clean with gcc -ansi (albeit with some files that need
  extensions declaring the _BSD_SOURCE etc.).
o Rebase pnmtopng, pngtopnm on Pnmtopng 2.37.4.
o pbmtolj: fix bug where blank lines get discarded.  Thanks Charles
  Howes.
o ppmtompeg: fix bug with "PNM" format files with maxval != 255. Get
  rid of built-in PPM file parsing.
o Fix 'make install' where mkinstalldirs is not found.
o Fix bug where rle_global.c would not compile with GNU C Library 2.
2000-07-10 11:12:09 +00:00
dmcmahill
052b7407d2 forgot to cvs add this file before previous commit... 2000-06-24 01:49:03 +00:00
hubertf
dc05682873 * Set LIBOPT to something really existing (${ECHO} is a shell builtin
now, and as such can't be used as a file dependency in make(1)).
 * Don't force anyone to have "." in his $PATH
2000-06-05 01:13:34 +00:00
wiz
8448a0b5b4 Update to 9.3.
Use USE_LIBTOOL instead of USE_PKGLIBTOOL.
Changes since 9.2:
o pnmfile: check for file size error.
o ppmhist: handle larger maxvals, image sizes
o xwdtopnm: Use color map with DirectColor to fix wrong color bug on
  some DirectColor xwds.
o xwdtopnm: Correct bug with 24/32 DirectColor LSBfirst xwds.
o Add pXmcheck() library function.
o Add leaftoppm and ppmtoleaf.  Thanks Bill O'Donnell.
o Add winicontoppm and ppmtowinicon.  Thanks Lee Benfield.
o Add pgmslice.  Thanks to Jos Dingjan.
o Include subset of RLE library in the package.
o stamp-date doesn't rely on whoami.
o Make file fixes to accomodate more install programs.
o Replace tmpnam() with mkstemp().
o Add pXm_init() into all programs that didn't have it.
2000-06-05 00:36:30 +00:00
tron
e8caa7879c Update "netpbm" package to version 9.2. There are too many changes and
bug fixes to list here. Main new features are shared libraries, JPEG
and JBIG support.
2000-05-17 10:13:19 +00:00
jlam
b827288b1d * Remove redundant dependency on jpeg
* Update dependency on tiff
* Fixes for paths to find libraries and includes
1999-10-08 21:18:32 +00:00
tron
04e96e931d Fix run time library path. Patches supplied by Dave Huang in PR pkg/8071. 1999-07-25 21:17:32 +00:00
christos
363a613d4f This has been broken forever. In order to compile other pbm programs
using the includes and the libraries in the pkg you need to include
pbmplus.h... fix the Makefile to install it and add it to the plist.
1999-06-03 20:55:55 +00:00
tron
f9cc3e2fe3 Major cleanup of "netpbm" package based on patches supply by
John F. Woods in PR pkg/6763 and Rob Windsor in PR pkg/6779.
1999-01-10 23:52:15 +00:00