summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1999-09-25 17:11:21 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1999-09-25 17:11:21 +0000
commit69cb9d58d366dd6925a96ef37e2a9a855a48cdc7 (patch)
treebe4d1f8fd751ebbf4874fefab93c61ae479e2546 /print
parentUpdate to version 1.0pre3 (diff)
added configure script with dialog utility like in apache13-php3 port,
that offers the user a menue, where he enters - PAPERSIZE - file type support for apsfilter
Notes
Notes: svn path=/head/; revision=21945
Diffstat (limited to 'print')
-rw-r--r--print/apsfilter/Makefile47
-rw-r--r--print/apsfilter6/Makefile47
2 files changed, 46 insertions, 48 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index c6062a40799f..e902a0bede1a 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -12,36 +12,35 @@ MASTER_SITES= http://www.FreeBSD.org/~andreas/apsfilter/download/
MAINTAINER= andreas@FreeBSD.org
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript55 \
- html2ps:${PORTSDIR}/print/html2ps-letter \
- transfig:${PORTSDIR}/print/transfig \
- cjpeg:${PORTSDIR}/graphics/jpeg \
- anytopnm:${PORTSDIR}/graphics/netpbm \
- bunzip2:${PORTSDIR}/archivers/bzip2 \
- recode:${PORTSDIR}/converters/recode \
- a2ps:${PORTSDIR}/print/a2ps-letter \
- psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS= recode:${PORTSDIR}/converters/recode
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/apsfilter
# make a2ps port happy in this early stage
-PAPERSIZE?= letter
-.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj
-.BEGIN:
- @${ECHO}
- @${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
- @${ECHO}
- @${ECHO} "Must specify PAPERSIZE as one of a4, letter, or letterdj."
- @${ECHO} "letterdj allows a slightly larger margins for DeskJets."
- @${FALSE}
+PAPERSIZE?=letter
+
+pre-configure:
+ rm -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
+# This was copied from bsd.port.mk because a missing post-clean target
+# is needed
+clean:
+.if !defined(NOCLEANDEPENDS)
+ @${MAKE} clean-depends
.endif
+ @${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
+ @if [ -d ${WRKDIR} ]; then \
+ if [ -w ${WRKDIR} ]; then \
+ ${RM} -rf ${WRKDIR}; \
+ else \
+ ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \
+ fi; \
+ fi
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
-post-install:
- @${MKDIR} ${PREFIX}/apsfilter/filter
- @touch ${PREFIX}/apsfilter/filter/.keep_me
- @${ECHO} ">>>>> Post installation task: <<<<<"
- @${ECHO} "Printer installation:"
- @${ECHO} " cd ${PREFIX}/apsfilter; ./SETUP"
+.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
+.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.endif
.include <bsd.port.mk>
diff --git a/print/apsfilter6/Makefile b/print/apsfilter6/Makefile
index c6062a40799f..e902a0bede1a 100644
--- a/print/apsfilter6/Makefile
+++ b/print/apsfilter6/Makefile
@@ -12,36 +12,35 @@ MASTER_SITES= http://www.FreeBSD.org/~andreas/apsfilter/download/
MAINTAINER= andreas@FreeBSD.org
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript55 \
- html2ps:${PORTSDIR}/print/html2ps-letter \
- transfig:${PORTSDIR}/print/transfig \
- cjpeg:${PORTSDIR}/graphics/jpeg \
- anytopnm:${PORTSDIR}/graphics/netpbm \
- bunzip2:${PORTSDIR}/archivers/bzip2 \
- recode:${PORTSDIR}/converters/recode \
- a2ps:${PORTSDIR}/print/a2ps-letter \
- psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS= recode:${PORTSDIR}/converters/recode
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/apsfilter
# make a2ps port happy in this early stage
-PAPERSIZE?= letter
-.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj
-.BEGIN:
- @${ECHO}
- @${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
- @${ECHO}
- @${ECHO} "Must specify PAPERSIZE as one of a4, letter, or letterdj."
- @${ECHO} "letterdj allows a slightly larger margins for DeskJets."
- @${FALSE}
+PAPERSIZE?=letter
+
+pre-configure:
+ rm -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
+# This was copied from bsd.port.mk because a missing post-clean target
+# is needed
+clean:
+.if !defined(NOCLEANDEPENDS)
+ @${MAKE} clean-depends
.endif
+ @${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
+ @if [ -d ${WRKDIR} ]; then \
+ if [ -w ${WRKDIR} ]; then \
+ ${RM} -rf ${WRKDIR}; \
+ else \
+ ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \
+ fi; \
+ fi
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
-post-install:
- @${MKDIR} ${PREFIX}/apsfilter/filter
- @touch ${PREFIX}/apsfilter/filter/.keep_me
- @${ECHO} ">>>>> Post installation task: <<<<<"
- @${ECHO} "Printer installation:"
- @${ECHO} " cd ${PREFIX}/apsfilter; ./SETUP"
+.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
+.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.endif
.include <bsd.port.mk>