summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1998-07-18 22:04:14 +0000
committerfrueauf <frueauf@pkgsrc.org>1998-07-18 22:04:14 +0000
commit4f0def73365d89cadca48e9e8f67da62593d922e (patch)
treec16bae4cb478cbbe5b6c27d91e39e907706d21ae
parenta13277eff89918096fdc871853be49ee4477eb7c (diff)
downloadpkgsrc-4f0def73365d89cadca48e9e8f67da62593d922e.tar.gz
Initial addition of hp2xx-3.1.4, a HPGL converter and previewer.
Closes pr 5734 by Dan McMahill.
-rw-r--r--graphics/hp2xx/Makefile12
-rw-r--r--graphics/hp2xx/files/md51
-rw-r--r--graphics/hp2xx/patches/patch-aa31
-rw-r--r--graphics/hp2xx/patches/patch-ab34
-rw-r--r--graphics/hp2xx/patches/patch-ac8
-rw-r--r--graphics/hp2xx/patches/patch-ad9
-rw-r--r--graphics/hp2xx/patches/patch-ae17
-rw-r--r--graphics/hp2xx/pkg/COMMENT1
-rw-r--r--graphics/hp2xx/pkg/DESCR18
-rw-r--r--graphics/hp2xx/pkg/PLIST7
-rw-r--r--graphics/hp2xx/scripts/post-extract6
11 files changed, 144 insertions, 0 deletions
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 <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <math.h>
+ #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 <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+
+ /* 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