aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2000-12-24 02:58:28 +0800
committerandreas <andreas@FreeBSD.org>2000-12-24 02:58:28 +0800
commit8a9dab14605df6797890f8262615c55c1a0507e1 (patch)
tree092553285fd247ff262cf09d0c9c8b7f277a591d /print
parent0f4d461e402bb2c0f013fe8f9988bf0defadfa67 (diff)
downloadfreebsd-ports-gnome-8a9dab14605df6797890f8262615c55c1a0507e1.tar.gz
freebsd-ports-gnome-8a9dab14605df6797890f8262615c55c1a0507e1.tar.zst
freebsd-ports-gnome-8a9dab14605df6797890f8262615c55c1a0507e1.zip
Update old apsfilter-stable with V 6.0.0 from new stable-branch.
Diffstat (limited to 'print')
-rw-r--r--print/apsfilter/Makefile63
-rw-r--r--print/apsfilter/distinfo1
-rw-r--r--print/apsfilter/pkg-comment1
-rw-r--r--print/apsfilter/pkg-descr21
-rw-r--r--print/apsfilter/pkg-plist28
-rw-r--r--print/apsfilter/scripts/configure175
6 files changed, 289 insertions, 0 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
new file mode 100644
index 000000000000..e58042163a68
--- /dev/null
+++ b/print/apsfilter/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: apsfilter
+# Date created: Tue Nov 14 18:29:48 MET 1995
+# Whom: Andreas Klemm <andreas@klemm.gtn.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= apsfilter
+PORTVERSION= 6.0.0
+PORTREVISION= 2
+CATEGORIES= print
+MASTER_SITES= http://www.apsfilter.org/download/
+
+MAINTAINER= andreas@FreeBSD.org
+
+.if defined(BATCH) && defined(APSFILTER_ALL)
+# Please note: this might be needed only in rare cases or for testing
+# all of apsfilters capabilities
+# ps emulator
+RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
+# all needed decompression utilities
+RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
+RUN_DEPENDS+= melt:${PORTSDIR}/archivers/freeze
+# all needed "xxx to ps" filter utilities
+RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
+RUN_DEPENDS+= acroread4:${PORTSDIR}/print/acroread4
+RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
+RUN_DEPENDS+= dvips:${PORTSDIR}/print/teTeX
+RUN_DEPENDS+= html2ps:${PORTSDIR}/print/html2ps-letter
+RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig
+# all possible remote printing support
+RUN_DEPENDS+= pap:${PORTSDIR}/net/netatalk
+RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
+.elif defined(BATCH)
+# ps emulator
+RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
+# most important "xxx to ps" filter utilities
+RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
+RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
+.endif
+
+USE_BZIP2= yes
+WRKSRC= ${WRKDIR}/apsfilter
+SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}"
+
+# make a2ps port happy in this early stage
+PAPERSIZE?=letter
+
+.if !defined(BATCH)
+pre-configure:
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
+post-clean:
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
+.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
+.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.endif
+.endif
+
+.include <bsd.port.mk>
diff --git a/print/apsfilter/distinfo b/print/apsfilter/distinfo
new file mode 100644
index 000000000000..4b77721903a3
--- /dev/null
+++ b/print/apsfilter/distinfo
@@ -0,0 +1 @@
+MD5 (apsfilter-6.0.0.tar.bz2) = 59ce27f6355ae1ca19c9e71a9b007b63
diff --git a/print/apsfilter/pkg-comment b/print/apsfilter/pkg-comment
new file mode 100644
index 000000000000..2f8669246336
--- /dev/null
+++ b/print/apsfilter/pkg-comment
@@ -0,0 +1 @@
+Magic print filter with auto file type recognition and duplex printing support
diff --git a/print/apsfilter/pkg-descr b/print/apsfilter/pkg-descr
new file mode 100644
index 000000000000..9e09e9856a55
--- /dev/null
+++ b/print/apsfilter/pkg-descr
@@ -0,0 +1,21 @@
+This is the new Apsfilter-STABLE release V 6.0.0
+
+This version has been in use since several months without trouble.
+So this version completely replaces the old -STABLE version 5.4.2.
+
+As usual report trouble / suggestions / comments to:
+
+ apsfilter-stable@apsfilter.org
+
+Apsfilter is a magic printfilter, that allows you to print different document
+types "automagically" without having to convert them manually into something
+which is understood by your lineprinter. Apsfilter supports lots of file and
+compression types: gzip, bzip, compress, freeze, pack, ASCII, BMP,
+Data (data,PCL,...), English, TeX DVI, FIG, GIF, Group 3 Fax, HTML, JPEG,
+Mail/News, PBM/PNM/PPM, PC Bitmap Data, PDF, Postscript(tm), raw, script
+(shell,..), Text, sunraster, tiff, roff (nroff, groff, troff) and lots
+more in V 6.0.0. Docu concerning that is in the pipeline ...
+
+Example: lpr -C duplex:high:presentation:glossy ascii.Z test.gif pic.tiff ...
+
+WWW: http://www.apsfilter.org/
diff --git a/print/apsfilter/pkg-plist b/print/apsfilter/pkg-plist
new file mode 100644
index 000000000000..942db44bc963
--- /dev/null
+++ b/print/apsfilter/pkg-plist
@@ -0,0 +1,28 @@
+share/apsfilter/SETUP
+share/apsfilter/bin/apsfilter
+share/apsfilter/bin/setup_dvips.sh
+share/apsfilter/setup/README
+share/apsfilter/setup/devices-5.50
+share/apsfilter/setup/devices-6.01
+share/apsfilter/setup/devices-6.50
+share/apsfilter/setup/printer-5.50
+share/apsfilter/setup/printer-6.01
+share/apsfilter/setup/printer-6.50
+share/apsfilter/setup/printer-addon
+share/apsfilter/setup/printer-ppa
+share/apsfilter/setup/printer-ps
+share/apsfilter/setup/test.ps
+share/apsfilter/template/README
+share/apsfilter/template/apsfilterrc
+share/doc/apsfilter/ANNOUNCE
+share/doc/apsfilter/FAQ
+share/doc/apsfilter/HOWTO-BUGREPORTS
+share/doc/apsfilter/LICENSE
+share/doc/apsfilter/README.TeX
+share/doc/apsfilter/TROUBLESHOOTING
+share/doc/apsfilter/paper
+@dirrm share/apsfilter/bin
+@dirrm share/apsfilter/setup
+@dirrm share/apsfilter/template
+@dirrm share/apsfilter
+@dirrm share/doc/apsfilter
diff --git a/print/apsfilter/scripts/configure b/print/apsfilter/scripts/configure
new file mode 100644
index 000000000000..b0373ff13056
--- /dev/null
+++ b/print/apsfilter/scripts/configure
@@ -0,0 +1,175 @@
+#! /bin/sh
+
+# $FreeBSD$
+
+if [ "$BATCH" != "yes" ]; then
+
+#
+# configure - apsfilter package dependency configuration
+#
+
+/usr/bin/dialog --title "supported file types" --clear \
+ --checklist "\n\
+Select file types you want to print:" -1 -1 14 \
+A4 "A4 papersize" ON \
+LETTER "letter papersize" OFF \
+LETTERDJ "letter + special DeskJet adjustements" OFF \
+GS "Postscript for non-PS printer, needs X11" ON \
+GS_PDF_CRYPT "print encrypted PDF files using gs" ON \
+PSUTILS "for pseudo duplex printing + paper handling" ON \
+A2PS "ASCII files in different styles/orientation" ON \
+ACROREAD4 "PDF files, needs Linux emulation" ON \
+CONVERT "support for lots of graphic file formats" ON \
+DVIPS "TeX DVI files" OFF \
+FIG2DEV "XFIG drawings" OFF \
+HTML2PS "HTML documents" OFF \
+TROFF "Troff documents" OFF \
+ATALK "remote printing on AppleTalk remote printer" OFF \
+SAMBA "remote printing on Windows remote printer" OFF \
+BZIP2 "print bunzip2 compressed documents" OFF \
+FREEZE "print freeze compressed documents" OFF \
+2> /tmp/apsfilter-checklist.$$
+
+retval=$?
+
+if [ -s /tmp/apsfilter-checklist.$$ ]; then
+ set `cat /tmp/apsfilter-checklist.$$`
+fi
+rm -f /tmp/apsfilter-checklist.$$
+
+case $retval in
+ 0) if [ -z "$*" ]; then
+ echo "Nothing selected"
+ fi
+ ;;
+ 1) echo "Cancel pressed."
+ exit 1
+ ;;
+esac
+
+/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
+exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+
+while [ "$1" ]; do
+ case $1 in
+ \"A4\")
+ PAPERSIZE=a4
+ echo "PAPERSIZE=a4"
+ ;;
+ \"LETTER\")
+ PAPERSIZE=letter
+ echo "PAPERSIZE=letter"
+ ;;
+ \"LETTERDJ\")
+ PAPERSIZE=letterdj
+ echo "PAPERSIZE=letterdj"
+ ;;
+ \"GS\")
+ echo RUN_DEPENDS+=gs:${PORTSDIR}/print/ghostscript6
+ ;;
+ \"GS_PDF_CRYPT\")
+ echo RUN_DEPENDS+=gs:${PORTSDIR}/print/ghostscript6
+ echo PDFENCRYPT=YES
+ ;;
+ \"PSUTILS\")
+ case $PAPERSIZE in
+ letter)
+ echo RUN_DEPENDS+=psnup:${PORTSDIR}/print/psutils-letter
+ ;;
+ letterdj)
+ echo RUN_DEPENDS+=psnup:${PORTSDIR}/print/psutils-letter
+ ;;
+ a4)
+ echo RUN_DEPENDS+=psnup:${PORTSDIR}/print/psutils-a4
+ ;;
+ esac
+ ;;
+ \"A2PS\")
+ case $PAPERSIZE in
+ letter)
+ echo RUN_DEPENDS+=a2ps:${PORTSDIR}/print/a2ps-letter
+ ;;
+ letterdj)
+ echo RUN_DEPENDS+=a2ps:${PORTSDIR}/print/a2ps-letterdj
+ ;;
+ a4)
+ echo RUN_DEPENDS+=a2ps:${PORTSDIR}/print/a2ps-a4
+ ;;
+ esac
+ ;;
+ \"ACROREAD4\")
+ echo RUN_DEPENDS+=acroread4:${PORTSDIR}/print/acroread4
+ ;;
+ \"CONVERT\")
+ echo RUN_DEPENDS+=convert:${PORTSDIR}/graphics/ImageMagick
+ ;;
+ \"DVIPS\")
+ echo RUN_DEPENDS+=dvips:${PORTSDIR}/print/teTeX
+ ;;
+ \"FIG2DEV\")
+ echo RUN_DEPENDS+=fig2dev:${PORTSDIR}/print/transfig
+ ;;
+ \"HTML2PS\")
+ case $PAPERSIZE in
+ letter)
+ echo RUN_DEPENDS+=html2ps:${PORTSDIR}/print/html2ps-letter
+ ;;
+ letterdj)
+ echo RUN_DEPENDS+=html2ps:${PORTSDIR}/print/html2ps-letter
+ ;;
+ a4)
+ echo RUN_DEPENDS+=html2ps:${PORTSDIR}/print/html2ps-a4
+ ;;
+ esac
+ ;;
+ \"TROFF\")
+ TROFF=YES
+ ;;
+ \"ATALK\")
+ echo RUN_DEPENDS+=pap:${PORTSDIR}/net/netatalk
+ ;;
+ \"SAMBA\")
+ echo RUN_DEPENDS+=smbclient:${PORTSDIR}/net/samba
+ ;;
+ \"BZIP2\")
+ echo RUN_DEPENDS+=bunzip2:${PORTSDIR}/archivers/bzip2
+ ;;
+ \"FREEZE\")
+ echo RUN_DEPENDS+=smbclient:${PORTSDIR}/archivers/freeze
+ ;;
+ esac
+ shift
+done
+
+fi # if $BATCH
+
+# if batch, then start creating Makefile.inc here
+if [ "$BATCH" = "yes" ]; then
+ /bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
+ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+fi
+echo "post-install:"
+ echo " @\${ECHO} \"========================================================\""
+ echo " @\${ECHO} \"************ Post Installation Tasks *******************\""
+ echo " @\${ECHO} \"========================================================\""
+if [ $TROFF ]
+then
+ echo " @\${ECHO} \"If running FreeBSD < 4.0 and you want to print troff \""
+ echo " @\${ECHO} \"files then you have to install the grog utility \""
+ echo " @\${ECHO} \"from the groff sources: \""
+ echo " @\${ECHO} \" cp /usr/src/contrib/groff/grog/grog.sh /usr/bin/grog\""
+ echo " @\${ECHO} \" chmod 555 /usr/bin/grog \""
+ echo " @\${ECHO} \"--------------------------------------------------------\""
+fi
+ echo " @\${ECHO} \"*** Please Note *** \""
+ echo " @\${ECHO} \"To enable so called CLASS support without printing \""
+ echo " @\${ECHO} \"the banner page (/etc/printcap: :sh:) \""
+ echo " @\${ECHO} \"apply the patch for lpr.c, see file INSTALL !!! \""
+ echo " @\${ECHO} \"--------------------------------------------------------\""
+ echo " @\${ECHO} \"*** Printer installation / apsfilter setup *** \""
+ echo " @\${ECHO} \" cd ${PREFIX}/share/apsfilter; ./SETUP \""
+ echo " @\${ECHO} \"--------------------------------------------------------\""
+ echo " @\${ECHO} \"*** In any case of trouble please read *** \""
+ echo " @\${ECHO} \" FAQ, HOWTO-BUGREPORTS, TROUBLESHOOTING \""
+ echo " @\${ECHO} \" under ${PREFIX}/share/doc/apsfilter/ \""
+ echo " @\${ECHO} \" or visit http://www.apsfilter.org/support.html \""