Index: head/print/apsfilter/Makefile =================================================================== --- head/print/apsfilter/Makefile (revision 316679) +++ head/print/apsfilter/Makefile (revision 316680) @@ -1,141 +1,141 @@ # Created by: Andreas Klemm # $FreeBSD$ PORTNAME= apsfilter PORTVERSION= 7.2.8 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= print MASTER_SITES= http://www.apsfilter.org/download/ MAINTAINER= ports@FreeBSD.org COMMENT= Magic print filter with print preview, duplex printing, and more DIST_SUBDIR= apsfilter USE_SUBMAKE= yes SUB_FILES+= pkg-message SAMBA_PORT?= net/samba36 # special arrangement for package building, build stuff without X11 # to make memory footprint of apsfilter package smaller .if defined(BATCH) && defined(PACKAGE_BUILDING) NO_X= yes .endif .if defined(WITHOUT_X11) # XXX Hack. If you've done something like "-DWITHOUT_X11" on the command line # (instead of WITHOUT_X11=true, or similar) gmake won't pick it up. So make # sure that NO_X is defined *and* has a value. MAKE_ENV+= NO_X=true .endif USE_GHOSTSCRIPT_RUN= yes # # hint: for batch mode you can now draw the following decisions # - build and install most important filter utilities # that don't require X # - APSFILTER_ALL build and install all supported filter utilities # - WITHOUT_X11 toggles not to build tools that need X11, even if # APSFILTER_ALL is set # - PAPERSIZE Use PAPERSIZE as in a2ps port, default to letter. PAPERSIZE?= letter .if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj .BEGIN: @${ECHO_CMD} @${ECHO_CMD} "PAPERSIZE incorrect value: ${PAPERSIZE}." @${ECHO_CMD} @${ECHO_CMD} "Must specify PAPERSIZE as one of a4, letter, or letterdj." @${ECHO_CMD} "letterdj allows a slightly larger margins for DeskJets." @${FALSE} .endif .if defined(BATCH) && defined(APSFILTER_ALL) # # Build and install all filter apsfilter knows about (rather expensive) # # all needed decompression utilities RUN_DEPENDS+= melt:${PORTSDIR}/archivers/freeze RUN_DEPENDS+= lzop:${PORTSDIR}/archivers/lzop # all needed "ASCII to ps" filter utilities -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-${PAPERSIZE} +RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-${PAPERSIZE} RUN_DEPENDS+= mpage:${PORTSDIR}/print/mpage RUN_DEPENDS+= recode:${PORTSDIR}/converters/recode # all needed "ARCHIVE" extraction utilities RUN_DEPENDS+= arc:${PORTSDIR}/archivers/arc RUN_DEPENDS+= cabextract:${PORTSDIR}/archivers/cabextract RUN_DEPENDS+= lha:${PORTSDIR}/archivers/lha RUN_DEPENDS+= rar:${PORTSDIR}/archivers/rar RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm RUN_DEPENDS+= unarj:${PORTSDIR}/archivers/unarj RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip RUN_DEPENDS+= zoo:${PORTSDIR}/archivers/zoo # all needed "xxx to ps" filter utilities RUN_DEPENDS+= fitstopnm:${PORTSDIR}/graphics/netpbm RUN_DEPENDS+= htmldoc:${PORTSDIR}/textproc/htmldoc RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils .if !defined(WITHOUT_X11) # "xxx to ps" filter utilities that require X RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick RUN_DEPENDS+= dvips:${PORTSDIR}/print/dvipsk-tetex RUN_DEPENDS+= wmf2eps:${PORTSDIR}/graphics/libwmf RUN_DEPENDS+= sk2ps:${PORTSDIR}/graphics/skencil RUN_DEPENDS+= tgif:${PORTSDIR}/graphics/tgif RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig # filter utilities for playing audio files via line printer scheduler RUN_DEPENDS+= mpg321:${PORTSDIR}/audio/mpg321 RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools RUN_DEPENDS+= wavplay:${PORTSDIR}/audio/wavplay .else # "xxx to ps" filter utilities that don't require X # XXX needs more work .endif # all possible remote printing support RUN_DEPENDS+= pap:${PORTSDIR}/net/netatalk RUN_DEPENDS+= smbclient:${PORTSDIR}/${SAMBA_PORT} .elif defined(BATCH) # # in normal batch/portbuilding mode (without building all) # don't build too many dependencies # since apsfilter should fit easily on installation CD 1... # # most important "xxx to ps" filter utilities -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-${PAPERSIZE} +RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils .endif # needed for aps2file RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash # HP IJS driver is not automatically part of ghostscript port anymore RUN_DEPENDS+= hpijs:${PORTSDIR}/print/hpijs MAN1= apsfilter.1 aps2file.1 apsfilter-bug.1 apspreview.1 MAN5= apsfilterrc.5 HAS_CONFIGURE= yes USE_BZIP2= yes WRKSRC= ${WRKDIR}/apsfilter SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" GHOSTSCRIPT_PORT="${GHOSTSCRIPT_PORT}" CONFIGURE_ARGS= --prefix=${PREFIX} .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 post-install: @${CAT} ${PKGMESSAGE} .include Index: head/print/apsfilter/scripts/configure =================================================================== --- head/print/apsfilter/scripts/configure (revision 316679) +++ head/print/apsfilter/scripts/configure (revision 316680) @@ -1,169 +1,149 @@ #! /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_NO_X11 "Postscript for non-PS printer, no X11" OFF \ 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 \ 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 \ MP3 "play MP3 audio files on local or remote queue" OFF \ OGG "play Ogg audio files on local or remote queue" OFF \ WAV "play wav audio files on local or remote queue" 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}/${GHOSTSCRIPT_PORT} ;; \"GS_NO_X11\") echo WITHOUT_X11=yes case ${GHOSTSCRIPT_PORT} in *-nox11) _GSSUF="" ;; *) _GSSUF=-nox11 ;; esac echo RUN_DEPENDS+=gs:${PORTSDIR}/${GHOSTSCRIPT_PORT}${_GSSUF} ;; \"GS_PDF_CRYPT\") 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 + echo RUN_DEPENDS+=psnup:${PORTSDIR}/print/psutils ;; \"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 + echo RUN_DEPENDS+=a2ps:${PORTSDIR}/print/a2ps ;; \"CONVERT\") echo RUN_DEPENDS+=convert:${PORTSDIR}/graphics/ImageMagick ;; \"DVIPS\") echo RUN_DEPENDS+=dvips:${PORTSDIR}/print/dvipsk-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/samba3 ;; \"BZIP2\") ;; \"FREEZE\") echo RUN_DEPENDS+=melt:${PORTSDIR}/archivers/freeze ;; \"MP3\") echo RUN_DEPENDS+=mpg321:${PORTSDIR}/audio/mpg321 ;; \"OGG\") echo RUN_DEPENDS+=ogg123:${PORTSDIR}/audio/vorbis-tools ;; \"WAV\") echo RUN_DEPENDS+=wavplay:${PORTSDIR}/audio/wavplay ;; 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