SUMMARY="Toolkit for manipulation of graphic images"
DESCRIPTION="Netpbm is a toolkit for manipulation of graphic images, \
including conversion of images between a variety of different formats.  There  \
are over 300 separate tools in the package including converters for about 100  \
graphics formats.

Examples of the sort of image manipulation we're talking about are:
- Shrinking an image by 10%
- Cutting the top half off of an image
- Making a mirror image
- Creating a sequence of images that fade from one image to another"
HOMEPAGE="http://netpbm.sourceforge.net"
COPYRIGHT="2001 411toppm: Steve Allen
	1991 anytopnm: Jef Poskanzer
	1989 asciitopgm: Wilson H. Bent, Jr
	1991 atktopbm: Bill Janssen
	1993 bioradtopgm: Oliver Trepte
	1992 bmptoppm: David W. Sanderson
	1988 brushtopbm: Jef Poskanzer
	1989 cmuwmtopbm: Jef Poskanzer
	1995 eyuvtoppm: The Regents of the University of California
	1994-2000 fiascotopnm: Ullrich Hafner
	1989 fitstopnm: Jef Poskanzer
	1989 fstopgm: Jef Poskanzer
	1989 g3topbm: Paul Haeberli
	1988 gemtopbm: Diomidis D. Spinellis
	1988 gemtopnm: Diomidis D. Spinellis
	1990-1993 giftopnm: David Koblas
	1990 gouldtoppm: Stephen P. Lesniewski
	1989 hipstopgm: Jef Poskanzer
	1988 icontopbm: Jef Poskanzer
	1989 ilbmtoppm: Jef Poskanzer
	1989 imgtoppm: Jef Poskanzer
	2000 jbigtopnm: Markus Kuhn
	1991-2000 jpegtopnm: Thomas G. Lane, Bryan Henderson
	1994 leaftoppm: Bill O'Donnell
	1988 lispmtopgm: Jef Poskanzer, Jamie Zawinski
	1988 macptopbm: Jef Poskanzer
	1999 mdatopbm: John Elliott
	1989 mgrtopbm: Jef Poskanzer
	1989 mtvtoppm: Jef Poskanzer
	2001 neotoppm: Teemu Hukkanen
	1995-2000 palmtopnm: Ian Goldberg, Bill Janssen
	1989 pamcut: Jef Poskanzer
	1991 pamfile: Jef Poskanzer
	1990 pamoil: Wilson Bent
	1989-1990 pbmclean: Jef Poskanzer, Angus Duggan
	1988-1991 pbmlife: Jef Poskanzer
	1988 pbmmake: Jef Poskanzer
	1989-1991 pbmmask: Jef Poskanzer
	1998 pbmpage: Tim Norman
	1989-1990 pbmpscale: Jef Poskanzer, Angus Duggan
	1989 pbmreduce: Jef Poskanzer
	1991 pbmtext: Jef Poskanzer
	1990-1994 pbmto10x: Ken Yap
	1988-1992 pbmtoascii: Jef Poskanzer
	1991 pbmtoatk: Bill Janssen
	1989 pbmtobbnbg: Mike Parker
	1989 pbmtocmuwm: Jef Poskanzer
	1988 pbmtoepsi: Jef Poskanzer
	1990 pbmtoepson: Jef Poskanzer, John Tiller
	1989 pbmtog3: Paul Haeberli
	1988 pbmtogem: Jef Poskanzer, David Beckemeyer
	1988-1989 pbmtogo: Jef Poskanzer, Michael Haberler, Bo Thide'
	1988 pbmtoicon: Jef Poskanzer
	1988 pbmtolj: Jef Poskanzer, Michael Haberler
	1988 pbmtomacp: Douwe vand der Schaaf
	1999 pbmtomda: John Elliott
	1989 pbmtomgr: Jef Poskanzer
	2001 pbmtonokia: OMS Open Media System GmbH, Tim R<FC>hsen
	1989-1990 pbmtopgm: Jef Poskanzer, Angus Duggan
	1988 pbmtopi3: David Beckemeyer and Jef Poskanzer
	1990 pbmtoplot: Arthur David Olson
	1998 pbmtoppa: Tim Norman
	2001 pbmtopsg3: Kristof Koehler
	1988 pbmtoptx: Jef Poskanzer
	1999 pbmtowbmp: Terje Sannum
	1988 pbmtox10bm: Jef Poskanzer
	1988 pbmtoxbm: Jef Poskanzer
	1991 pbmtoybm: Jamie Zawinski and Jef Poskanzer
	1988 pbmtozinc: James Darrell McCauley, Jef Poskanzer
	1988 pbmupc: Jef Poskanzer
	1990 pcxtoppm: Michael Davidson
	1990 pgmbentley: Wilson Bent
	1989 pgmcrater: John Walker
	1989 pgmedge: Jef Poskanzer
	1989-1991 pgmenhance: Jef Poskanzer
	1989 pgmhist: Jef Poskanzer
	1992 pgmkernel: Alberto Accomazzi, Smithsonian Astrophysical Observatory
	1993 pgmnoise: Frank Neumann
	1989-1991 pgmnorm: Jef Poskanzer
	1989 pgmramp: Jef Poskanzer
	2000 pgmslice: Jos Dingjan
	1991 pgmtexture: Texas Agricultural Experiment Station, James Darrell McCauley
	1991 pgmtofs: Jef Poskanzer
	1991 pgmtolispm: Jamie Zawinski and Jef Poskanzer
	1989 pgmtopbm: Jef Poskanzer
	1991 pgmtoppm: Jef Poskanzer
	1991 pi1toppm: Steve Belczy and Jef Poskanzer
	1988 pi3topbm: David Beckemeyer and Diomidis D. Spinellis
	1989-1993 picttoppm: George Phillips
	1990 pjtoppm: Christos Zoulas
	1995-1998 pngtopnm: Alexander Lehmann, Willem van Schaik
	1992 pnmalias: Alberto Accomazzi, Smithsonian Astrophysical Observatory
	1989-1991 pnmarith: Jef Poskanzer
	1989-1991 pnmcat: Jef Poskanzer
	1992 pnmcomp: David Koblas
	1989-1995 pnmconvol: Jef Poskanzer, Mike Burns
	1988 pnmcrop: Jef Poskanzer
	1989 pnmcut: Jef Poskanzer
	1989-1991 pnmdepth: Jef Poskanzer
	1989 pnmenlarge: Jef Poskanzer
	1991 pnmfile: Jef Poskanzer
	1989 pnmflip: Jef Poskanzer
	1991 pnmgamma: Jef Poskanzer and Bill Davidson
	1995 pnmhisteq: John Walker
	1993 pnmhistmap: Wilson H. Bent, Jr
	1991 pnmindex: Jef Poskanzer
	1998-2000 pnminterp: Russell Marks
	1998-2000 pnminterp-gen: Russell Marks
	1989 pnminvert: Jef Poskanzer
	1991 pnmmargin: Jef Poskanzer
	2000 pnmmontage: Ben Olmstead
	1993 pnmnlfilt: Graeme W. Gill
	1991 pnmnoraw: Jef Poskanzer
	1989-1990 pnmpad: Jef Poskanzer, Angus Duggan
	1989 pnmpaste: Jef Poskanzer
	1994-2000 pnmpsnr: Ullrich Hafner
	1989-1991 pnmrotate: Jef Poskanzer
	1989-1991 pnmscale: Jef Poskanzer
	1989-1991 pnmscalefixed: Jef Poskanzer
	1989-1991 pnmshear: Jef Poskanzer
	1984 pnmsmooth: Mike Burns
	2000 pnmsplit: Bryan Henderson
	1989 pnmtile: Jef Poskanzer
	1992 pnmtoddif: Digital Equipment Corporation, Burkhard Neidecker-Lutz
	1994-2000 pnmtofiasco: Ullrich Hafner
	1989 pnmtofits: Wilson H. Bent
	2000 pnmtojbig: Markus Kuhn
	1991-2001 pnmtojpeg: Thomas G. Lane, Bryan Henderson
	1995-2000 pnmtopalm: Ian Goldberg, Bill Janssen
	1991 pnmtoplainpnm: Jef Poskanzer
	1995-1998 pnmtopng: Alexander Lehmann, Willem van Schaik
	1989 pnmtops: Jef Poskanzer
	1989-1991 pnmtorast: Jef Poskanzer
	1994 pnmtorle: Minnesota Supercomputer Center, Inc, Wes Barris
	1994 pnmtosgi: Ingo Wilken
	1991 pnmtosir: Marvin Landis
	1990 pnmtotiff: Sun Microsystems, Inc, Jef Poskanzer
	1999 pnmtotiffcmyk: Andrew Cooke (Jara Software)
	1989-1991 pnmtoxwd: Jef Poskanzer
	1989 ppm3d: Jef Poskanzer
	1989-1990 ppmbrighten: Jef Poskanzer, Brian Moffet
	1991 ppmchange: Wilson H. Bent, Jr
	1995 ppmcie: John Walker
	2000 ppmcolormask: Bryan Henderson
	1993 ppmdim: Frank Neumann
	1993 ppmdist: Dan Stromberg
	1991 ppmdither: Christos Zoulas
	1994 ppmfade: Minnesota Supercomputer Center, Inc, Wes Barris
	1993 ppmflash: Frank Neumann
	1989 ppmforge: John Walker
	1989 ppmhist: Jef Poskanzer
	1995 ppmlabel: John Walker
	1989 ppmmake: Jef Poskanzer
	1993 ppmmix: Frank Neumann
	1989-1991 ppmnorm: Jef Poskanzer, Wilson H. Bent, Jr
	1993 ppmntsc: Minnesota Supercomputer Center, Inc, Wes Barris
	1989-1991 ppmpat: Jef Poskanzer
	1989-1991 ppmquant: Jef Poskanzer
	1991 ppmquantall: Jef Poskanzer
	1991-1992 ppmqvga: Bill Davidsen, Lyle Rains
	2001 ppmrainbow: Arjen Bax, Bryan Henderson
	1990 ppmrelief: Wilson H. Bent, Jr
	1997 ppmshadow: John Walker
	1993 ppmshift: Frank Neumann
	1993 ppmspread: Frank Neumann
	1991 ppmtoacad: John Walker
	1992 ppmtobmp: David W. Sanderson
	1995 ppmtoeyuv: The Regents of the University of California
	1990 ppmtoicr: Kanthan Pillay
	1989 ppmtoilbm: Jef Poskanzer
	1994 ppmtoleaf: Bill O'Donnell
	2000 ppmtolj: Jonathan Melvin
	1989 ppmtomap: Jef Poskanzer
	1992-1993 ppmtomitsu: S.Petra Zeidler
	1995 ppmtompeg: The Regents of the University of California
	2001 ppmtoneo: Teemu Hukkanen
	1994 ppmtopcx: Ingo Wilken
	1989 ppmtopgm: Jef Poskanzer
	1991 ppmtopi1: Jef Poskanzer and Steve Belczyk
	1990 ppmtopict: Ken Yap
	1990 ppmtopj: Christos Zoulas
	1991 ppmtopuzz: Jef Poskanzer
	1991 ppmtorgb3: Jef Poskanzer
	1991 ppmtosixel: Rick Vinci
	1989-1991 ppmtotga: Mark Shand and Jef Poskanzer
	1990 ppmtouil: Mark W. Snitily, Jef Poskanzer
	2000 ppmtowinicon: Lee Benfield
	1990 ppmtoxpm: Mark W. Snitily
	1987-1991 ppmtoyuv: Abekas Video Systems Inc, DHD PostImage Inc
	1993 ppmtoyuvsplit: Andre Beck
	1993 ppmtv: Frank Neumann
	1989 psidtopgm: Jef Poskanzer
	1992 pstopnm: Smithsonian Astrophysical Observatory, Alberto Accomazzi
	1989 qrttoppm: Jef Poskanzer
	1989-1991 rasttopnm: Jef Poskanzer
	1989 rawtopgm: Jef Poskanzer
	1991 rawtoppm: Jef Poskanzer
	1991 rgb3toppm: Jef Poskanzer
	1994 rletopnm: Minnesota Supercomputer Center, Inc, Wes Barris
	1998 sbigtopgm: John Walker
	1994 sgitopnm: Ingo Wilken
	1991 sirtopnm: Marvin Landis
	1991 sldtoppm: John Walker
	1991 spctoppm: Jef Poskanzer and Steve Belczyk
	1991 sputoppm: Jef Poskanzer and Steve Belczyk
	1989 tgatoppm: Jef Poskanzer
	1990 tifftopnm: Sun Microsystems, Inc, Jef Poskanzer
	2001 thinkjettopbm: W. Eric Norum
	1999 wbmptopbm: Terje Sannum
	2000 winicontoppm: Lee Benfield
	1988 xbmtopbm: Jef Poskanzer
	1991 ximtoppm: Jef Poskanzer
	1991 xpmtoppm: Jef Poskanzer
	1993 xvminitoppm: Ingo Wilken
	1989-1991 xwdtopnm: Jef Poskanzer
	1988 ybmtopbm: Jamie Zawinski and Jef Poskanzer
	1993 yuvsplittoppm: Marcel Wijkstra
	1987-1991 yuvtoppm: Jef Poskanzer, Abekas Video Systems Inc., DHD PostImage Inc.
	1993 zeisstopnm: Oliver Trepte"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://github.com/t6/netpbm/releases/download/v$portVersion/netpbm-$portVersion.tar.xz"
