aboutsummaryrefslogtreecommitdiffstats
path: root/mail/nmh
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-08 00:53:45 +0800
committermiwi <miwi@FreeBSD.org>2013-03-08 00:53:45 +0800
commit01586cc2cd8a893e9fb607884b766059ae2a287d (patch)
treee492c56fa7379da1ca224d6c3b1e9a31bdf1f7d9 /mail/nmh
parenta526e1d7b60fba52822780fd8712e159d1c7b55c (diff)
downloadfreebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.tar.gz
freebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.tar.zst
freebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.zip
- Convert to OptionsNG
- Trim header Reviewed by: bapt
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>