From 69cb9d58d366dd6925a96ef37e2a9a855a48cdc7 Mon Sep 17 00:00:00 2001 From: Andreas Klemm Date: Sat, 25 Sep 1999 17:11:21 +0000 Subject: 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 --- print/apsfilter/Makefile | 47 +++++++++++++++++++++++------------------------ print/apsfilter6/Makefile | 47 +++++++++++++++++++++++------------------------ 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 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 -- cgit v1.2.3