Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2017 15:39:33 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r442393 - head/science/metaf2xml
Message-ID:  <201706021539.v52FdX4c094780@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Fri Jun  2 15:39:33 2017
New Revision: 442393
URL: https://svnweb.freebsd.org/changeset/ports/442393

Log:
  Convert to options helper
  
  - Remove outdated PERL_LEVEL check

Modified:
  head/science/metaf2xml/Makefile

Modified: head/science/metaf2xml/Makefile
==============================================================================
--- head/science/metaf2xml/Makefile	Fri Jun  2 15:39:28 2017	(r442392)
+++ head/science/metaf2xml/Makefile	Fri Jun  2 15:39:33 2017	(r442393)
@@ -12,6 +12,8 @@ COMMENT=	Parse and Decode METAR, TAF, SYNOP, BUOY and 
 LICENSE=	GPLv2 GPLv3
 LICENSE_COMB=	dual
 
+RUN_DEPENDS=	p5-CGI>0:www/p5-CGI
+
 OPTIONS_DEFINE=	APACHE DOCS
 OPTIONS_SUB=	yes
 APACHE_DESC=	Install Apache config file for metaf2xml (depends on Apache)
@@ -34,17 +36,7 @@ SHEBANG_FILES=	metaf.pl metaf2xml.pl metafsrc2raw.pl
 
 PLIST_SUB=	VERSION=${PORTVERSION}
 
-.include <bsd.port.pre.mk>
+APACHE_MAKE_ARGS=	CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes
+APACHE_USE=		APACHE_RUN=22+
 
-.if ${PERL_LEVEL} >= 502200
-RUN_DEPENDS+=	p5-CGI>0:www/p5-CGI
-.endif
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MAPACHE}
-USE_APACHE_RUN=	22+
-MAKE_ARGS+=	CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes
-.endif
-
-.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?201706021539.v52FdX4c094780>