Date: Wed, 20 Feb 2013 23:04:38 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312682 - head/mail/mdpop3d Message-ID: <201302202304.r1KN4cDm066507@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Wed Feb 20 23:04:37 2013 New Revision: 312682 URL: http://svnweb.freebsd.org/changeset/ports/312682 Log: - convert to optionsNG - convert Makefile header Modified: head/mail/mdpop3d/Makefile Modified: head/mail/mdpop3d/Makefile ============================================================================== --- head/mail/mdpop3d/Makefile Wed Feb 20 22:59:10 2013 (r312681) +++ head/mail/mdpop3d/Makefile Wed Feb 20 23:04:37 2013 (r312682) @@ -1,7 +1,4 @@ -# New ports collection makefile for: mdpop3d -# Date created: 2 July 2006 -# Whom: Alexander Logvinov <info@logvinov.com> -# +# Created by: Alexander Logvinov <info@logvinov.com> # $FreeBSD$ PORTNAME= mdpop3d @@ -16,15 +13,15 @@ PLIST_FILES= libexec/mdpop3d MAN8= mdpop3d.8 MANCOMPRESSED= no -OPTIONS= PAM "Build with PAM support" off \ - APOP "Build with APOP command support (requires PAM)" off +OPTIONS_DEFINE= PAM APOP +APOP_DESC= Build with APOP command support (requires PAM) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> post-patch: @${REINPLACE_CMD} -e 's|LIBS = -lpam -ldl|LIBS = -lpam|;/^CC[[:blank:]]*=/d' \ ${WRKSRC}/Makefile -.if defined(WITHOUT_PAM) +.if ! ${PORT_OPTIONS:MPAM} @${REINPLACE_CMD} -e 's|LIBS = -lpam|LIBS = -lcrypt|' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|DEFS = -DUSE_PAM|#DEFS = -DUSE_PAM|' \ @@ -32,7 +29,7 @@ post-patch: @${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \ ${WRKSRC}/Makefile .endif -.if defined(WITHOUT_APOP) +.if ! ${PORT_OPTIONS:MAPOP} @${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \ ${WRKSRC}/Makefile .endif @@ -41,4 +38,4 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec ${INSTALL_MAN} ${WRKSRC}/mdpop3d.8 ${PREFIX}/man/man8 -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302202304.r1KN4cDm066507>