From 71e5bb2abe92b87556f6c55acc3c50962d0b4524 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 6 Jan 2013 21:33:21 +0000 Subject: Convert jlaffayes's ports to new options framework Approved by: jlaffaye --- textproc/discount/Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'textproc/discount') diff --git a/textproc/discount/Makefile b/textproc/discount/Makefile index c9c18ba80066..e62f6ed92209 100644 --- a/textproc/discount/Makefile +++ b/textproc/discount/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: discount -# Date created: 2009-04-22 -# Whom: Julien Laffaye -# +# Created by: Julien Laffaye # $FreeBSD$ -# PORTNAME= discount PORTVERSION= 2.1.1.3 @@ -47,21 +43,25 @@ PLIST_FILES= bin/markdown \ lib/libmarkdown.a \ include/mkdio.h -OPTIONS= EXTRA "Enable all extra features" on \ - TAB8 "Use a tabstop of 8 (default is 4)" on \ - SAMPLES "Install sample programs" off -.include +OPTIONS_DEFINE= EXTRA TAB8 SAMPLES +OPTIONS_DEFAULT= EXTRA TAB8 -.ifdef (WITH_EXTRA) +EXTRA_DESC= Enable all extra features +TAB8_DESC= Use a tabstop of 8 (default is 4) +SAMPLES_DESC= Install sample programs + +.include + +.if ${PORT_OPTIONS:MEXTRA} CONFIGURE_ARGS+=--enable-dl-tag \ --enable-all-features .endif -.ifdef (WITH_TAB8) +.if ${PORT_OPTIONS:MTAB8} CONFIGURE_ARGS+=--with-tabstops=8 .endif -.ifdef (WITH_SAMPLES) +.if ${PORT_OPTIONS:MSAMPLES} INSTALL_TARGET+=install.samples PLIST_FILES+= bin/makepage \ bin/mkd2html \ @@ -72,4 +72,4 @@ MAN1+= makepage.1 \ .endif -.include +.include -- cgit v1.2.3