aboutsummaryrefslogtreecommitdiff
path: root/mail/nmh
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-07 16:53:45 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-07 16:53:45 +0000
commitb7df0651651ef059fd4db24d7b77113e72ad6c15 (patch)
treee492c56fa7379da1ca224d6c3b1e9a31bdf1f7d9 /mail/nmh
parentf391ca611e4a642fc3b0e7df30f4a60b63f60b71 (diff)
downloadports-b7df0651651ef059fd4db24d7b77113e72ad6c15.tar.gz
ports-b7df0651651ef059fd4db24d7b77113e72ad6c15.zip
- Convert to OptionsNG
- Trim header Reviewed by: bapt
Notes
Notes: svn path=/head/; revision=313599
Diffstat (limited to 'mail/nmh')
-rw-r--r--mail/nmh/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index d6814171caab..be8b0cd3f38e 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: nmh
-# Date created: 07 Feb 1999
-# Whom: Scott Blachowicz <scott+ports@sabami.seaslug.org>
-#
+# Created by: Scott Blachowicz <scott+ports@sabami.seaslug.org>
# $FreeBSD$
#
# Makefile variables of interest:
@@ -94,13 +91,14 @@ CONFIGURE_ARGS+= ${NMH_EXTRA_CONFIGURE_ARGS}
MAKE_JOBS_UNSAFE= yes
CFLAGS+= -D${NMH_LOCKING} -O
-OPTIONS= SASL2 "Cyrus SASL2" OFF
-
-.include <bsd.port.pre.mk>
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
-.if defined(WITH_SASL2)
+OPTIONS_DEFINE= SASL2
+SASL2_DESC= Cyrus SASL2 support
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSASL2}
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --with-cyrus-sasl
CONFIGURE_ENV+= LDFLAGS=-L"${PREFIX}"/lib CPPFLAGS=" -I${PREFIX}/include"
@@ -130,4 +128,4 @@ post-patch:
post-install:
@PKG_PREFIX='${PREFIX}' ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>