summaryrefslogtreecommitdiff
path: root/graphics/urt
diff options
context:
space:
mode:
authoragc <agc>1998-08-24 16:55:35 +0000
committeragc <agc>1998-08-24 16:55:35 +0000
commit24477adfbeb3aa0e5c9125516b2d704cd9c6b40e (patch)
tree60eda1ac8bce563e7369b709d7ca3a4f27db8247 /graphics/urt
parentfaa5213da24c5fbb9368703a7259ec492127bf61 (diff)
downloadpkgsrc-24477adfbeb3aa0e5c9125516b2d704cd9c6b40e.tar.gz
Addition of Utah Raster Toolkit, version 3.1b1 (a toolkit and library
for raster image processing), to the NetBSD packages collection. This was taken originally from the FreeBSD port, but hacked around by myself to make it work properly on NetBSD.
Diffstat (limited to 'graphics/urt')
-rw-r--r--graphics/urt/Makefile43
-rw-r--r--graphics/urt/files/md56
-rw-r--r--graphics/urt/patches/patch-aa172
-rw-r--r--graphics/urt/patches/patch-ab228
-rw-r--r--graphics/urt/patches/patch-ac83
-rw-r--r--graphics/urt/patches/patch-ad16
-rw-r--r--graphics/urt/pkg/COMMENT1
-rw-r--r--graphics/urt/pkg/DESCR13
-rw-r--r--graphics/urt/pkg/PLIST222
9 files changed, 784 insertions, 0 deletions
diff --git a/graphics/urt/Makefile b/graphics/urt/Makefile
new file mode 100644
index 00000000000..b263549e7bc
--- /dev/null
+++ b/graphics/urt/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 1998/08/24 16:55:35 agc Exp $
+# FreeBSD Id: Makefile,v 1.6 1998/02/11 08:48:26 tg Exp
+#
+
+DISTNAME= urt
+PKGNAME= urt-3.1b1
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.cs.utah.edu/pub/
+DISTFILES= urt-3.1b.tar.Z urt-doc.tar urt-img.tar
+
+MAINTAINER= packages@netbsd.org
+
+DEPENDS+= tiff-3.4:../../graphics/tiff
+BUILD_DEPENDS+= ../../graphics/netpbm/${WRKDIR:T}/netpbm:../../graphics/netpbm:build
+
+EXTRACT_ONLY= urt-3.1b.tar.Z
+PATCH_SITES= ftp://ptolemy.berkeley.edu/pub/misc/urt/
+PATCHFILES= urt-3.1b-3.1b1.patch
+PATCH_DIST_STRIP=-p1
+
+NO_WRKSUBDIR= yes
+CONFIGURE_SCRIPT=Configure
+CONFIGURE_ARGS= config/urt
+HAS_CONFIGURE= yes
+MAKEFILE= makefile
+MAKE_ENV+= PKGSRCDIR=${.CURDIR}/../.. WORKINGDIRNAME=${WRKDIR:T}
+ALL_TARGET=
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/urt ${PREFIX}/share/examples/urt
+ cd ${PREFIX}/share/doc/urt; \
+ ${EXTRACT_CMD} xf $(DISTDIR)/urt-doc.tar; \
+ cd doc; \
+ find -d . | cpio -dump ..; \
+ cd ..; \
+ ${RM} -rf doc; \
+ cd ${PREFIX}/share/examples/urt; \
+ ${EXTRACT_CMD} xf $(DISTDIR)/urt-img.tar; \
+ chown -R root:wheel . ; \
+ find . -type d -exec chmod 775 '{}' \; ; \
+ find . -type f -exec chmod 664 '{}' \;
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/urt/files/md5 b/graphics/urt/files/md5
new file mode 100644
index 00000000000..9e3b3ede7e4
--- /dev/null
+++ b/graphics/urt/files/md5
@@ -0,0 +1,6 @@
+$NetBSD: md5,v 1.1 1998/08/24 16:55:35 agc Exp $
+
+MD5 (urt-3.1b.tar.Z) = c9a377284d00c102c1a8af53d95a6b39
+MD5 (urt-doc.tar) = cc547e9b7ed77196e14c9897b1655ead
+MD5 (urt-img.tar) = 7ef7a295350dd2fa7d5aa580545f9ba4
+MD5 (urt-3.1b-3.1b1.patch) = ff90c5d85cda7736536a5db67f216be7
diff --git a/graphics/urt/patches/patch-aa b/graphics/urt/patches/patch-aa
new file mode 100644
index 00000000000..d8a98325168
--- /dev/null
+++ b/graphics/urt/patches/patch-aa
@@ -0,0 +1,172 @@
+$NetBSD: patch-aa,v 1.1 1998/08/24 16:55:36 agc Exp $
+
+Set up the configuration for NetBSD.
+
+--- config/urt.orig Wed Jul 15 15:47:15 1992
++++ config/urt Wed Feb 11 01:01:24 1998
+@@ -1,3 +1,7 @@
++# Configuration for HP 9000/300 series running BSD4.3
++
++#quiet on
++
+ # Configuration file for the URT raster toolkit package. Modify all
+ # entries in this file.
+
+@@ -29,7 +33,7 @@
+ ##define SUNTOOLS For Suns running SunTools.
+ ##define TAAC1 Suns with TAAC-1 board.
+ ##define X10 X10 Window system.
+-##define X11 X11 Window system.
++#define X11 X11 Window system.
+
+ # Conversion programs
+ #define ABEKASA60 Abekas A60 conversions.
+@@ -41,11 +45,11 @@
+ #define GRAYFILES Grayscale conversions.
+ ##define SGICONV SGI Image conversions.
+ #define MACPAINT Macpaint conversions.
+-##define PBMPLUS PBMPLUS conversions.
++#define PBMPLUS PBMPLUS conversions.
+ #define POSTSCRIPT Postscript conversions.
+ ##define SUNRASTER For Sun raster conversions.
+ #define TARGA Targa format conversions.
+-##define TIFF TIFF image conversions.
++#define TIFF TIFF image conversions.
+ #define TIFF2p4 Define if libtiff is version 2.4 or greater
+ #define VICAR VICAR image conversions.
+ #define WASATCH Wasatch Paintbox conversions.
+@@ -60,7 +64,7 @@
+ ##define APOLLOCC Apollo computer.
+ ##define CONVEXCC Convex C 4.0 or greater
+ ##define CRAY2CC Cray-2 running UNICOS.
+-##define GCC Gcc compiler.
++#define GCC Gcc compiler.
+ ##define HPUX300CC HP 9000/300 running HP-UX.
+ ##define HPUX800CC HP 9000/800 running HP-UX.
+ ##define IBMR6000CC IBM RS6000.
+@@ -70,14 +74,14 @@
+ ##define 386IXCC SVr3 386/ix 2.2
+
+ # You can put any system dependent flags here.
+-ExtraCFLAGS =
++ExtraCFLAGS = -O2
+
+ # System specific or configuration parameters. Define according to your
+ # environment and desires.
+
+ ##define ABEKAS_PAL Convert to PAL format in Abekas A60 tool.
+ ##define ALL_MAN Print/install all man pages.
+-##define CONST_DECL If your compiler understands 'const' (ANSI)
++#define CONST_DECL If your compiler understands 'const' (ANSI)
+ ##define FILE_NAME_14_CHARS If filenames are limited to 14 characters.
+ ##define HAVE_CPROTO If you have the cproto command. Not normally required.
+ ##define NEED_BSTRING Your libc does not have bcopy or bzero (Sys V probably)
+@@ -91,17 +95,17 @@
+ ##define NO_TOOLS Don't build tool directory.
+ ##define STDIO_NEEDS_BINARY Your fopen() needs "b" specified for binary io
+ ##define USE_TIME_H You need to include time.h for time_t (Sys V)
+-##define SYS_V_SETPGRP Your system has the SysV setpgrp() call.
+-##define USE_L_FLAG Use -Llibdir -lrle instead of libdir/liblre.a.
+-##define USE_PROTOTYPES Declare library functions with ANSI-C prototypes.
+-##define USE_RANDOM Your libc has the BSD random() function.
++#define SYS_V_SETPGRP Your system has the SysV setpgrp() call.
++#define USE_L_FLAG Use -Llibdir -lrle instead of libdir/liblre.a.
++#define USE_PROTOTYPES Declare library functions with ANSI-C prototypes.
++#define USE_RANDOM Your libc has the BSD random() function.
+ ##define USE_STDARG Use 'stdarg' instead of 'varargs' (ANSI).
+-##define USE_STDLIB_H You have "stdlib.h".
+-##define USE_UNISTD_H You have "unistd.h".
++#define USE_STDLIB_H You have "stdlib.h".
++#define USE_UNISTD_H You have "unistd.h".
+ ##define USE_STRING_H You have "string.h", not "strings.h"
+-##define VOID_STAR Your C compiler understands the 'void *' declaration.
++#define VOID_STAR Your C compiler understands the 'void *' declaration.
+ ##define USE_XLIBINT_H You have the include file <X11/Xlibint.h>.
+-##define X_SHARED_MEMORY You have the XShm extension.
++#define X_SHARED_MEMORY You have the XShm extension.
+
+ # DEST is where all programs will be put. Can be overridden for specific
+ # directories below.
+@@ -121,12 +125,12 @@
+ # library, include files, or manual pages, respectively, to be
+ # installed anywhere.
+
+-##defpath MAN_DEST /usr/site/man
+-##defpath LIB_DEST
+-##defpath GET_DEST
+-##defpath CNV_DEST
+-##defpath TOOLS_DEST
+-##defpath INC_DEST
++#defpath MAN_DEST /$(PREFIX)/man
++#defpath LIB_DEST /$(PREFIX)/lib
++#defpath GET_DEST /$(PREFIX)/bin
++#defpath CNV_DEST /$(PREFIX)/bin
++#defpath TOOLS_DEST /$(PREFIX)/bin
++#defpath INC_DEST /$(PREFIX)/include
+
+ # Control of formatting. If your "roff" program needs to be piped to
+ # something to print, set ROFFPIPE to (e.g.) "| lpr"
+@@ -145,9 +149,9 @@
+ #ifdef CGM
+ # Path to directory where CGM library and include files may be found
+ # Absolute or relative to URT root
+-#defpath CGMDIR
+-INCCGM = -I$(CGMDIR)
+-LIBCGM = $(CGMDIR)/libcgm.a
++#defpath CGMDIR $(LOCALBASE)
++INCCGM = -I$(CGMDIR)/include
++LIBCGM = $(CGMDIR)/lib/libcgm.a
+ #endif
+
+ #ifdef CX3D
+@@ -163,11 +167,11 @@
+ # Where to find the MC-TeX include files.
+ INCMCTEX = h # Note! relative to cnv/tex directory
+ # where to find the font description file
+-CONFFILE = /usr/local/lib/tex/fontdesc
++CONFFILE = $(LOCALBASE)/lib/tex/fontdesc
+ #endif
+
+ #ifdef FB
+-LIBFB = /usr/brl/lib/libfb.a
++LIBFB = $(X11BASE)/lib/brl/libfb.a
+ #endif
+
+ #ifdef GRINNELL
+@@ -191,11 +195,10 @@
+ #ifdef PBMPLUS
+ # PBMDIR should refer to the root of your PBM source tree.
+ # If relative, it's relative to root of URT source tree.
+-#defpath PBMDIR
++PBMDIR= ${PKGSRCDIR}/graphics/netpbm/${WORKINGDIRNAME}/netpbm
+
+-INCPBMPLUS = -I$(PBMDIR) -I$(PBMDIR)/ppm -I$(PBMDIR)/pgm -I$(PBMDIR)/pbm
+-LIBPBMPLUS = $(PBMDIR)/ppm/libppm.a $(PBMDIR)/pgm/libpgm.a \
+- $(PBMDIR)/pbm/libpbm.a
++INCPBMPLUS = -I$(PBMDIR) -I$(PBMDIR)/ppm -I$(PBMDIR)/pgm -I$(PBMDIR)/pbm
++LIBPBMPLUS = $(PBMDIR)/ppm/libppm.a $(PBMDIR)/pgm/libpgm.a $(PBMDIR)/pbm/libpbm.a
+ #endif
+
+ #ifdef SUNRASTER|SUNTOOLS|TAAC1
+@@ -216,9 +221,9 @@
+
+ #ifdef TIFF
+ # Location of tiff library and include files. Relative to URT root directory.
+-#defpath TIFFDIR
+-INCTIFF = -I$(TIFFDIR)
+-LIBTIFF = $(TIFFDIR)/libtiff.a
++##defpath TIFFDIR
++INCTIFF = -I${LOCALBASE}/include
++LIBTIFF = -L${LOCALBASE}/lib -ltiff
+ #endif
+
+ #ifdef X10
+@@ -227,6 +232,6 @@
+ #endif
+
+ #ifdef X11
+-LIBX11 = -lX11
+-INCX11 =
++LIBX11 = -L${X11BASE}/lib -lX11
++INCX11 = -I${X11BASE}/include
+ #endif
diff --git a/graphics/urt/patches/patch-ab b/graphics/urt/patches/patch-ab
new file mode 100644
index 00000000000..159e19aa873
--- /dev/null
+++ b/graphics/urt/patches/patch-ab
@@ -0,0 +1,228 @@
+$NetBSD: patch-ab,v 1.1 1998/08/24 16:55:36 agc Exp $
+
+diff -ur ../urt-3.1b-orig/get/getx11/in_cmap.c ./get/getx11/in_cmap.c
+--- ../urt-3.1b-orig/get/getx11/in_cmap.c Thu Apr 30 10:17:16 1992
++++ ./get/getx11/in_cmap.c Sat Sep 16 11:16:59 1995
+@@ -70,10 +70,10 @@
+ if ( img->sep_colors ||
+ (img->img_channels == 1 && img->ncmap == 3 && img->cmlen) )
+ /* If using color map directly, apply display gamma, too. */
+- img->in_cmap = buildmap( img_hdr, 3, img->gamma,
++ img->in_cmap = buildmap( img_hdr, 3, (double) img->gamma,
+ display_gamma );
+ else
+- img->in_cmap = buildmap( img_hdr, 3, img->gamma, 1.0 );
++ img->in_cmap = buildmap( img_hdr, 3, (double) img->gamma, 1.0 );
+
+ for (i = 0; i < 3; i++ ) {
+ for (j = 0; j < 256; j++)
+diff -ur ../urt-3.1b-orig/include/rle_config.tlr ./include/rle_config.tlr
+--- ../urt-3.1b-orig/include/rle_config.tlr Thu Apr 30 10:06:23 1992
++++ ./include/rle_config.tlr Sat Sep 16 11:31:57 1995
+@@ -48,7 +48,7 @@
+ #endif /* NO_DECLARE_MALLOC */
+
+ #ifdef USE_PROTOTYPES
+-extern char *getenv( CONST_DECL char *name );
++extern char *getenv( CONST_DECL char *CONST_DECL name);
+ #else
+ extern char *getenv();
+ #endif
+diff -ur ../urt-3.1b-orig/lib/buildmap.c ./lib/buildmap.c
+--- ../urt-3.1b-orig/lib/buildmap.c Thu Feb 27 18:17:01 1992
++++ ./lib/buildmap.c Sat Sep 16 12:11:12 1995
+@@ -26,6 +26,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "rle.h"
+ #include <math.h>
+
+diff -ur ../urt-3.1b-orig/lib/makefile.src ./lib/makefile.src
+--- ../urt-3.1b-orig/lib/makefile.src Wed Mar 4 16:32:53 1992
++++ ./lib/makefile.src Sat Sep 16 10:44:35 1995
+@@ -26,7 +26,10 @@
+ vaxshort.o \
+ $(OPT_OBJS)
+
+-LIBNAME = librle.a
++SOOBJS = $(OBJS:.o=.so)
++
++LIBANAME = librle.a
++LIBSONAME = librle.so.1.0
+
+ # Just rebuild the object files.
+ objs: $(OBJS)
+@@ -37,23 +40,13 @@
+ # Do nothing if $(DEST) is empty (or not defined)
+ install: buildlib
+ @sh -c "if test '$(DEST)x' != x ; then \
+- echo cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
+- cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
++ echo cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
++ cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
++ echo cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
++ cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
+ if test x$(RANLIB) != x ; then \
+- echo ranlib $(DEST)/$(LIBNAME) ; \
+- ranlib $(DEST)/$(LIBNAME) ; \
+- else \
+- true ; \
+- fi ; \
+- if test -d $(DEST)/debug ; then \
+- echo cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
+- if test x$(RANLIB) != x ; then \
+- cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
+- echo ranlib $(DEST)/debug/$(LIBNAME) ; \
+- else \
+- true ; \
+- fi ; \
+- ranlib $(DEST)/debug/$(LIBNAME) ; \
++ echo ranlib $(DEST)/$(LIBANAME) ; \
++ ranlib $(DEST)/$(LIBANAME) ; \
+ else \
+ true ; \
+ fi ; \
+@@ -63,14 +56,24 @@
+ touch install
+
+ # Rebuild the library from all the .o files.
+-buildlib: $(OBJS)
+- -rm -f $(LIBNAME)
+- ar rc $(LIBNAME)
+- ar q $(LIBNAME) $(OBJS)
++buildlib: $(LIBANAME) $(LIBSONAME)
++
++$(LIBANAME): $(OBJS)
++ -rm -f $@
++ ar rc $@ $?
+ #ifndef NO_RANLIB
+- ranlib $(LIBNAME)
++ ranlib $@
+ #endif
+- touch buildlib
++
++.SUFFIXES: .so .o
++
++.c.so:
++ $(CC) -fPIC -DPIC $(CFLAGS) -c $*.c -o $*.so
++ $(LD) -X -r $*.so
++
++$(LIBSONAME): $(SOOBJS)
++ -rm -f $@
++ ld -Bshareable -o $@ $>
+
+ # Clean up installed stuff and binaries
+ pristine: clean
+@@ -86,9 +89,12 @@
+ # Get rid of everything which must be recompiled on a different computer.
+ clean:
+ -rm -f *.o
++ -rm -f *.so
+ -@if test x$(DEST) != x ; then \
+- echo rm -f $(LIBNAME) ; \
+- rm -f $(LIBNAME) ; \
++ echo rm -f $(LIBANAME) ; \
++ rm -f $(LIBANAME) ; \
++ echo rm -f $(LIBSONAME) ; \
++ rm -f $(LIBSONAME) ; \
+ else \
+ true ; \
+ fi
+diff -ur ../urt-3.1b-orig/makefile.src ./makefile.src
+--- ../urt-3.1b-orig/makefile.src Fri Jun 7 11:58:13 1991
++++ ./makefile.src Fri Sep 15 22:09:01 1995
+@@ -17,7 +17,7 @@
+ # clean deletes all but source, pristine (below) deletes installed stuff, too
+ default clean: doit
+ @for d in $(DIRS) ; do \
+- ( cd $$d ; echo make $@ on $$d ; make $(MFLAGS) $@ ) ; \
++ ( cd $$d ; echo make $@ on $$d ; $(MAKE) $(MFLAGS) $@ ) ; \
+ done
+
+ # install puts library, binaries and documentation into global location
+@@ -29,7 +29,7 @@
+
+ install $(MAKE_TARGET) pristine depend:: doit
+ @for d in $(ALLDIRS) ; do \
+- ( cd $$d ; echo make $@ on $$d ; make $(MFLAGS) $@ ) ; \
++ ( cd $$d ; echo make $@ on $$d ; $(MAKE) $(MFLAGS) $@ ) ; \
+ done
+
+
+diff -ur ../urt-3.1b-orig/makefile.tlr ./makefile.tlr
+--- ../urt-3.1b-orig/makefile.tlr Tue Aug 4 13:17:57 1992
++++ ./makefile.tlr Sat Sep 16 10:35:58 1995
+@@ -7,7 +7,7 @@
+ @sh -c "if test 'x$(DIRS)' != x ; then eval \
+ 'set -e ; for dir in $(DIRS) ; do \
+ (cd \$$dir ; echo Make ${HERE}\$$dir ; \
+- make $(MFLAGS) $(DIRMFLAGS) ) ; \
++ $(MAKE) $(MFLAGS) $(DIRMFLAGS) ) ; \
+ done' ; \
+ else \
+ true ; \
+@@ -46,7 +46,7 @@
+ @sh -c "if test 'x$(DIRS)' != x ; then eval \
+ 'for dir in $(DIRS) ; do \
+ (cd \$$dir ; echo Install ${HERE}\$$dir ; \
+- make $(MFLAGS) $(DIRMFLAGS) install) ; \
++ $(MAKE) $(MFLAGS) $(DIRMFLAGS) install) ; \
+ done' ; \
+ else \
+ true ; \
+@@ -105,7 +105,7 @@
+ 'for dir in $(ALLDIRS); do \
+ if test -d $$dir ; then \
+ (cd $$dir; echo Make ${HERE}$$dir pristine ; \
+- make $(MFLAGS) pristine); \
++ $(MAKE) $(MFLAGS) pristine); \
+ else \
+ true; \
+ fi; \
+@@ -124,7 +124,7 @@
+ 'for dir in $(ALLDIRS); do \
+ if test -d $$dir ; then \
+ (cd $$dir; echo Clean ${HERE}$$dir ; \
+- make $(MFLAGS) clean); \
++ $(MAKE) $(MFLAGS) clean); \
+ else \
+ true; \
+ fi; \
+diff -ur ../urt-3.1b-orig/tools/into.c ./tools/into.c
+--- ../urt-3.1b-orig/tools/into.c Thu Apr 30 10:10:15 1992
++++ ./tools/into.c Sat Sep 16 10:32:26 1995
+@@ -41,7 +41,10 @@
+ short forceflg; /* overwrite an unwritable file?
+ */
+
+ extern int errno;
++
++#ifndef BSD
+ extern char *sys_errlist[];
++#endif
+
+ void
+ main(argc, argv)
+diff -ur ../urt-3.1b-orig/tools/makefile.src ./tools/makefile.src
+--- ../urt-3.1b-orig/tools/makefile.src Tue Jan 28 15:47:42 1992
++++ ./tools/makefile.src Sat Sep 16 10:33:14 1995
+@@ -68,7 +68,7 @@
+ fant.out: fant.o mallocNd.o
+ $(CC) $(CFLAGS) -I$(RI) fant.o mallocNd.o $(LIBS) -lm -o fant.new
+ mv fant.new fant.out
+-
++
+ # rlebox and crop use some common code.
+ rle_box.o: $(RI)/rle.h $(RI)/rle_config.h $(RI)/rle_raw.h
+
+@@ -82,7 +82,7 @@
+ # rleClock has it's own directory, must be built special
+
+ rleClock.out: clock/font.c clock/font.h clock/font.src clock/rleClock.c
+- (cd clock ; make)
++ (cd clock ; $(MAKE))
+
+ # Incremental install, copies everything ("$?") since last install to DEST dir.
+ install: $(PGMS) install-pgm
diff --git a/graphics/urt/patches/patch-ac b/graphics/urt/patches/patch-ac
new file mode 100644
index 00000000000..640cbf806ff
--- /dev/null
+++ b/graphics/urt/patches/patch-ac
@@ -0,0 +1,83 @@
+$NetBSD: patch-ac,v 1.1 1998/08/24 16:55:36 agc Exp $
+
+Extensive hacking around - instead of installing manual pages which
+simply source other man pages, make a symbolic link to the target.
+
+--- man/makefile.src.orig Thu Feb 27 21:26:52 1992
++++ man/makefile.src Mon Aug 24 17:42:59 1998
+@@ -197,11 +197,9 @@
+ GET_SETUP_OK_PAGE3 = man3/rle_get_setup_ok.3
+ #endif
+
+-PAGES5 = ${MANPAGES5} ${SOPAGES5}
++MANPAGES5 = man5/rle.5
+
+-MANPAGES5 = rle.5
+-
+-SOPAGES5 = RLE.5
++SOPAGES5 = man5/RLE.5
+
+ # Default action is to print all man pages
+ all:
+@@ -211,7 +209,6 @@
+
+ # Put the manual pages into a global location
+ install: install-1 install-3 install-5
+- touch install
+
+ install-1: $(PAGES1)
+ @-sh -c "if test '$(DEST)X' != X ; then \
+@@ -223,11 +220,10 @@
+ else \
+ true ; \
+ fi"
+- touch install-1
+
+-install-3: $(PAGES3)
++install-3: $(MANPAGES3) 3links
+ @-sh -c "if test '$(DEST)X' != X ; then \
+- for i in $? ; do \
++ for i in ${MANPAGES3} ; do \
+ dpgm=${PAGE3_INSTALL_NAME} ; \
+ echo cp \$$i $(DEST3)/\$$dpgm ; \
+ cp \$$i $(DEST3)/\$$dpgm ; \
+@@ -235,15 +231,34 @@
+ else \
+ true ; \
+ fi"
+- touch install-3
+
+-install-5: man5/*.5
++3links: ${SOPAGES3}
++ @for i in ${SOPAGES3}; do \
++ dpgm=`echo $$i | sed -e 's|.*/||'` ; \
++ tgt=`awk '/^\.so/ { print \$$2; exit}' < \$$i`; \
++ echo "ln -fs ${DEST3}/$$tgt ${DEST3}/$$dpgm"; \
++ ln -fs ${DEST3}/$$tgt ${DEST3}/$$dpgm; \
++ done
++
++install-5: ${MANPAGES5} 5links
+ @-sh -c "if test $(DEST)X != X; then \
+- echo cp $? $(DEST5); \
+- cp $? $(DEST5); \
++ for i in ${MANPAGES5} ; do \
++ dpgm=${PAGE3_INSTALL_NAME} ; \
++ echo cp \$$i $(DEST5)/\$$dpgm; \
++ cp \$$i $(DEST5)/\$$dpgm; \
++ done; \
+ else true; \
+ fi"
+- touch install-5
++
++5links: ${SOPAGES5}
++ @for i in ${SOPAGES5}; do \
++ dpgm=`echo $$i | sed -e 's|.*/||'` ; \
++ tgt=`awk '/^\.so/ { print \$$2; exit}' < \$$i`; \
++ echo "ln -fs ${DEST5}/$$tgt ${DEST5}/$$dpgm"; \
++ ln -fs ${DEST5}/$$tgt ${DEST5}/$$dpgm; \
++ done
++
++
+
+ # Clean up installed man pages
+ pristine:
diff --git a/graphics/urt/patches/patch-ad b/graphics/urt/patches/patch-ad
new file mode 100644
index 00000000000..6ec8b36e0cf
--- /dev/null
+++ b/graphics/urt/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1 1998/08/24 16:55:36 agc Exp $
+
+Make sure that we don't override the PBMDIR definition that was
+carefully set up in config/urt
+
+--- cnv/makefile.src 1998/08/24 15:26:04 1.1
++++ cnv/makefile.src 1998/08/24 15:26:19
+@@ -71,7 +71,7 @@
+
+ #ifdef PBMPLUS
+ #emit PBMDIR
+-PBMDIR =
++#PBMDIR =
+ # pgmtorle - pgm format to RLE
+ # ppmtorle - ppm format to RLE
+ # rletoppm - RLE to ppm format
diff --git a/graphics/urt/pkg/COMMENT b/graphics/urt/pkg/COMMENT
new file mode 100644
index 00000000000..67b94b72a14
--- /dev/null
+++ b/graphics/urt/pkg/COMMENT
@@ -0,0 +1 @@
+Utah raster toolkit - a toolkit and library for raster image processing.
diff --git a/graphics/urt/pkg/DESCR b/graphics/urt/pkg/DESCR
new file mode 100644
index 00000000000..b0c4b12d2ac
--- /dev/null
+++ b/graphics/urt/pkg/DESCR
@@ -0,0 +1,13 @@
+The Utah Raster toolkit is a collection of programs and C routines for
+dealing with raster images commonly encountered in computer graphics. It
+provides the following major functions:
+
+ * A device and system independent image format for storing images
+ and information about them. Called the RLE format, it uses
+ run length encoding to reduce storage space for most images.
+
+ * A library of C routines for reading, writing and manipulating
+ images stored in the RLE format.
+
+ * A collections of programs for manipulating and displaying RLE
+ images.
diff --git a/graphics/urt/pkg/PLIST b/graphics/urt/pkg/PLIST
new file mode 100644
index 00000000000..42b0576c20e
--- /dev/null
+++ b/graphics/urt/pkg/PLIST
@@ -0,0 +1,222 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/24 16:55:38 agc Exp $
+bin/aliastorle
+bin/applymap
+bin/avg4
+bin/crop
+bin/cubitorle
+bin/fant
+bin/getx11
+bin/giftorle
+bin/graytorle
+bin/into
+bin/mcut
+bin/mergechan
+bin/painttorle
+bin/pgmtorle
+bin/ppmtorle
+bin/pyrmask
+bin/rawtorle
+bin/repos
+bin/rlatorle
+bin/rleClock
+bin/rleaddcom
+bin/rlebg
+bin/rlebox
+bin/rlecat
+bin/rleccube
+bin/rlecomp
+bin/rledither
+bin/rleflip
+bin/rlegrid
+bin/rlehdr
+bin/rlehisto
+bin/rleldmap
+bin/rlemandl
+bin/rlenoise
+bin/rlepatch
+bin/rleprint
+bin/rlequant
+bin/rlescale
+bin/rleselect
+bin/rlesetbg
+bin/rlespiff
+bin/rlesplice
+bin/rlesplit
+bin/rlestereo
+bin/rleswap
+bin/rletoabA60
+bin/rletoabA62
+bin/rletoalias
+bin/rletoascii
+bin/rletogif
+bin/rletogray
+bin/rletopaint
+bin/rletoppm
+bin/rletops
+bin/rletoraw
+bin/rletorla
+bin/rletotarga
+bin/rletotiff
+bin/rlezoom
+bin/smush
+bin/targatorle
+bin/tifftorle
+bin/to8
+bin/tobw
+bin/unexp
+bin/unslice
+bin/wasatchrle
+bin/xbmtorle
+include/exit_status.h
+include/pyramid.h
+include/rle.h
+include/rle_code.h
+include/rle_config.h
+include/rle_put.h
+include/rle_raw.h
+lib/librle.a
+lib/librle.so.1.0
+man/man1/aliastorle.1
+man/man1/applymap.1
+man/man1/avg4.1
+man/man1/crop.1
+man/man1/cubitorle.1
+man/man1/dvirle.1
+man/man1/fant.1
+man/man1/getx11.1
+man/man1/giftorle.1
+man/man1/graytorle.1
+man/man1/into.1
+man/man1/mcut.1
+man/man1/mergechan.1
+man/man1/painttorle.1
+man/man1/pgmtorle.1
+man/man1/ppmtorle.1
+man/man1/pyrmask.1
+man/man1/rawtorle.1
+man/man1/repos.1
+man/man1/rlatorle.1
+man/man1/rleClock.1
+man/man1/rleaddcom.1
+man/man1/rleaddeof.1
+man/man1/rlebg.1
+man/man1/rlebox.1
+man/man1/rlecat.1
+man/man1/rleccube.1
+man/man1/rlecomp.1
+man/man1/rledither.1
+man/man1/rleflip.1
+man/man1/rlegrid.1
+man/man1/rlehdr.1
+man/man1/rlehisto.1
+man/man1/rleinterp.1
+man/man1/rleldmap.1
+man/man1/rlemandl.1
+man/man1/rlenoise.1
+man/man1/rlepatch.1
+man/man1/rleprint.1
+man/man1/rlequant.1
+man/man1/rlescale.1
+man/man1/rleselect.1
+man/man1/rlesetbg.1
+man/man1/rlespiff.1
+man/man1/rlesplice.1
+man/man1/rlesplit.1
+man/man1/rlestereo.1
+man/man1/rleswap.1
+man/man1/rletoabA60.1
+man/man1/rletoabA62.1
+man/man1/rletoalias.1
+man/man1/rletoascii.1
+man/man1/rletogif.1
+man/man1/rletogray.1
+man/man1/rletopaint.1
+man/man1/rletoppm.1
+man/man1/rletops.1
+man/man1/rletoraw.1
+man/man1/rletorla.1
+man/man1/rletotarga.1
+man/man1/rletotiff.1
+man/man1/rlezoom.1
+man/man1/smush.1
+man/man1/targatorle.1
+man/man1/tifftorle.1
+man/man1/to8.1
+man/man1/tobw.1
+man/man1/unexp.1
+man/man1/unslice.1
+man/man1/urt.1
+man/man1/wasatchrle.1
+man/man3/buildmap.3
+man/man3/bwdithermap.3
+man/man3/colorquant.3
+man/man3/dither.3
+man/man3/ditherbw.3
+man/man3/dithergb.3
+man/man3/dithermap.3
+man/man3/float_to_exp.3
+man/man3/hilbert.3
+man/man3/hilbert_c2i.3
+man/man3/hilbert_i2c.3
+man/man3/inv_cmap.3
+man/man3/librle.3
+man/man3/make_square.3
+man/man3/rgb_to_bw.3
+man/man3/rle_addhist.3
+man/man3/rle_cp.3
+man/man3/rle_debug.3
+man/man3/rle_delcom.3
+man/man3/rle_freeraw.3
+man/man3/rle_get_error.3
+man/man3/rle_get_set.3
+man/man3/rle_get_setup.3
+man/man3/rle_get_setup_ok.3
+man/man3/rle_getcom.3
+man/man3/rle_getraw.3
+man/man3/rle_getrow.3
+man/man3/rle_getskip.3
+man/man3/rle_hdr.3
+man/man3/rle_op.3
+man/man3/rle_open_f.3
+man/man3/rle_open_f_noexit.3
+man/man3/rle_put_init.3
+man/man3/rle_put_setup.3
+man/man3/rle_putcom.3
+man/man3/rle_puteof.3
+man/man3/rle_putraw.3
+man/man3/rle_putrow.3
+man/man3/rle_raw_alloc.3
+man/man3/rle_raw_free.3
+man/man3/rle_rawtorow.3
+man/man3/rle_row_alloc.3
+man/man3/rle_row_free.3
+man/man3/rle_skiprow.3
+man/man5/RLE.5
+man/man5/rle.5
+share/doc/urt/README
+share/doc/urt/pics/README
+share/doc/urt/pics/bullet_holes_and_shot_turb.ps.Z
+share/doc/urt/pics/center_masks_and_fin_turb.ps.Z
+share/doc/urt/pics/dart_and_strtch.ps.Z
+share/doc/urt/pics/dart_shadow_and_monkey.ps.Z
+share/doc/urt/pics/pahriah_final.ps.Z
+share/doc/urt/pics/scanned_and_cropped.ps.Z
+share/doc/urt/rle.doc
+share/doc/urt/rle.mss
+share/doc/urt/rle.ps
+share/doc/urt/rle_head.ps
+share/doc/urt/rleops.ps
+share/doc/urt/toolkit.bib
+share/doc/urt/toolkit.doc
+share/doc/urt/toolkit.mss
+share/doc/urt/toolkit.ps
+share/examples/urt/img/README
+share/examples/urt/img/christmas_ball.rle
+share/examples/urt/img/dart.rle
+share/examples/urt/img/lenna.rle
+share/examples/urt/img/mandrill.rle
+share/examples/urt/img/tack_w_shadow.rle
+@dirrm share/doc/urt/pics
+@dirrm share/doc/urt
+@dirrm share/examples/urt/img
+@dirrm share/examples/urt