aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-19 20:21:21 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-19 20:21:21 +0000
commit83b73d56143df311f12de660accb9cb036824fac (patch)
tree6f334e77ecc314dde8fbbda997a054639b07a62a /graphics
parent07a8570172bae23cd7433903b0ff0ff837bb2f92 (diff)
downloadports-83b73d56143df311f12de660accb9cb036824fac.tar.gz
ports-83b73d56143df311f12de660accb9cb036824fac.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/netpbm/Makefile17
-rw-r--r--graphics/netpbm/distinfo2
-rw-r--r--graphics/netpbm/files/Makefile.config.FreeBSD31
-rw-r--r--graphics/netpbm/files/manpages244
-rw-r--r--graphics/netpbm/files/patch-GNUmakefile11
-rw-r--r--graphics/netpbm/files/patch-Makefile.common16
-rw-r--r--graphics/netpbm/files/patch-ba25
-rw-r--r--graphics/netpbm/files/patch-bb113
-rw-r--r--graphics/netpbm/files/patch-bd19
-rw-r--r--graphics/netpbm/files/patch-be19
-rw-r--r--graphics/netpbm/files/patch-bf38
-rw-r--r--graphics/netpbm/files/patch-bg27
-rw-r--r--graphics/netpbm/files/patch-bi13
-rw-r--r--graphics/netpbm/files/patch-co11
-rw-r--r--graphics/netpbm/files/patch-converter::other::pnmtopalm::Makefile22
-rw-r--r--graphics/netpbm/files/patch-converter::other::pnmtopng.c (renamed from graphics/netpbm/files/patch-cp)6
-rw-r--r--graphics/netpbm/files/patch-converter::other::pnmtotiffcmyk.c (renamed from graphics/netpbm/files/patch-ay)4
-rw-r--r--graphics/netpbm/files/patch-converter::ppm::ppmtompeg::Makefile23
-rw-r--r--graphics/netpbm/files/patch-lib::Makefile103
-rw-r--r--graphics/netpbm/files/patch-other::pnmarith.c (renamed from graphics/netpbm/files/patch-ap)4
-rw-r--r--graphics/netpbm/files/patch-pm_config.h (renamed from graphics/netpbm/files/patch-aj)14
-rw-r--r--graphics/netpbm/pkg-plist41
22 files changed, 229 insertions, 574 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 6b80b7f6c214..9b1caf237c9f 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= netpbm
-PORTVERSION= 9.25
-PORTREVISION= 1
+PORTVERSION= 10.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -23,16 +22,14 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
USE_GMAKE= yes
MAKE_ENV= LN="${LN}" RANLIB="${RANLIB}"
MAKEFILE= GNUmakefile
+INSTALL_TARGET= install.bin install.lib install-dev
INSTALLS_SHLIB= yes
-.include <bsd.port.pre.mk>
-
-.include "${FILESDIR}/manpages"
-
post-patch:
- @${PERL} -pi -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.h
- @${PERL} -pi -e 's|<shhopt.h>|<pm_shhopt.h>|g' ${WRKSRC}/pbm/pm.h
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.h
+ @${REINPLACE_CMD} -e 's|<shhopt.h>|<pm_shhopt.h>|g' ${WRKSRC}/lib/pm.h
@${CP} ${FILESDIR}/Makefile.config.FreeBSD ${WRKSRC}/Makefile.config
- @${LN} -sf ${WRKSRC}/shhopt/shhopt.h ${WRKSRC}/shhopt/pm_shhopt.h
+ @${LN} -sf ${WRKSRC}/lib/util/shhopt.h ${WRKSRC}/lib/util/pm_shhopt.h
+ @${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo
index 48b4ba5a07c1..675993d48cea 100644
--- a/graphics/netpbm/distinfo
+++ b/graphics/netpbm/distinfo
@@ -1 +1 @@
-MD5 (netpbm-9.25.tgz) = cb8036f3649c93cf51ee377971ddbf1c
+MD5 (netpbm-10.2.tgz) = 871cf2c42f101fcd57c51ad415160819
diff --git a/graphics/netpbm/files/Makefile.config.FreeBSD b/graphics/netpbm/files/Makefile.config.FreeBSD
index edeafbaf61c0..759401836e28 100644
--- a/graphics/netpbm/files/Makefile.config.FreeBSD
+++ b/graphics/netpbm/files/Makefile.config.FreeBSD
@@ -1,40 +1,26 @@
-DEFAULT_TARGET = merge
+DEFAULT_TARGET = nomerge
BUILD_FIASCO = Y
LD = ${CC}
CC_FOR_BUILD = ${CC}
LD_FOR_BUILD = ${CC}
SYMLINK = ${LN} -sf
-MANCP = ${BSD_INSTALL_MAN}
LDFLAGS = -Wl,--rpath,$(INSTALLLIBS)
LDSHLIB = -shared -Wl,-soname,$(SONAME)
CFLAGS_SHLIB = -fpic -DPIC
-TIFFLIB_DIR = ${LOCALBASE}/lib
+TIFFLIB = ${LOCALBASE}/lib/libtiff.so
TIFFHDR_DIR = ${LOCALBASE}/include
-JPEGLIB_DIR = ${LOCALBASE}/lib
+JPEGLIB = ${LOCALBASE}/lib/libjpeg.so
JPEGHDR_DIR = ${LOCALBASE}/include
-PNGLIB_DIR = ${LOCALBASE}/lib
+PNGLIB = ${LOCALBASE}/lib/libpng.so
PNGHDR_DIR = ${LOCALBASE}/include
-ZLIB_DIR = /usr/lib
+ZLIB = /usr/lib/libz.so
ZHDR_DIR = /usr/include
-JBIGLIB_DIR = ${LOCALBASE}/lib
+JBIGLIB = ${LOCALBASE}/lib/libjbig.so
JBIGHDR_DIR = ${LOCALBASE}/include
-URTLIB_DIR = $(SRCDIR)/urt
+URTLIB = $(BUILDDIR)/urt/librle.a
URTHDR_DIR = $(SRCDIR)/urt
-LINUXSVGALIB_DIR = NONE
+LINUXSVGALIB = NONE
LINUXSVGAHDR_DIR = NONE
-INSTALL_PREFIX = ${PREFIX}
-INSTALLBINARIES = $(INSTALL_PREFIX)/bin
-INSTALLSCRIPTS = $(INSTALLBINARIES)
-INSTALLLIBS = $(INSTALL_PREFIX)/lib
-INSTALLSTATICLIBS = $(INSTALLLIBS)
-INSTALLMANUALS1 = $(INSTALL_PREFIX)/man/man1
-SUFFIXMANUALS1 = 1
-INSTALLMANUALS3 = $(INSTALL_PREFIX)/man/man3
-SUFFIXMANUALS3 = 3
-INSTALLMANUALS5 = $(INSTALL_PREFIX)/man/man5
-SUFFIXMANUALS5 = 5
-INSTALLHDRS = $(INSTALL_PREFIX)/include
-INSTALLDATA = $(INSTALL_PREFIX)/share/netpbm
NETPBMLIBTYPE = unixshared
NETPBMLIBSUFFIX = so
STATICLIB_TOO = y
@@ -42,3 +28,4 @@ STATICLIBSUFFIX = a
SHLIBPREFIXLIST = lib
NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST))
SOVER = 1
+pkgdir = ${PREFIX}
diff --git a/graphics/netpbm/files/manpages b/graphics/netpbm/files/manpages
deleted file mode 100644
index 4eb44fcac386..000000000000
--- a/graphics/netpbm/files/manpages
+++ /dev/null
@@ -1,244 +0,0 @@
-MAN1+= 411toppm.1
-MAN1+= anytopnm.1
-MAN1+= asciitopgm.1
-MAN1+= atktopbm.1
-MAN1+= bioradtopgm.1
-MAN1+= bmptopnm.1
-MAN1+= brushtopbm.1
-MAN1+= cmuwmtopbm.1
-MAN1+= eyuvtoppm.1
-MAN1+= fiascotopnm.1
-MAN1+= fitstopnm.1
-MAN1+= fstopgm.1
-MAN1+= g3topbm.1
-MAN1+= gemtopnm.1
-MAN1+= giftopnm.1
-MAN1+= gouldtoppm.1
-MAN1+= hipstopgm.1
-MAN1+= hpcdtoppm.1
-MAN1+= icontopbm.1
-MAN1+= ilbmtoppm.1
-MAN1+= imgtoppm.1
-MAN1+= jbigtopnm.1
-MAN1+= jpegtopnm.1
-MAN1+= leaftoppm.1
-MAN1+= lispmtopgm.1
-MAN1+= macptopbm.1
-MAN1+= mdatopbm.1
-MAN1+= mgrtopbm.1
-MAN1+= mtvtoppm.1
-MAN1+= neotoppm.1
-MAN1+= netpbm.1
-MAN1+= palmtopnm.1
-MAN1+= pamchannel.1
-MAN1+= pamcut.1
-MAN1+= pamdeinterlace.1
-MAN1+= pamdice.1
-MAN1+= pamfile.1
-MAN1+= pamoil.1
-MAN1+= pamstretch-gen.1
-MAN1+= pamstretch.1
-MAN1+= pamtopnm.1
-MAN1+= pbmclean.1
-MAN1+= pbmlife.1
-MAN1+= pbmmake.1
-MAN1+= pbmmask.1
-MAN1+= pbmpage.1
-MAN1+= pbmpscale.1
-MAN1+= pbmreduce.1
-MAN1+= pbmtext.1
-MAN1+= pbmto10x.1
-MAN1+= pbmto4425.1
-MAN1+= pbmtoascii.1
-MAN1+= pbmtoatk.1
-MAN1+= pbmtobbnbg.1
-MAN1+= pbmtocmuwm.1
-MAN1+= pbmtoepsi.1
-MAN1+= pbmtoepson.1
-MAN1+= pbmtog3.1
-MAN1+= pbmtogem.1
-MAN1+= pbmtogo.1
-MAN1+= pbmtoicon.1
-MAN1+= pbmtolj.1
-MAN1+= pbmtoln03.1
-MAN1+= pbmtolps.1
-MAN1+= pbmtomacp.1
-MAN1+= pbmtomda.1
-MAN1+= pbmtomgr.1
-MAN1+= pbmtonokia.1
-MAN1+= pbmtopgm.1
-MAN1+= pbmtopi3.1
-MAN1+= pbmtopk.1
-MAN1+= pbmtoplot.1
-MAN1+= pbmtoppa.1
-MAN1+= pbmtopsg3.1
-MAN1+= pbmtoptx.1
-MAN1+= pbmtowbmp.1
-MAN1+= pbmtox10bm.1
-MAN1+= pbmtoxbm.1
-MAN1+= pbmtoybm.1
-MAN1+= pbmtozinc.1
-MAN1+= pbmupc.1
-MAN1+= pcdindex.1
-MAN1+= pcxtoppm.1
-MAN1+= pgmbentley.1
-MAN1+= pgmcrater.1
-MAN1+= pgmedge.1
-MAN1+= pgmenhance.1
-MAN1+= pgmhist.1
-MAN1+= pgmkernel.1
-MAN1+= pgmnoise.1
-MAN1+= pgmramp.1
-MAN1+= pgmslice.1
-MAN1+= pgmtexture.1
-MAN1+= pgmtofs.1
-MAN1+= pgmtolispm.1
-MAN1+= pgmtopbm.1
-MAN1+= pgmtoppm.1
-MAN1+= pi1toppm.1
-MAN1+= pi3topbm.1
-MAN1+= picttoppm.1
-MAN1+= pjtoppm.1
-MAN1+= pktopbm.1
-MAN1+= pngtopnm.1
-MAN1+= pnmalias.1
-MAN1+= pnmarith.1
-MAN1+= pnmcat.1
-MAN1+= pnmcolormap.1
-MAN1+= pnmcomp.1
-MAN1+= pnmconvol.1
-MAN1+= pnmcrop.1
-MAN1+= pnmcut.1
-MAN1+= pnmdepth.1
-MAN1+= pnmenlarge.1
-MAN1+= pnmfile.1
-MAN1+= pnmflip.1
-MAN1+= pnmgamma.1
-MAN1+= pnmhisteq.1
-MAN1+= pnmhistmap.1
-MAN1+= pnmindex.1
-MAN1+= pnminvert.1
-MAN1+= pnmmargin.1
-MAN1+= pnmmontage.1
-MAN1+= pnmnlfilt.1
-MAN1+= pnmnorm.1
-MAN1+= pnmpad.1
-MAN1+= pnmpaste.1
-MAN1+= pnmpsnr.1
-MAN1+= pnmquant.1
-MAN1+= pnmremap.1
-MAN1+= pnmrotate.1
-MAN1+= pnmscale.1
-MAN1+= pnmscalefixed.1
-MAN1+= pnmshear.1
-MAN1+= pnmsmooth.1
-MAN1+= pnmsplit.1
-MAN1+= pnmtile.1
-MAN1+= pnmtoddif.1
-MAN1+= pnmtofiasco.1
-MAN1+= pnmtofits.1
-MAN1+= pnmtojbig.1
-MAN1+= pnmtojpeg.1
-MAN1+= pnmtopalm.1
-MAN1+= pnmtoplainpnm.1
-MAN1+= pnmtopng.1
-MAN1+= pnmtops.1
-MAN1+= pnmtorast.1
-MAN1+= pnmtorle.1
-MAN1+= pnmtosgi.1
-MAN1+= pnmtosir.1
-MAN1+= pnmtotiff.1
-MAN1+= pnmtotiffcmyk.1
-MAN1+= pnmtoxwd.1
-MAN1+= ppm3d.1
-MAN1+= ppmbrighten.1
-MAN1+= ppmchange.1
-MAN1+= ppmcie.1
-MAN1+= ppmcolormask.1
-MAN1+= ppmcolors.1
-MAN1+= ppmdim.1
-MAN1+= ppmdist.1
-MAN1+= ppmdither.1
-MAN1+= ppmfade.1
-MAN1+= ppmflash.1
-MAN1+= ppmforge.1
-MAN1+= ppmhist.1
-MAN1+= ppmlabel.1
-MAN1+= ppmmake.1
-MAN1+= ppmmix.1
-MAN1+= ppmntsc.1
-MAN1+= ppmpat.1
-MAN1+= ppmquant.1
-MAN1+= ppmquantall.1
-MAN1+= ppmqvga.1
-MAN1+= ppmrainbow.1
-MAN1+= ppmrelief.1
-MAN1+= ppmshadow.1
-MAN1+= ppmshift.1
-MAN1+= ppmspread.1
-MAN1+= ppmtoacad.1
-MAN1+= ppmtobmp.1
-MAN1+= ppmtoeyuv.1
-MAN1+= ppmtogif.1
-MAN1+= ppmtoicr.1
-MAN1+= ppmtoilbm.1
-MAN1+= ppmtoleaf.1
-MAN1+= ppmtolj.1
-MAN1+= ppmtomap.1
-MAN1+= ppmtomitsu.1
-MAN1+= ppmtompeg.1
-MAN1+= ppmtoneo.1
-MAN1+= ppmtopcx.1
-MAN1+= ppmtopgm.1
-MAN1+= ppmtopi1.1
-MAN1+= ppmtopict.1
-MAN1+= ppmtopj.1
-MAN1+= ppmtopjxl.1
-MAN1+= ppmtopuzz.1
-MAN1+= ppmtorgb3.1
-MAN1+= ppmtosixel.1
-MAN1+= ppmtotga.1
-MAN1+= ppmtouil.1
-MAN1+= ppmtowinicon.1
-MAN1+= ppmtoxpm.1
-MAN1+= ppmtoyuv.1
-MAN1+= ppmtoyuvsplit.1
-MAN1+= ppmtv.1
-MAN1+= psidtopgm.1
-MAN1+= pstopnm.1
-MAN1+= qrttoppm.1
-MAN1+= rasttopnm.1
-MAN1+= rawtopgm.1
-MAN1+= rawtoppm.1
-MAN1+= rgb3toppm.1
-MAN1+= rletopnm.1
-MAN1+= sbigtopgm.1
-MAN1+= sgitopnm.1
-MAN1+= sirtopnm.1
-MAN1+= sldtoppm.1
-MAN1+= spctoppm.1
-MAN1+= spottopgm.1
-MAN1+= sputoppm.1
-MAN1+= tgatoppm.1
-MAN1+= thinkjettopbm.1
-MAN1+= tifftopnm.1
-MAN1+= wbmptopbm.1
-MAN1+= winicontoppm.1
-MAN1+= xbmtopbm.1
-MAN1+= ximtoppm.1
-MAN1+= xpmtoppm.1
-MAN1+= xvminitoppm.1
-MAN1+= xwdtopnm.1
-MAN1+= ybmtopbm.1
-MAN1+= yuvsplittoppm.1
-MAN1+= yuvtoppm.1
-MAN1+= zeisstopnm.1
-MAN3+= libpbm.3
-MAN3+= libpgm.3
-MAN3+= libpnm.3
-MAN3+= libppm.3
-MAN5+= pam.5
-MAN5+= pbm.5
-MAN5+= pgm.5
-MAN5+= pnm.5
-MAN5+= ppm.5
diff --git a/graphics/netpbm/files/patch-GNUmakefile b/graphics/netpbm/files/patch-GNUmakefile
new file mode 100644
index 000000000000..cee197cb978b
--- /dev/null
+++ b/graphics/netpbm/files/patch-GNUmakefile
@@ -0,0 +1,11 @@
+--- GNUmakefile.orig Fri Jun 14 11:57:11 2002
++++ GNUmakefile Tue Jun 18 00:00:00 2002
+@@ -236,7 +236,7 @@
+ install.hdr: $(PKGDIR)/include
+ $(MAKE) -C lib -f $(SRCDIR)/lib/Makefile \
+ SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR) install.hdr
+- $(INSTALL) -c -m $(INSTALL_PERM_HDR) \
++ ${BSD_INSTALL_DATA} \
+ $(SRCDIR)/pm_config.h $(PKGDIR)/include
+
+ ifeq ($(STATICLIB_TOO),y)
diff --git a/graphics/netpbm/files/patch-Makefile.common b/graphics/netpbm/files/patch-Makefile.common
new file mode 100644
index 000000000000..db5e1a78f0e9
--- /dev/null
+++ b/graphics/netpbm/files/patch-Makefile.common
@@ -0,0 +1,16 @@
+--- Makefile.common.orig Fri Jun 14 11:55:58 2002
++++ Makefile.common Tue Jun 18 00:00:00 2002
+@@ -209,11 +209,11 @@
+ INSTALLBIN_TARGETS = $(BINARIES:%=%_installbin) netpbm_installbin
+ .PHONY: $(INSTALLBIN_TARGETS)
+ $(INSTALLBIN_TARGETS): $(PKGDIR)/bin
+- $(INSTALL) -c $(STRIPFLAG) -m $(INSTALL_PERM_BIN) \
++ ${BSD_INSTALL_PROGRAM} \
+ $(@:%_installbin=%) $<
+
+ $(SCRIPTS:%=%_installscript): $(PKGDIR)/bin
+- $(INSTALL) -c -m $(INSTALL_PERM_BIN) \
++ ${BSD_INSTALL_SCRIPT} \
+ $(SRCDIR)/$(SUBDIR)/$(@:%_installscript=%) $<
+
+ .PHONY: install.man install.man1 install.man3 install.man5
diff --git a/graphics/netpbm/files/patch-ba b/graphics/netpbm/files/patch-ba
deleted file mode 100644
index eb574857d76b..000000000000
--- a/graphics/netpbm/files/patch-ba
+++ /dev/null
@@ -1,25 +0,0 @@
---- GNUmakefile.orig Sat Sep 22 01:26:48 2001
-+++ GNUmakefile Wed Oct 10 00:00:00 2001
-@@ -69,7 +69,7 @@
-
- default: $(DEFAULT_TARGET)
-
--all: nonmerge
-+all: default
-
- .PHONY: nonmerge
- nonmerge: $(SUBDIRS)
-@@ -160,10 +160,10 @@
- install.hdr: $(INSTALLHDRS) $(SRCDIR)/pm_config.h
- # See notes in Makefile.common about how $(INSTALL) varies from one
- # platform to another.
-- $(INSTALL) -c -m $(INSTALL_PERM_HDR) \
-+ ${BSD_INSTALL_DATA} \
- $(SRCDIR)/pm_config.h $(INSTALLHDRS)
-- $(INSTALL) -c -m $(INSTALL_PERM_HDR) \
-- $(SRCDIR)/shhopt/shhopt.h $(INSTALLHDRS)
-+ ${BSD_INSTALL_DATA} \
-+ $(SRCDIR)/shhopt/pm_shhopt.h $(INSTALLHDRS)
- for i in $(SUBDIRS) ; do \
- $(MAKE) -C $$i -f $(SRCDIR)/$$i/Makefile install.hdr ; \
- done
diff --git a/graphics/netpbm/files/patch-bb b/graphics/netpbm/files/patch-bb
deleted file mode 100644
index cddce359657e..000000000000
--- a/graphics/netpbm/files/patch-bb
+++ /dev/null
@@ -1,113 +0,0 @@
---- Makefile.common.orig Sat Jan 5 09:10:54 2002
-+++ Makefile.common Sun Jan 6 00:00:00 2002
-@@ -175,9 +175,12 @@
-
- $(LIBOBJECTS): %.o: $(SRCSUBDIR)/%.c $(HEADERLINKS)
- # Note that the user may have configured -I options into CFLAGS.
-+ $(CC) -c $(INCLUDE) $(CFLAGS) $(CDEBUG) -o $@ $<
-+
-+$(SHLIBOBJECTS): %.lo: $(SRCSUBDIR)/%.c $(HEADERLINKS)
- $(CC) -c $(INCLUDE) $(CFLAGS) $(CFLAGS_SHLIB) $(CDEBUG) -o $@ $<
-
--SONAME = lib$(LIBROOT).so.$(MAJ)
-+SONAME = lib$(LIBROOT).so.$(SOVER)
-
- ifeq ($(NETPBMLIBTYPE),unixshared)
- # The libxxx.so link is needed to link the executables.
-@@ -187,13 +190,10 @@
- # The $(SONAME) link is only needed to test the programs without
- # installing the libraries (in that case, you also need to direct the
- # dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH).
--$(SONAME): lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ).$(MIN)
-- rm -f $@
-- $(SYMLINK) $< $@
--lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ).$(MIN): \
-- $(LIBOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) $(LIBOPT)
-- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \
-- `$(LIBOPT) $(LIBLIBS)` -lc $(CDEBUG)
-+$(SONAME): \
-+ $(SHLIBOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) $(LIBOPT)
-+ $(LD) $(LDSHLIB) -o $@ $(SHLIBOBJECTS) $(LIBOBJECTS_X) \
-+ `$(LIBOPT) $(LIBLIBS)` $(LDFLAGS) $(CDEBUG)
- endif
-
- ifeq ($(NETPBMLIBTYPE),dll)
-@@ -282,7 +282,7 @@
- install.merge.common: $(MERGENAME) $(NOMERGEBINARIES) install.script
- cd $(INSTALLBINARIES) ; rm -f $(BINARIES) $(MERGE_ALIASES)
- ifneq ($(MERGENAME)x,x)
-- $(INSTALL) -c $(STRIPFLAG) -m $(INSTALL_PERM_BIN) \
-+ ${BSD_INSTALL_PROGRAM} \
- $(MERGENAME) $(INSTALLBINARIES)
- cd $(INSTALLBINARIES) ; \
- for i in $(MERGEBINARIES) $(MERGE_ALIASES) ; \
-@@ -292,7 +292,7 @@
- ifneq ($(NOMERGEBINARIES)x,x)
- for x in $(NOMERGEBINARIES); \
- do \
-- $(INSTALL) -c $(STRIPFLAG) -m $(INSTALL_PERM_BIN) \
-+ ${BSD_INSTALL_PROGRAM} \
- $$x $(INSTALLBINARIES); \
- done
- endif
-@@ -303,7 +303,7 @@
- # Make and Install know that pbmmake.exe counts as pbmmake.
- for x in $(BINARIES); \
- do \
-- $(INSTALL) -c $(STRIPFLAG) -m $(INSTALL_PERM_BIN) \
-+ ${BSD_INSTALL_PROGRAM} \
- $$x $(INSTALLBINARIES); \
- done
-
-@@ -312,7 +312,7 @@
- ifneq ($(SCRIPTS)x,x)
- for x in $(SCRIPTS); \
- do \
-- $(INSTALL) -c -m $(INSTALL_PERM_BIN) $(SRCSUBDIR)/$$x \
-+ ${BSD_INSTALL_SCRIPT} $(SRCSUBDIR)/$$x \
- $(INSTALLSCRIPTS); \
- done
- endif
-@@ -349,7 +349,7 @@
- # directory when you compile your programs.
- for x in $(INTERFACE_HEADERS); \
- do \
-- $(INSTALL) -c -m $(INSTALL_PERM_HDR) $(SRCSUBDIR)/$$x \
-+ ${BSD_INSTALL_DATA} $(SRCSUBDIR)/$$x \
- $(INSTALLHDRS); \
- done
-
-@@ -357,7 +357,7 @@
- #
- .PHONY: install.staticlib
- install.staticlib: lib$(LIBROOT).$(STATICLIBSUFFIX)
-- $(INSTALL) -c -m $(INSTALL_PERM_LIBS) $< $(INSTALLSTATICLIBS)/$<
-+ ${BSD_INSTALL_DATA} $< $(INSTALLSTATICLIBS)/$<
-
- # Install a shared library stub -- the ".so" file used at link time to
- # prepare a program for dynamically linking a library at run time
-@@ -367,7 +367,7 @@
- install.sharedlibstub:
- cd $(INSTALLSTATICLIBS) ; \
- rm -f lib$(LIBROOT).$(NETPBMLIBSUFFIX); \
-- $(SYMLINK) $(INSTALLLIBS)/lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ) \
-+ $(SYMLINK) $(SONAME) \
- lib$(LIBROOT).$(NETPBMLIBSUFFIX)
- else
- # I have no idea what link-time stuff is required for other library types.
-@@ -381,12 +381,9 @@
- .PHONY: install.lib.common
- ifeq ($(NETPBMLIBTYPE),unixshared)
- # install a Unix-style shared library
--install.lib.common: lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ).$(MIN)
-- cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ).*
-- $(INSTALL) -c -m $(INSTALL_PERM_LIBD) $< $(INSTALLLIBS)
-- cd $(INSTALLLIBS) ; \
-- rm -f lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ); \
-- $(SYMLINK) $< lib$(LIBROOT).$(NETPBMLIBSUFFIX).$(MAJ)
-+install.lib.common: $(SONAME)
-+ cd $(INSTALLLIBS) ; rm -f $(SONAME)
-+ ${BSD_INSTALL_DATA} $< $(INSTALLLIBS)
- endif
- ifeq ($(NETPBMLIBTYPE),dll)
- #install a Windows DLL shared library
diff --git a/graphics/netpbm/files/patch-bd b/graphics/netpbm/files/patch-bd
deleted file mode 100644
index a1cbd1c8734d..000000000000
--- a/graphics/netpbm/files/patch-bd
+++ /dev/null
@@ -1,19 +0,0 @@
---- pbm/Makefile.orig Mon Feb 18 04:18:04 2002
-+++ pbm/Makefile Sat Mar 16 00:00:00 2002
-@@ -52,6 +52,7 @@
-
- # Library objects to be built and linked by Makefile.common:
- LIBOBJECTS = libpm.o libpbm1.o libpbm2.o libpbm3.o libpbm4.o libpbm5.o bitio.o
-+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
- ifneq (${VMS}x,x)
- LIBOBJECTS += libpbmvms.o
- endif
-@@ -71,7 +72,7 @@
- $(MAKE) -C pbmtoppa all
-
- .PHONY: merge
--merge: $(MERGENAME)
-+merge: $(MERGENAME) $(EXTRA_STATICLIB)
- $(MAKE) -C pbmtoppa all
-
- .PHONY: install.bin
diff --git a/graphics/netpbm/files/patch-be b/graphics/netpbm/files/patch-be
deleted file mode 100644
index df4acd5e9823..000000000000
--- a/graphics/netpbm/files/patch-be
+++ /dev/null
@@ -1,19 +0,0 @@
---- pgm/Makefile.orig Sun Sep 9 04:31:29 2001
-+++ pgm/Makefile Mon Jan 28 00:00:00 2002
-@@ -33,6 +33,7 @@
- MERGE_OBJECTS = $(patsubst %,%.o2, $(MERGEBINARIES))
-
- LIBOBJECTS = libpgm1.o libpgm2.o
-+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
-
- MANUALS1 = $(BINARIES)
- MANUALS3 = libpgm
-@@ -45,7 +46,7 @@
- .PHONY: all
- all: $(PGMLIB) $(BINARIES) $(EXTRA_STATICLIB)
- .PHONY: merge
--merge: $(MERGENAME)
-+merge: $(MERGENAME) $(EXTRA_STATICLIB)
-
- # LIBRARIES
-
diff --git a/graphics/netpbm/files/patch-bf b/graphics/netpbm/files/patch-bf
deleted file mode 100644
index 4c2060d029d5..000000000000
--- a/graphics/netpbm/files/patch-bf
+++ /dev/null
@@ -1,38 +0,0 @@
---- pnm/Makefile.orig Sat Jan 5 06:33:42 2002
-+++ pnm/Makefile Sun Jan 6 00:00:00 2002
-@@ -146,13 +146,14 @@
- # MERGE_ALIASES is additional names to be linked to the merge binary which are
- # alternate names for a program whose source is called something else.
- # Every name here must be referenced in pnmmerge.c.
--MERGE_ALIASES = pnmnoraw gemtopbm
-+MERGE_ALIASES =
-
- OBJECTS = $(patsubst %, %.o, $(BINARIES)) exif.o
-
- MERGE_OBJECTS = $(patsubst %,%.o2, $(MERGEBINARIES))
-
- LIBOBJECTS = libpnm1.o libpnm2.o libpnm3.o libpnm4.o libpam.o libpammap.o
-+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
-
- MANUALS1 = $(BINARIES) $(SCRIPTS)
- MANUALS3 = libpnm
-@@ -170,7 +171,7 @@
- $(MAKE) -C jbig all
- $(MAKE) -C pnmtopalm all
- PHONY: merge
--merge: $(MERGENAME) $(NOMERGEBINARIES)
-+merge: $(MERGENAME) $(NOMERGEBINARIES) $(EXTRA_STATICLIB)
- ifneq ($(BUILD_FIASCO), N)
- $(MAKE) -C fiasco all
- endif
-@@ -260,10 +261,6 @@
-
- .PHONY: install.man
- install.man: install.man.common
--# The following are for programs that have been renamed
-- rm -f $(INSTALLMANUALS1)/pnmnoraw.*
-- rm -f $(INSTALLMANUALS1)/gemtopnm.*
-- rm -f $(INSTALLMANUALS1)/pnminterp.*
- ifneq ($(BUILD_FIASCO), N)
- $(MAKE) -C fiasco install.man
- endif
diff --git a/graphics/netpbm/files/patch-bg b/graphics/netpbm/files/patch-bg
deleted file mode 100644
index 1485ac72cb31..000000000000
--- a/graphics/netpbm/files/patch-bg
+++ /dev/null
@@ -1,27 +0,0 @@
---- ppm/Makefile.orig Wed Mar 13 11:09:21 2002
-+++ ppm/Makefile Sat Mar 16 00:00:00 2002
-@@ -74,6 +74,7 @@
-
- LIBOBJECTS = libppm1.o libppm2.o libppmcmap.o libppm4.o libppm5.o \
- libppmfloyd.o
-+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
-
- MANUALS1 = $(BINARIES) $(SCRIPTS)
- MANUALS3 = libppm
-@@ -81,14 +82,14 @@
-
- MERGENAME= ppmmerge
-
--INTERFACE_HEADERS = ppm.h ppmcmap.h ppmfloyd.h
-+INTERFACE_HEADERS = ppm.h ppmcmap.h ppmdraw.h ppmfloyd.h
-
- .PHONY: all
- all: $(LIBPPM) $(BINARIES) $(EXTRA_STATICLIB)
- $(MAKE) -C ppmtompeg all
- $(MAKE) -C hpcdtoppm all
- .PHONY: merge
--merge: $(MERGENAME) $(NOMERGEBINARIES)
-+merge: $(MERGENAME) $(NOMERGEBINARIES) $(EXTRA_STATICLIB)
- $(MAKE) -C ppmtompeg all
- $(MAKE) -C hpcdtoppm all
-
diff --git a/graphics/netpbm/files/patch-bi b/graphics/netpbm/files/patch-bi
deleted file mode 100644
index 05e8881950bd..000000000000
--- a/graphics/netpbm/files/patch-bi
+++ /dev/null
@@ -1,13 +0,0 @@
---- pbm/pbmtog3.1.orig Mon Oct 4 18:10:48 1993
-+++ pbm/pbmtog3.1 Sat Apr 8 12:00:00 2000
-@@ -6,8 +6,8 @@
- .B pbmtog3
- .RI [ pbmfile ]
- .SH DESCRIPTION
--Reads a portable bitmap as output.
--Produces a Group 3 fax file as input.
-+Reads a portable bitmap as input.
-+Produces a Group 3 fax file as output.
- .IX "Group 3 fax"
- .IX fax
- .SH REFERENCES
diff --git a/graphics/netpbm/files/patch-co b/graphics/netpbm/files/patch-co
deleted file mode 100644
index ffc1ed0dadc7..000000000000
--- a/graphics/netpbm/files/patch-co
+++ /dev/null
@@ -1,11 +0,0 @@
---- pnm/pnmtopalm/Makefile.orig Thu Jan 11 11:59:53 2001
-+++ pnm/pnmtopalm/Makefile Sat Jan 13 00:00:00 2001
-@@ -48,7 +48,7 @@
- $(SRCDIR)/mkinstalldirs $(INSTALLDATA)
- for x in palmcolor8.map palmgray1.map palmgray2.map palmgray4.map ;\
- do \
-- $(INSTALL) -c -m $(INSTALL_PERM_DATA) $(SRCSUBDIR)/$$x \
-+ ${BSD_INSTALL_DATA} $(SRCSUBDIR)/$$x \
- $(INSTALLDATA); \
- done
-
diff --git a/graphics/netpbm/files/patch-converter::other::pnmtopalm::Makefile b/graphics/netpbm/files/patch-converter::other::pnmtopalm::Makefile
new file mode 100644
index 000000000000..baa163893a9f
--- /dev/null
+++ b/graphics/netpbm/files/patch-converter::other::pnmtopalm::Makefile
@@ -0,0 +1,22 @@
+--- converter/other/pnmtopalm/Makefile.orig Mon Jun 10 13:40:28 2002
++++ converter/other/pnmtopalm/Makefile Tue Jun 18 00:00:00 2002
+@@ -35,15 +35,15 @@
+
+ install.bin: install.bin.local
+ .PHONY: install.bin.local
+-install.bin.local: $(PKGDIR)/misc $(DATAFILE:%=%_installdata)
++install.bin.local: $(PKGDIR)/share/netpbm $(DATAFILE:%=%_installdata)
+
+ install.merge: install.merge.local
+ .PHONY: install.merge.local
+-install.merge.local: $(PKGDIR)/misc $(DATAFILE:%=%_installdata)
++install.merge.local: $(PKGDIR)/share/netpbm $(DATAFILE:%=%_installdata)
+
+ %_installdata:
+- $(INSTALL) -c -m $(INSTALL_PERM_DATA) \
+- $(SRCDIR)/$(SUBDIR)/$(@:%_installdata=%) $(PKGDIR)/misc;
++ ${BSD_INSTALL_DATA} \
++ $(SRCDIR)/$(SUBDIR)/$(@:%_installdata=%) $(PKGDIR)/share/netpbm;
+
+
+ clean: cleanspecial
diff --git a/graphics/netpbm/files/patch-cp b/graphics/netpbm/files/patch-converter::other::pnmtopng.c
index 922c20162486..33a21e9fda10 100644
--- a/graphics/netpbm/files/patch-cp
+++ b/graphics/netpbm/files/patch-converter::other::pnmtopng.c
@@ -1,6 +1,6 @@
---- pnm/pnmtopng.c.orig Sun Jul 22 12:32:22 2001
-+++ pnm/pnmtopng.c Sat Dec 8 00:00:00 2001
-@@ -1441,8 +1441,13 @@
+--- converter/other/pnmtopng.c.orig Thu Apr 25 09:37:11 2002
++++ converter/other/pnmtopng.c Tue Jun 18 00:00:00 2002
+@@ -1857,8 +1857,13 @@
fprintf(stderr,"pnmtopng version %s.\n", VERSION);
fprintf(stderr, " Compiled with libpng %s; using libpng %s.\n",
PNG_LIBPNG_VER_STRING, png_libpng_ver);
diff --git a/graphics/netpbm/files/patch-ay b/graphics/netpbm/files/patch-converter::other::pnmtotiffcmyk.c
index 20fd64f60c82..86e8ca771d08 100644
--- a/graphics/netpbm/files/patch-ay
+++ b/graphics/netpbm/files/patch-converter::other::pnmtotiffcmyk.c
@@ -1,5 +1,5 @@
---- pnm/pnmtotiffcmyk.c.orig Sat May 13 09:29:45 2000
-+++ pnm/pnmtotiffcmyk.c Fri Dec 8 00:00:00 2000
+--- converter/other/pnmtotiffcmyk.c.orig Sat May 13 09:29:45 2000
++++ converter/other/pnmtotiffcmyk.c Tue Jun 18 00:00:00 2002
@@ -71,8 +71,12 @@
#define VERSION 1.01
diff --git a/graphics/netpbm/files/patch-converter::ppm::ppmtompeg::Makefile b/graphics/netpbm/files/patch-converter::ppm::ppmtompeg::Makefile
new file mode 100644
index 000000000000..325f788b4a33
--- /dev/null
+++ b/graphics/netpbm/files/patch-converter::ppm::ppmtompeg::Makefile
@@ -0,0 +1,23 @@
+--- converter/ppm/ppmtompeg/Makefile.orig Mon Jun 10 13:35:38 2002
++++ converter/ppm/ppmtompeg/Makefile Tue Jun 18 00:00:00 2002
+@@ -8,18 +8,12 @@
+ include $(BUILDDIR)/Makefile.config
+
+ JPEGLD =
+-ifeq ($(JPEGLIB_DIR),NONE)
++ifeq ($(JPEGLIB),NONE)
+ # 'nojpeg' is a module that implements all the jpeg access routines as
+ # error messages that tell you we don't have jpeg capability
+ JPEG_MODULE = nojpeg
+ else
+- ifneq ($(JPEGLIB_DIR)x,x)
+- JPEGLD += -L$(JPEGLIB_DIR)
+- ifeq ($(NEED_RUNTIME_PATH),Y)
+- JPEGLD += -R$(JPEGLIB_DIR)
+- endif
+- endif
+- JPEGLD += -ljpeg
++ JPEGLD += `$(LIBOPT) $(LIBOPTOPT) $(JPEGLIB)`
+ # 'jpeg' is a module that accesses J-movies via the JPEG library.
+ JPEG_MODULE = jpeg
+ endif
diff --git a/graphics/netpbm/files/patch-lib::Makefile b/graphics/netpbm/files/patch-lib::Makefile
new file mode 100644
index 000000000000..d5d064756e36
--- /dev/null
+++ b/graphics/netpbm/files/patch-lib::Makefile
@@ -0,0 +1,103 @@
+--- lib/Makefile.orig Wed Jun 12 13:00:32 2002
++++ lib/Makefile Tue Jun 18 00:00:00 2002
+@@ -31,12 +31,14 @@
+ # Library objects to be linked but not built by Makefile.common:
+ LIBOBJECTS_X = util/shhopt.o util/nstring.o
+
++SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
++
+ MANUALS3 = libnetpbm
+ MANUALS5 = pbm pgm ppm pnm pam
+
+ INTERFACE_HEADERS = pm.h pbm.h bitio.h pbmfont.h \
+- pgm.h ppm.h ppm.h ppmcmap.h ppmfloyd.h colorname.h \
+- pnm.h pam.h pammap.h util/shhopt.h util/nstring.h
++ pgm.h ppm.h ppm.h ppmcmap.h ppmdraw.h ppmfloyd.h colorname.h \
++ pnm.h pam.h pammap.h util/pm_shhopt.h util/pm_nstring.h
+
+ HEADERLINKS = pm_config.h version.h compile.h shhopt.h
+
+@@ -57,6 +59,9 @@
+
+ $(LIBOBJECTS): %.o: %.c $(HEADERLINKS)
+ # Note that the user may have configured -I options into CFLAGS.
++ $(CC) -c $(INCLUDE) $(CFLAGS) $(CADD) -o $@ $<
++
++$(SHLIBOBJECTS): %.lo: %.c $(HEADERLINKS)
+ $(CC) -c $(INCLUDE) $(CFLAGS) $(CFLAGS_SHLIB) $(CADD) -o $@ $<
+
+ SUBDIRS = util
+@@ -67,7 +72,7 @@
+ MAJ = $(NETPBM_MAJOR_RELEASE)
+ MIN = $(NETPBM_MINOR_RELEASE)
+
+-SONAME = libnetpbm.so.$(MAJ)
++SONAME = libnetpbm.so.$(SOVER)
+
+ ifeq ($(NETPBMLIBTYPE),irixshared)
+ # The libxxx.so link is needed to link the executables.
+@@ -97,12 +102,9 @@
+ # The $(SONAME) link is only needed to test the programs without
+ # installing the libraries (in that case, you also need to direct the
+ # dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH).
+-$(SONAME): libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN)
+- rm -f $@
+- $(SYMLINK) $< $@
+-libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X)
+- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \
+- -lc $(CADD)
++$(SONAME): $(SHLIBOBJECTS) $(LIBOBJECTS_X)
++ $(LD) $(LDSHLIB) -o $@ $(SHLIBOBJECTS) $(LIBOBJECTS_X) \
++ $(CADD)
+ endif
+
+ ifeq ($(NETPBMLIBTYPE),dll)
+@@ -181,13 +183,10 @@
+ .PHONY: install.lib
+ ifeq ($(NETPBMLIBTYPE),unixshared)
+ # install a Unix-style shared library
+-install.lib: $(PKGDIR)/lib $(PKGDIR)/link
+- cd $(PKGDIR)/lib ; rm -f libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).*
+- $(INSTALL) -c -m $(INSTALL_PERM_LIBD) \
+- libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN) $(PKGDIR)/lib/
+- cd $(PKGDIR)/lib/ ; \
+- rm -f libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ); \
+- $(SYMLINK) libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN) $(SONAME)
++install.lib: $(PKGDIR)/lib
++ cd $(PKGDIR)/lib ; rm -f libnetpbm.$(NETPBMLIBSUFFIX).*
++ ${BSD_INSTALL_DATA} \
++ $(SONAME) $(PKGDIR)/lib/
+ endif
+ ifeq ($(NETPBMLIBTYPE),dll)
+ #install a Windows DLL shared library
+@@ -217,23 +216,23 @@
+ # directory when you compile your programs.
+
+ %_installhdr: $(PKGDIR)/include
+- $(INSTALL) -c -m $(INSTALL_PERM_HDR) \
++ ${BSD_INSTALL_DATA} \
+ $(SRCDIR)/lib/$(@:%_installhdr=%) $(PKGDIR)/include/;
+
+ .PHONY: install.staticlib
+-install.staticlib: $(PKGDIR)/link
+- $(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.$(STATICLIBSUFFIX) \
+- $(PKGDIR)/link
++install.staticlib: $(PKGDIR)/lib
++ ${BSD_INSTALL_DATA} libnetpbm.$(STATICLIBSUFFIX) \
++ $(PKGDIR)/lib
+
+ # Install a shared library stub -- the ".so" file used at link time to
+ # prepare a program for dynamically linking a library at run time
+ .PHONY: install.sharedlibstub
+-install.sharedlibstub: $(PKGDIR)/link
++install.sharedlibstub: $(PKGDIR)/lib
+ ifeq ($(NETPBMLIBTYPE),unixshared)
+ # install the link-time (.so) links to the runtime libraries
+- cd $(PKGDIR)/link ; \
++ cd $(PKGDIR)/lib ; \
+ rm -f libnetpbm.$(NETPBMLIBSUFFIX); \
+- $(SYMLINK) ../lib/libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
++ $(SYMLINK) $(SONAME) \
+ libnetpbm.$(NETPBMLIBSUFFIX)
+ endif
+ ifeq ($(NETPBMLIBTYPE),dll)
diff --git a/graphics/netpbm/files/patch-ap b/graphics/netpbm/files/patch-other::pnmarith.c
index cac0ce0bf026..924657f51e6a 100644
--- a/graphics/netpbm/files/patch-ap
+++ b/graphics/netpbm/files/patch-other::pnmarith.c
@@ -1,5 +1,5 @@
---- pnm/pnmarith.c.orig Sun Aug 13 13:08:04 1995
-+++ pnm/pnmarith.c Sat Oct 16 02:39:24 1999
+--- other/pnmarith.c.orig Sun Aug 13 13:08:04 1995
++++ other/pnmarith.c Tue Jun 18 00:00:00 2002
@@ -147,9 +147,9 @@
break;
diff --git a/graphics/netpbm/files/patch-aj b/graphics/netpbm/files/patch-pm_config.h
index 9e8f76ce0a68..d41ee5890ce2 100644
--- a/graphics/netpbm/files/patch-aj
+++ b/graphics/netpbm/files/patch-pm_config.h
@@ -1,8 +1,8 @@
---- pm_config.h.orig Mon Jun 11 08:37:08 2001
-+++ pm_config.h Mon Tue Jun 26 00:00:00 2001
-@@ -19,6 +19,10 @@
-
- **************************************************************************/
+--- pm_config.h.orig Sat Jun 15 05:36:45 2002
++++ pm_config.h Tue Jun 18 00:00:00 2002
+@@ -35,6 +35,10 @@
+ typedef unsigned int uint32n;
+ typedef signed int int32n;
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
@@ -11,7 +11,7 @@
#if defined(USG) || defined(SVR4) || defined(VMS) || defined(__SVR4)
#define SYSV
#endif
-@@ -28,7 +32,7 @@
+@@ -44,7 +48,7 @@
** and if you run on an Amiga, set AMIGA. If your compiler is ANSI C, you're
** probably better off setting SYSV - all it affects is string handling.
*/
@@ -20,7 +20,7 @@
/* #define SYSV */
/* #define MSDOS */
/* #define AMIGA */
-@@ -48,9 +52,9 @@
+@@ -118,9 +122,9 @@
#define RGB_DB2 "PBMplus_Dir:RGB.TXT"
#define RGB_DB3 "PBMplus_Dir:RGB.TXT"
#else
diff --git a/graphics/netpbm/pkg-plist b/graphics/netpbm/pkg-plist
index 5bd85d09cf1c..93d5608ad095 100644
--- a/graphics/netpbm/pkg-plist
+++ b/graphics/netpbm/pkg-plist
@@ -4,6 +4,7 @@ bin/asciitopgm
bin/atktopbm
bin/bioradtopgm
bin/bmptopnm
+bin/bmptoppm
bin/brushtopbm
bin/cmuwmtopbm
bin/eyuvtoppm
@@ -11,9 +12,11 @@ bin/fiascotopnm
bin/fitstopnm
bin/fstopgm
bin/g3topbm
+bin/gemtopbm
bin/gemtopnm
bin/giftopnm
bin/gouldtoppm
+bin/hdifftopam
bin/hipstopgm
bin/hpcdtoppm
bin/icontopbm
@@ -24,6 +27,7 @@ bin/jpegtopnm
bin/leaftoppm
bin/lispmtopgm
bin/macptopbm
+bin/manweb
bin/mdatopbm
bin/mgrtopbm
bin/mtvtoppm
@@ -33,20 +37,25 @@ bin/pamchannel
bin/pamcut
bin/pamdeinterlace
bin/pamdice
+bin/pamendian
bin/pamfile
bin/pamoil
+bin/pamseq
+bin/pamstack
bin/pamstretch
bin/pamstretch-gen
+bin/pamtohdiff
bin/pamtopnm
+bin/pamtouil
bin/pbmclean
bin/pbmlife
bin/pbmmake
bin/pbmmask
-bin/pbmmerge
bin/pbmpage
bin/pbmpscale
bin/pbmreduce
bin/pbmtext
+bin/pbmtextps
bin/pbmto10x
bin/pbmto4425
bin/pbmtoascii
@@ -79,7 +88,7 @@ bin/pbmtoxbm
bin/pbmtoybm
bin/pbmtozinc
bin/pbmupc
-bin/pcdindex
+bin/pcdovtoppm
bin/pcxtoppm
bin/pgmbentley
bin/pgmcrater
@@ -87,8 +96,9 @@ bin/pgmedge
bin/pgmenhance
bin/pgmhist
bin/pgmkernel
-bin/pgmmerge
bin/pgmnoise
+bin/pgmnorm
+bin/pgmoil
bin/pgmramp
bin/pgmslice
bin/pgmtexture
@@ -118,11 +128,12 @@ bin/pnmgamma
bin/pnmhisteq
bin/pnmhistmap
bin/pnmindex
+bin/pnminterp
bin/pnminvert
bin/pnmmargin
-bin/pnmmerge
bin/pnmmontage
bin/pnmnlfilt
+bin/pnmnoraw
bin/pnmnorm
bin/pnmpad
bin/pnmpaste
@@ -167,13 +178,12 @@ bin/ppmforge
bin/ppmhist
bin/ppmlabel
bin/ppmmake
-bin/ppmmerge
bin/ppmmix
+bin/ppmnorm
bin/ppmntsc
bin/ppmpat
bin/ppmquant
bin/ppmquantall
-bin/ppmqvga
bin/ppmrainbow
bin/ppmrelief
bin/ppmshadow
@@ -185,6 +195,7 @@ bin/ppmtoeyuv
bin/ppmtogif
bin/ppmtoicr
bin/ppmtoilbm
+bin/ppmtojpeg
bin/ppmtoleaf
bin/ppmtolj
bin/ppmtomap
@@ -237,30 +248,24 @@ bin/yuvsplittoppm
bin/yuvtoppm
bin/zeisstopnm
include/bitio.h
+include/colorname.h
include/pam.h
include/pammap.h
include/pbm.h
+include/pbmfont.h
include/pgm.h
include/pm.h
include/pm_config.h
+include/pm_nstring.h
include/pm_shhopt.h
include/pnm.h
include/ppm.h
include/ppmcmap.h
include/ppmdraw.h
include/ppmfloyd.h
-lib/libpbm.a
-lib/libpbm.so
-lib/libpbm.so.1
-lib/libpgm.a
-lib/libpgm.so
-lib/libpgm.so.1
-lib/libpnm.a
-lib/libpnm.so
-lib/libpnm.so.1
-lib/libppm.a
-lib/libppm.so
-lib/libppm.so.1
+lib/libnetpbm.a
+lib/libnetpbm.so
+lib/libnetpbm.so.1
share/netpbm/palmcolor8.map
share/netpbm/palmgray1.map
share/netpbm/palmgray2.map