From fc3ae49b54fccda9aed75a9ebf063dd6bc6e8e50 Mon Sep 17 00:00:00 2001 From: frueauf Date: Sat, 18 Jul 1998 22:04:14 +0000 Subject: Initial addition of hp2xx-3.1.4, a HPGL converter and previewer. Closes pr 5734 by Dan McMahill. --- graphics/hp2xx/Makefile | 12 ++++++++++++ graphics/hp2xx/files/md5 | 1 + graphics/hp2xx/patches/patch-aa | 31 +++++++++++++++++++++++++++++++ graphics/hp2xx/patches/patch-ab | 34 ++++++++++++++++++++++++++++++++++ graphics/hp2xx/patches/patch-ac | 8 ++++++++ graphics/hp2xx/patches/patch-ad | 9 +++++++++ graphics/hp2xx/patches/patch-ae | 17 +++++++++++++++++ graphics/hp2xx/pkg/COMMENT | 1 + graphics/hp2xx/pkg/DESCR | 18 ++++++++++++++++++ graphics/hp2xx/pkg/PLIST | 7 +++++++ graphics/hp2xx/scripts/post-extract | 6 ++++++ 11 files changed, 144 insertions(+) create mode 100644 graphics/hp2xx/Makefile create mode 100644 graphics/hp2xx/files/md5 create mode 100644 graphics/hp2xx/patches/patch-aa create mode 100644 graphics/hp2xx/patches/patch-ab create mode 100644 graphics/hp2xx/patches/patch-ac create mode 100644 graphics/hp2xx/patches/patch-ad create mode 100644 graphics/hp2xx/patches/patch-ae create mode 100644 graphics/hp2xx/pkg/COMMENT create mode 100644 graphics/hp2xx/pkg/DESCR create mode 100644 graphics/hp2xx/pkg/PLIST create mode 100644 graphics/hp2xx/scripts/post-extract (limited to 'graphics/hp2xx') diff --git a/graphics/hp2xx/Makefile b/graphics/hp2xx/Makefile new file mode 100644 index 00000000000..54d749da3b9 --- /dev/null +++ b/graphics/hp2xx/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1 1998/07/18 22:04:14 frueauf Exp $ +# + +DISTNAME= hp2xx-3.1.4 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_GNU} + +MAINTAINER= mcmahill@alum.mit.edu + +INFO_FILES= hp2xx.info + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/hp2xx/files/md5 b/graphics/hp2xx/files/md5 new file mode 100644 index 00000000000..fca3ffb44d4 --- /dev/null +++ b/graphics/hp2xx/files/md5 @@ -0,0 +1 @@ +MD5 (hp2xx-3.1.4.tar.gz) = 89778dfd60c4e07cae0cdb99519a909a diff --git a/graphics/hp2xx/patches/patch-aa b/graphics/hp2xx/patches/patch-aa new file mode 100644 index 00000000000..e0fb159d9cd --- /dev/null +++ b/graphics/hp2xx/patches/patch-aa @@ -0,0 +1,31 @@ +--- Makefile.orig Thu Jul 9 10:33:50 1998 ++++ Makefile Thu Jul 9 10:44:38 1998 +@@ -0,0 +1,28 @@ ++all: ++ cd sources; make all ++ ++check: ++ cd sources; make check ++ ++clean: ++ cd sources; make clean ++ ++install: ++ cd sources; make install ++ ++install-bin: ++ cd sources; make install-bin ++ ++install-man: ++ cd sources; make install-man ++ ++install-info: ++ cd sources; make install-info ++ ++mostlyclean: ++ cd sources; make mostlyclean ++ ++realclean: ++ cd sources; make realclean ++ ++ diff --git a/graphics/hp2xx/patches/patch-ab b/graphics/hp2xx/patches/patch-ab new file mode 100644 index 00000000000..3b460dabd74 --- /dev/null +++ b/graphics/hp2xx/patches/patch-ab @@ -0,0 +1,34 @@ +--- sources/Makefile.orig Mon Nov 15 16:47:49 1993 ++++ sources/Makefile Fri Jul 10 11:16:20 1998 +@@ -35,5 +35,5 @@ + # Installation sites (GNU conventions): + # +-prefix = /usr/local ++prefix = ${PREFIX} + bindir = $(prefix)/bin + includedir = $(prefix)/include +@@ -48,5 +48,5 @@ + CFLAGS = -O2 -Wall -ansi -fstrength-reduce -finline-functions + +-LFLAGS = # only sometimes needed; see below for examples ++LFLAGS = -L${X11BASE}/lib # only sometimes needed; see below for examples + CPPFLAGS = -I. # only sometimes needed; see below for examples + BINDCMD = # only needed for EMX and DJGPP DOS extenders +@@ -280,14 +280,10 @@ + + install-bin: $(PROGRAM) +- -$(STRIP) $(PROGRAM) +- $(CP) $(PROGRAM) $(bindir) +- $(CHMOD) 755 $(bindir)/$(PROGRAM) ++ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(bindir) + + install-info: hp2xx.info +- $(CP) hp2xx.info $(infodir) +- $(CHMOD) 644 $(infodir)/hp2xx.info ++ ${BSD_INSTALL_MAN} hp2xx.info $(infodir) + + install-man: ../doc/hp2xx.1 +- $(CP) ../doc/hp2xx.1 $(man1dir) +- $(CHMOD) 644 $(man1dir)/hp2xx.1 ++ ${BSD_INSTALL_MAN} ../doc/hp2xx.1 $(man1dir) + diff --git a/graphics/hp2xx/patches/patch-ac b/graphics/hp2xx/patches/patch-ac new file mode 100644 index 00000000000..cde9dcf349d --- /dev/null +++ b/graphics/hp2xx/patches/patch-ac @@ -0,0 +1,8 @@ +--- sources/picbuf.c.orig Thu Jul 9 11:36:03 1998 ++++ sources/picbuf.c Thu Jul 9 11:36:56 1998 +@@ -44,4 +44,5 @@ + #include + #include ++#include + #include + #include "bresnham.h" diff --git a/graphics/hp2xx/patches/patch-ad b/graphics/hp2xx/patches/patch-ad new file mode 100644 index 00000000000..2b23dc66e71 --- /dev/null +++ b/graphics/hp2xx/patches/patch-ad @@ -0,0 +1,9 @@ +--- sources/getopt.c.orig Thu Jul 9 11:38:13 1998 ++++ sources/getopt.c Thu Jul 9 11:39:08 1998 +@@ -41,4 +41,6 @@ + + #include ++#include ++#include + + /* This needs to come after some library #include diff --git a/graphics/hp2xx/patches/patch-ae b/graphics/hp2xx/patches/patch-ae new file mode 100644 index 00000000000..788cf087779 --- /dev/null +++ b/graphics/hp2xx/patches/patch-ae @@ -0,0 +1,17 @@ +--- doc/hp2xxinf.tex.orig Thu Jul 9 17:30:12 1998 ++++ doc/hp2xxinf.tex Fri Jul 10 11:04:20 1998 +@@ -33,6 +33,5 @@ + @format + START-INFO-DIR-ENTRY +-* HP2XX:(hp2xx). Conversion of HP-GL graphics into raster and +-* vector graphics formats ++* HP2XX:(hp2xx). HPGL converter and previewer + END-INFO-DIR-ENTRY + @end format +@@ -887,5 +886,5 @@ + @menu + * Installation of run-time versions:: +-* Source-level installation:: ++* Source-level Installation:: + @end menu + diff --git a/graphics/hp2xx/pkg/COMMENT b/graphics/hp2xx/pkg/COMMENT new file mode 100644 index 00000000000..e24b929980d --- /dev/null +++ b/graphics/hp2xx/pkg/COMMENT @@ -0,0 +1 @@ +HPGL converter and previewer. diff --git a/graphics/hp2xx/pkg/DESCR b/graphics/hp2xx/pkg/DESCR new file mode 100644 index 00000000000..416845af1c2 --- /dev/null +++ b/graphics/hp2xx/pkg/DESCR @@ -0,0 +1,18 @@ +hp2xx reads HPGL ASCII source files, interprets them, and +converts them into either another vector-oriented format or +one of several rasterfile formats. Currently, its HPGL +parser recognizes a subset of the HP 7550A command set. Some +high-level functions like filled polygons are missing. +Also, only the basic fixed character set 0 is supported. +Beside these limitations, hp2xx has proven to work with many +HP-GL sources without any trouble. + +In addition, hp2xx includes an X11 previewer for HPGL files. + +Supported vector formats are: TeX/Metafont, emTex-specials, +TeX/epic-Macros, and -I PostScript. + +Supported raster formats are: HP-PCL, PCX, PIC, IMG, +PBM, and previews. However, generation of other formats is +made easy for programmers because of hp2xx's modular struc- +ture. diff --git a/graphics/hp2xx/pkg/PLIST b/graphics/hp2xx/pkg/PLIST new file mode 100644 index 00000000000..5488f9f5cad --- /dev/null +++ b/graphics/hp2xx/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 1998/07/18 22:04:15 frueauf Exp $ +bin/hp2xx +man/man1/hp2xx.1 +@unexec %D/bin/install-info --delete %D/info/hp2xx.info %D/info/dir +info/hp2xx.info +@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir +@exec %D/bin/install-info %D/info/hp2xx.info %D/info/dir diff --git a/graphics/hp2xx/scripts/post-extract b/graphics/hp2xx/scripts/post-extract new file mode 100644 index 00000000000..70fe44ca252 --- /dev/null +++ b/graphics/hp2xx/scripts/post-extract @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "Running post-extract script" + +cd ${WRKSRC} +cp -p makes/generic.mak sources/Makefile -- cgit v1.2.3