CHECKSUM_SHA256="8f18b9f1b5521f2392a1b87a2cbc6a751eae1276e67520ad4c383d513040c3b2"
SOURCE_DIR="netpbm-$portVersion/"
PATCHES="netpbm-$portVersion.patchset"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 !x86"

PROVIDES="
	netpbm$secondaryArchSuffix = $portVersion compat >= 10
	cmd:411toppm
	cmd:anytopnm
	cmd:asciitopgm
	cmd:atktopbm
	cmd:avstopam
	cmd:bioradtopgm
	cmd:bmptopnm
	cmd:bmptoppm
	cmd:brushtopbm
	cmd:cameratopam
	cmd:cistopbm
	cmd:cmuwmtopbm
	cmd:ddbugtopbm
	cmd:escp2topbm
	cmd:eyuvtoppm
	cmd:fiascotopnm
	cmd:fitstopnm
	cmd:fstopgm
	cmd:g3topbm
	cmd:gemtopbm
	cmd:gemtopnm
	cmd:giftopnm
	cmd:gouldtoppm
	cmd:hdifftopam
	cmd:hipstopgm
	cmd:hpcdtoppm
	cmd:icontopbm
	cmd:ilbmtoppm
	cmd:imgtoppm
	cmd:infotopam
	cmd:jbigtopnm
	cmd:jpeg2ktopam
	cmd:jpegtopnm
	cmd:leaftoppm
	cmd:lispmtopgm
	cmd:macptopbm
	cmd:manweb
	cmd:mdatopbm
	cmd:mgrtopbm
	cmd:mrftopbm
	cmd:mtvtoppm
	cmd:neotoppm
	cmd:palmtopnm
	cmd:pamaddnoise
	cmd:pamarith
	cmd:pamaltsat
	cmd:pambackground
	cmd:pambayer
	cmd:pambrighten
	cmd:pamchannel
	cmd:pamcomp
	cmd:pamcrater
	cmd:pamcut
	cmd:pamdeinterlace
	cmd:pamdepth
	cmd:pamdice
	cmd:pamditherbw
	cmd:pamedge
	cmd:pamendian
	cmd:pamenlarge
	cmd:pamexec
	cmd:pamfile
	cmd:pamfind
	cmd:pamfix
	cmd:pamfixtrunc
	cmd:pamflip
	cmd:pamfunc
	cmd:pamgauss
	cmd:pamgetcolor
	cmd:pamgradient
	cmd:pamhue
	cmd:pamlookup
	cmd:pamlevels
	cmd:pammasksharpen
	cmd:pammixinterlace
	cmd:pammixmulti
	cmd:pammosaicknit
	cmd:pamoil
	cmd:pampaintspill
	cmd:pamperspective
	cmd:pampick
	cmd:pampop9
	cmd:pamrecolor
	cmd:pamrgbatopng
	cmd:pamrubber
	cmd:pamscale
	cmd:pamseq
	cmd:pamshadedrelief
	cmd:pamsharpmap
	cmd:pamsharpness
	cmd:pamsistoaglyph
	cmd:pamslice
	cmd:pamsplit
	cmd:pamstack
	cmd:pamstereogram
	cmd:pamstretch
	cmd:pamstretch_gen
	cmd:pamtable
	cmd:pamtris
	cmd:pamsumm
	cmd:pamsummcol
	cmd:pamthreshold
	cmd:pamtilt
	cmd:pamtoavs
	cmd:pamtodjvurle
	cmd:pamtofits
	cmd:pamtogif
	cmd:pamtohdiff
	cmd:pamtohtmltbl
	cmd:pamtojpeg2k
	cmd:pamtompfont
	cmd:pamtooctaveimg
	cmd:pamtopam
	cmd:pamtopdbimg
	cmd:pamtopfm
	cmd:pamtopng
	cmd:pamtopnm
	cmd:pamtosrf
	cmd:pamtosvg
	cmd:pamtotga
	cmd:pamtotiff
	cmd:pamtouil
	cmd:pamtowinicon
	cmd:pamtoxvmini
	cmd:pamundice
	cmd:pamunlookup
	cmd:pamvalidate
	cmd:pamwipeout
	cmd:pamx
	cmd:pbmclean
	cmd:pbmlife
	cmd:pbmmake
	cmd:pbmmask
	cmd:pbmminkowski
	cmd:pbmpage
	cmd:pbmpscale
	cmd:pbmreduce
	cmd:pbmtext
	cmd:pbmtextps
	cmd:pbmto10x
	cmd:pbmto4425
	cmd:pbmtoascii
	cmd:pbmtoatk
	cmd:pbmtobbnbg
	cmd:pbmtocis
	cmd:pbmtocmuwm
	cmd:pbmtodjvurle
	cmd:pbmtoepsi
	cmd:pbmtoepson
	cmd:pbmtoescp2
	cmd:pbmtog3
	cmd:pbmtogem
	cmd:pbmtogo
	cmd:pbmtoibm23xx
	cmd:pbmtoicon
	cmd:pbmtolj
	cmd:pbmtoln03
	cmd:pbmtolps
	cmd:pbmtomacp
	cmd:pbmtomatrixorbital
	cmd:pbmtomda
	cmd:pbmtomgr
	cmd:pbmtomrf
	cmd:pbmtonokia
	cmd:pbmtopgm
	cmd:pbmtopi3
	cmd:pbmtopk
	cmd:pbmtoplot
	cmd:pbmtoppa
	cmd:pbmtopsg3
	cmd:pbmtoptx
	cmd:pbmtosunicon
	cmd:pbmtowbmp
	cmd:pbmtox10bm
	cmd:pbmtoxbm
	cmd:pbmtoybm
	cmd:pbmtozinc
	cmd:pbmupc
	cmd:pc1toppm
	cmd:pcdovtoppm
	cmd:pcdindex
	cmd:pcxtoppm
	cmd:pdbimgtopam
	cmd:pfmtopam
	cmd:pgmabel
	cmd:pgmbentley
	cmd:pgmcrater
	cmd:pgmdeshadow
	cmd:pgmedge
	cmd:pgmenhance
	cmd:pgmhist
	cmd:pgmkernel
	cmd:pgmmake
	cmd:pgmmedian
	cmd:pgmminkowski
	cmd:pgmmorphconv
	cmd:pgmnoise
	cmd:pgmnorm
	cmd:pgmoil
	cmd:pgmramp
	cmd:pgmslice
	cmd:pgmtexture
	cmd:pgmtofs
	cmd:pgmtolispm
	cmd:pgmtopbm
	cmd:pgmtopgm
	cmd:pgmtoppm
	cmd:pgmtosbig
	cmd:pgmtost4
	cmd:pi1toppm
	cmd:pi3topbm
	cmd:picttoppm
	cmd:pjtoppm
	cmd:pktopbm
	cmd:pngtopam
	cmd:pngtopnm
	cmd:pnmalias
	cmd:pnmarith
	cmd:pnmcat
	cmd:pnmcolormap
	cmd:pnmcomp
	cmd:pnmconvol
	cmd:pnmcrop
	cmd:pnmcut
	cmd:pnmdepth
	cmd:pnmenlarge
	cmd:pnmfile
	cmd:pnmflip
	cmd:pnmgamma
	cmd:pnmhisteq
	cmd:pnmhistmap
	cmd:pnmindex
	cmd:pnminterp
	cmd:pnminvert
	cmd:pnmmargin
	cmd:pnmmercator
	cmd:pnmmontage
	cmd:pnmnlfilt
	cmd:pnmnoraw
	cmd:pnmnorm
	cmd:pnmpad
	cmd:pnmpaste
	cmd:pnmpsnr
	cmd:pnmquant
	cmd:pnmquantall
	cmd:pnmremap
	cmd:pnmrotate
	cmd:pnmscale
	cmd:pnmscalefixed
	cmd:pnmshear
	cmd:pnmsmooth
	cmd:pnmsplit
	cmd:pnmstitch
	cmd:pnmtile
	cmd:pnmtoddif
	cmd:pnmtofiasco
	cmd:pnmtofits
	cmd:pnmtojbig
	cmd:pnmtojpeg
	cmd:pnmtopalm
	cmd:pnmtopclxl
	cmd:pnmtoplainpnm
	cmd:pnmtopng
	cmd:pnmtopnm
	cmd:pnmtops
	cmd:pnmtorast
	cmd:pnmtorle
	cmd:pnmtosgi
	cmd:pnmtosir
	cmd:pnmtotiff
	cmd:pnmtotiffcmyk
	cmd:pnmtoxwd
	cmd:ppm3d
	cmd:ppmbrighten
	cmd:ppmchange
	cmd:ppmcie
	cmd:ppmcolormask
	cmd:ppmcolors
	cmd:ppmdcfont
	cmd:ppmddumpfont
	cmd:ppmdim
	cmd:ppmdist
	cmd:ppmdither
	cmd:ppmdmkfont
	cmd:ppmdraw
	cmd:ppmfade
	cmd:ppmflash
	cmd:ppmforge
	cmd:ppmglobe
	cmd:ppmhist
	cmd:ppmlabel
	cmd:ppmmake
	cmd:ppmmix
	cmd:ppmnorm
	cmd:ppmntsc
	cmd:ppmpat
	cmd:ppmquant
	cmd:ppmquantall
	cmd:ppmrainbow
	cmd:ppmrelief
	cmd:ppmrough
	cmd:ppmshadow
	cmd:ppmshift
	cmd:ppmspread
	cmd:ppmtoacad
	cmd:ppmtoapplevol
	cmd:ppmtoarbtxt
	cmd:ppmtoascii
	cmd:ppmtobmp
	cmd:ppmtoeyuv
	cmd:ppmtogif
	cmd:ppmtoicr
	cmd:ppmtoilbm
	cmd:ppmtojpeg
	cmd:ppmtoleaf
	cmd:ppmtolj
	cmd:ppmtomap
	cmd:ppmtomitsu
	cmd:ppmtompeg
	cmd:ppmtoneo
	cmd:ppmtopcx
	cmd:ppmtopgm
	cmd:ppmtopi1
	cmd:ppmtopict
	cmd:ppmtopj
	cmd:ppmtopjxl
	cmd:ppmtoppm
	cmd:ppmtopuzz
	cmd:ppmtorgb3
	cmd:ppmtosixel
	cmd:ppmtospu
	cmd:ppmtoterm
	cmd:ppmtotga
	cmd:ppmtouil
	cmd:ppmtowinicon
	cmd:ppmtoxpm
	cmd:ppmtoyuv
	cmd:ppmtoyuvsplit
	cmd:ppmtv
	cmd:ppmwheel
	cmd:psidtopgm
	cmd:pstopnm
	cmd:qrttoppm
	cmd:rasttopnm
	cmd:rawtopgm
	cmd:rawtoppm
	cmd:rgb3toppm
	cmd:rlatopam
	cmd:rletopnm
	cmd:sbigtopgm
	cmd:sgitopnm
	cmd:sirtopnm
	cmd:sldtoppm
	cmd:spctoppm
	cmd:spottopgm
	cmd:sputoppm
	cmd:srftopam
	cmd:st4topgm
	cmd:sunicontopnm
	cmd:svgtopam
	cmd:tgatoppm
	cmd:thinkjettopbm
	cmd:tifftopnm
	cmd:wbmptopbm
	cmd:winicontopam
	cmd:winicontoppm
	cmd:xbmtopbm
	cmd:ximtoppm
	cmd:xpmtoppm
	cmd:xvminitoppm
	cmd:xwdtopnm
	cmd:ybmtopbm
	cmd:yuvsplittoppm
	cmd:yuvtoppm
	cmd:yuy2topam
	cmd:zeisstopnm
	lib:libnetpbm$secondaryArchSuffix = 11.88 compat >= 11
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libjasper$secondaryArchSuffix
	lib:libjpeg$secondaryArchSuffix
	lib:libpng$secondaryArchSuffix
	lib:libtiff$secondaryArchSuffix
	lib:libxml2$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

