summaryrefslogtreecommitdiff
path: root/print/pnm2ppa
diff options
context:
space:
mode:
authorkei <kei@pkgsrc.org>2001-04-28 03:10:59 +0000
committerkei <kei@pkgsrc.org>2001-04-28 03:10:59 +0000
commitc86096a8e4a1b456b01651238f539bafe2653166 (patch)
treebc4483f2fa4bab85f317d37de2bdfd928b0774d5 /print/pnm2ppa
parentec0a0d19f89530cf185f03f685f1e67d8a55cadc (diff)
downloadpkgsrc-c86096a8e4a1b456b01651238f539bafe2653166.tar.gz
Initial import of pnm2ppa-1.04 package. From README:
What is this? ------------- pnm2ppa, a PPM to PPA converter, creates output using the PPA (printer performance architecture) protocol. This protocol is used by some HP "Windows-only" printers, including the HP Deskjet 720C series, the HP DeskJet 820 series, and the HP DeskJet 1000 series. It has been tested on all three series, but your personal experience (positive or negative) is very much appreciated!
Diffstat (limited to 'print/pnm2ppa')
-rw-r--r--print/pnm2ppa/Makefile17
-rw-r--r--print/pnm2ppa/distinfo5
-rw-r--r--print/pnm2ppa/patches/patch-aa62
-rw-r--r--print/pnm2ppa/pkg/DESCR6
-rw-r--r--print/pnm2ppa/pkg/PLIST5
5 files changed, 95 insertions, 0 deletions
diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile
new file mode 100644
index 00000000000..7510d720900
--- /dev/null
+++ b/print/pnm2ppa/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/28 03:10:59 kei Exp $
+#
+
+DISTNAME= pnm2ppa-1.04
+CATEGORIES= print converters graphics
+MASTER_SITES= http://prdownloads.sourceforge.net/pnm2ppa/
+
+MAINTAINER= kei@netbsd.org
+HOMEPAGE= http://sourceforge.net/projects/pnm2ppa/
+COMMENT= filter to convert PNM file to PPA used by some HP DJ printer
+
+MAKE_ENV+= ECHO="${ECHO}"
+MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}"
+MAKE_ENV+= INSTALL_MAN="${INSTALL_MAN}"
+MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/pnm2ppa/distinfo b/print/pnm2ppa/distinfo
new file mode 100644
index 00000000000..9b27e3c74b4
--- /dev/null
+++ b/print/pnm2ppa/distinfo
@@ -0,0 +1,5 @@
+
+
+SHA1 (pnm2ppa-1.04.tar.gz) = a3cd26788779bc80fa6c8265f3b2aacaaa5acd92
+Size (pnm2ppa-1.04.tar.gz) = 163851 bytes
+SHA1 (patch-aa) = f84882fabfc69053dffac11d3e2f62d91deabf0a
diff --git a/print/pnm2ppa/patches/patch-aa b/print/pnm2ppa/patches/patch-aa
new file mode 100644
index 00000000000..4a53b1fd452
--- /dev/null
+++ b/print/pnm2ppa/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/28 03:10:59 kei Exp $
+
+--- Makefile.orig Fri Nov 3 03:33:08 2000
++++ Makefile Fri Apr 27 17:00:51 2001
+@@ -2,16 +2,17 @@
+ # Makefile for pnm2ppa
+ #
+
+-INSTALLDIR=/usr/local/bin
+-CONFDIR=/etc
+-MANDIR=/usr/local/man/man1
++INSTALLDIR=${PREFIX}/bin
++CONFDIR=${PREFIX}/etc
++MANDIR=${PREFIX}/man/man1
+
+-CC=gcc
+-INSTALL=install
++#CC=gcc
++#INSTALL=install
+
+ # production build
+-CFLAGS=-Wall -pedantic -O2 -g -DNDEBUG
+-LDFLAGS=-lm
++CPPFLAGS=-I${PREFIX}/include
++CFLAGS=-Wall -pedantic -O2 -g -DNDEBUG
++LDFLAGS=-lm #-L${PREFIX}/lib -R${PREFIX}/lib
+ OBJS = pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o hash_ink.o gamma.o
+ SRC = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c hash_ink.c gamma.c
+
+@@ -89,23 +90,23 @@
+
+
+ install: pnm2ppa calibrate_ppa
+- $(INSTALL) -m 755 pnm2ppa $(INSTALLDIR)
+- $(INSTALLD) $(MANDIR)
+- $(INSTALL) -m 644 docs/en/pnm2ppa.1 $(MANDIR)
++ ${INSTALL_PROGRAM} -m 755 pnm2ppa $(INSTALLDIR)
++ ${INSTALL_MAN} -m 644 docs/en/pnm2ppa.1 $(MANDIR)
+ # development only - allows root to edit
+- $(INSTALL) -m 644 pnm2ppa.conf $(CONFDIR)
++ ${INSTALL_DATA} -m 644 pnm2ppa.conf $(CONFDIR)/pnm2ppa.conf.default
+ # calibration tool
+- $(INSTALL) -m 755 calibrate_ppa $(INSTALLDIR)
++ ${INSTALL_PROGRAM} -m 755 calibrate_ppa $(INSTALLDIR)
+ # final production - much tighter
+-# $(INSTALL) -m 444 pnm2ppa.conf $(CONFDIR)
+- @@echo
+- @@echo Now, edit /etc/pnm2ppa.conf to choose your printer
++# ${INSTALL_DATA} -m 444 pnm2ppa.conf $(CONFDIR)/pnm2ppa.conf.default
++ @${ECHO}
++ @${ECHO} Now, copy ${CONFDIR}/pnm2ppa.conf.default to /etc/pnm2ppa.conf
++ @${ECHO} and edit to choose your printer
+
+ uninstall:
+ rm -f $(INSTALLDIR)/pnm2ppa
+ rm -f $(INSTALLDIR)/calibrate_ppa
+ rm -f $(MANDIR)/pnm2ppa.1
+- rm -f $(CONFDIR)/pnm2ppa.conf
++ rm -f $(CONFDIR)/pnm2ppa.conf.default
+
+ pnm2ppa: $(OBJS)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o pnm2ppa $(OBJS)
diff --git a/print/pnm2ppa/pkg/DESCR b/print/pnm2ppa/pkg/DESCR
new file mode 100644
index 00000000000..44865bf14f9
--- /dev/null
+++ b/print/pnm2ppa/pkg/DESCR
@@ -0,0 +1,6 @@
+pnm2ppa, a PPM to PPA converter, creates output using the PPA (printer
+performance architecture) protocol. This protocol is used by some HP
+"Windows-only" printers, including the HP Deskjet 720C series, the HP
+DeskJet 820 series, and the HP DeskJet 1000 series. It has been
+tested on all three series, but your personal experience (positive or
+negative) is very much appreciated!
diff --git a/print/pnm2ppa/pkg/PLIST b/print/pnm2ppa/pkg/PLIST
new file mode 100644
index 00000000000..e603994f73f
--- /dev/null
+++ b/print/pnm2ppa/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/28 03:10:59 kei Exp $
+etc/pnm2ppa.conf.default
+bin/calibrate_ppa
+bin/pnm2ppa
+man/man1/pnm2ppa.1