From 72eda7b693c19108090f5d246b72ed46ec58cbe8 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 20 Feb 2013 20:11:08 +0000 Subject: [PATCH] Convert to new options framework --- mail/heirloom-mailx/Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mail/heirloom-mailx/Makefile b/mail/heirloom-mailx/Makefile index 36efc8c3b6f5..f9affc100dfe 100644 --- a/mail/heirloom-mailx/Makefile +++ b/mail/heirloom-mailx/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: nail -# Date created: 20 October 2000 -# Whom: Kris Kennaway -# +# Created by: Kris Kennaway # $FreeBSD$ -# PORTNAME= mailx PORTVERSION= 12.4 @@ -15,7 +11,7 @@ PKGNAMEPREFIX= heirloom- MAINTAINER= ports@FreeBSD.org COMMENT= BSD mail utility with MIME, IMAP, POP3, SMTP, and S/MIME extensions -OPTIONS= IPV6 "Enable IPv6 Support" On +OPTIONS_DEFINE= IPV6 DOCS CONFLICTS= mailx-[0-9]* @@ -40,9 +36,9 @@ PLIST_FILES= bin/${PORTNAME} \ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.include +.include -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIPV6} MAKE_ARGS+= IPv6="-DHAVE_IPv6_FUNCS" .endif @@ -53,11 +49,11 @@ do-install: .if !exists(${PREFIX}/etc/nail.rc) ${INSTALL_DATA} ${WRKSRC}/nail.rc ${PREFIX}/etc .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor .endif -.include +.include