From 6b4310d64f8c2dd0fef35297ba9b842889d453ac Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 20 Jul 2012 22:08:55 +0000 Subject: [PATCH] Convert to new options framework --- print/pnm2ppa/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile index 54b35b61e7f0..99daafe9d743 100644 --- a/print/pnm2ppa/Makefile +++ b/print/pnm2ppa/Makefile @@ -14,7 +14,8 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Convert PNM images to PPA for some HP printers -OPTIONS= A4SIZE "Set A4 (not Letter) as a default paper size" off +OPTIONS_DEFINE= A4SIZE +A4SIZE_DESC= Set A4 (not Letter) as a default paper size USE_GHOSTSCRIPT_RUN= yes USE_GMAKE= yes @@ -28,7 +29,7 @@ PKGDEINSTALL= ${PKGINSTALL} .include -.if defined(A4) || defined(WITH_A4SIZE) +.if defined(A4) || !empty(PORT_OPTIONS:MA4SIZE} RUN_DEPENDS= enscript:${PORTSDIR}/print/enscript-a4 .else RUN_DEPENDS= enscript:${PORTSDIR}/print/enscript-letter