summaryrefslogtreecommitdiff
path: root/print/apsfilter
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1999-11-08 19:35:44 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1999-11-08 19:35:44 +0000
commit3ffc360199c3054ee580536f124cae7f5fc194d6 (patch)
tree28994d8e256372d90c1f4e030a606107dd0c1ddb /print/apsfilter
parentAdd dependency to Mesa. (diff)
changed apsfilter port, so that Satoshi INDEX building
scripts can create the complete list of apsfilter port dependencies. So I removed the "BATCH case" from configure to the more suitable area/form in Makefile of the port.
Notes
Notes: svn path=/head/; revision=22970
Diffstat (limited to 'print/apsfilter')
-rw-r--r--print/apsfilter/Makefile14
-rw-r--r--print/apsfilter/scripts/configure24
2 files changed, 15 insertions, 23 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index e902a0bede1a..3a0c519e9002 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -13,6 +13,16 @@ MASTER_SITES= http://www.FreeBSD.org/~andreas/apsfilter/download/
MAINTAINER= andreas@FreeBSD.org
RUN_DEPENDS= recode:${PORTSDIR}/converters/recode
+.if defined(BATCH)
+RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript55
+RUN_DEPENDS+= html2ps:${PORTSDIR}/print/html2ps-letter
+RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig
+RUN_DEPENDS+= cjpeg:${PORTSDIR}/graphics/jpeg
+RUN_DEPENDS+= anytopnm:${PORTSDIR}/graphics/netpbm
+RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
+RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
+RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
+.endif
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/apsfilter
@@ -20,8 +30,9 @@ WRKSRC= ${WRKDIR}/apsfilter
# make a2ps port happy in this early stage
PAPERSIZE?=letter
+.if !defined(BATCH)
pre-configure:
- rm -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
# This was copied from bsd.port.mk because a missing post-clean target
# is needed
@@ -42,5 +53,6 @@ clean:
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
+.endif
.include <bsd.port.mk>
diff --git a/print/apsfilter/scripts/configure b/print/apsfilter/scripts/configure
index 5ccfcaec068a..d29d1721adbb 100644
--- a/print/apsfilter/scripts/configure
+++ b/print/apsfilter/scripts/configure
@@ -2,32 +2,12 @@
# $FreeBSD$
+# runs if BATCH is NOT defined
+
#
# configure - apsfilter package dependency configuration
#
-if [ "${BATCH}" ]; then
- /bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
- : > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript55" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= html2ps:${PORTSDIR}/print/html2ps-letter" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= cjpeg:${PORTSDIR}/graphics/jpeg" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= anytopnm:${PORTSDIR}/graphics/netpbm" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- echo "RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter" \
- >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit
-fi
-
/usr/bin/dialog --title "supported file types" --clear \
--checklist "\n\
Select file types you want to print:" -1 -1 14 \