PROVIDES_devel="
	netpbm${secondaryArchSuffix}_devel = $portVersion compat >= 10
	devel:libnetpbm$secondaryArchSuffix = 11.88 compat >= 11
	"
REQUIRES_devel="
	netpbm$secondaryArchSuffix == $portVersion base
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libjasper$secondaryArchSuffix
	devel:libjpeg$secondaryArchSuffix
	devel:libpng$secondaryArchSuffix
	devel:libtiff$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	devel:libxml2$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:flex
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:perl
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{
	rm -f config.mk
	cat config.mk.in - >> config.mk <<EOF
	DEFAULT_TARGET = nonmerge
	NETPBMLIBTYPE=unixshared
	NETPBMLIBSUFFIX=so
	STATICLIB_TOO=Y
	LINKERISCOMPILER = Y
	TIFFLIB = libtiff.so
	JPEGLIB = libjpeg.so
	ZLIB = libz.so
	NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
	SHLIB_CLIB =
	MATHLIB =
	NETWORKLD = -lnetwork
EOF
	make $jobArgs
}

INSTALL()
{
	make package pkgdir=$prefix/temp
	mkdir -p $(dirname $manDir) $dataDir $developDir/headers
	mv $prefix/temp/bin $binDir
	mv $prefix/temp/lib $libDir
	mv $prefix/temp/include/* $developDir/headers/
	rm $prefix/temp/{README,VERSION,config_template,pkgconfig_template,pkginfo}
	mv $prefix/temp/misc $dataDir/netpbm
	rm -r $prefix/temp
	ln -s libnetpbm.so.11 $libDir/libnetpbm.so

	prepareInstalledDevelLibs libnetpbm
	fixPkgconfig

	# devel package
	packageEntries devel \
		$developDir
}
