From 84db1d4e78dcba4bc5f066e685f59f64b8845d9c Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 4 Jun 2013 10:32:49 +0000 Subject: Convert to new options framework --- mail/py-ppolicy/Makefile | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'mail/py-ppolicy') diff --git a/mail/py-ppolicy/Makefile b/mail/py-ppolicy/Makefile index 94aa3827e680..13932866f92d 100644 --- a/mail/py-ppolicy/Makefile +++ b/mail/py-ppolicy/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: py-ppolicy -# Date created: 27 November 2008 -# Whom: Chifeng QU -# +# Created by: Chifeng QU # $FreeBSD$ -# PORTNAME= ppolicy PORTVERSION= 2.6.6 @@ -27,24 +23,23 @@ DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME} SUB_LIST= PYTHON_CMD=${PYTHON_CMD} SUB_FILES= pkg-message -OPTIONS= GeoIP "Use GeoIP support" On \ - LDAP "Use LDAP support" On \ - MYSQL "Use MySQL support" Off +OPTIONS_DEFINE= GEOIP LDAP MYSQL DOCS +OPTIONS_DEFAULT= GEOIP LDAP -.include +.include -.if defined(WITH_GeoIP) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP +.if ${PORT_OPTIONS:MGEOIP} +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GEOIP.so:${PORTSDIR}/net/py-GEOIP .endif -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb .endif -.if defined(WITH_LDAP) +.if ${PORT_OPTIONS:MLDAP} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ldap2>=2.3.1:${PORTSDIR}/net/py-ldap2 .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/MODULES ${DOCSDIR} @@ -57,4 +52,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/ppolicy.tap ${PREFIX}/sbin @${CAT} ${PKGMESSAGE} -.include +.include -- cgit