From 82c97bec20aafd5e6dad02c61a3f0e17a85ac657 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 2 Jun 2017 15:39:33 +0000 Subject: Convert to options helper - Remove outdated PERL_LEVEL check --- science/metaf2xml/Makefile | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'science/metaf2xml') diff --git a/science/metaf2xml/Makefile b/science/metaf2xml/Makefile index 5b462cb6d890..82b8ee5247b5 100644 --- a/science/metaf2xml/Makefile +++ b/science/metaf2xml/Makefile @@ -12,6 +12,8 @@ COMMENT= Parse and Decode METAR, TAF, SYNOP, BUOY and AMDAR and Write as XML 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 - -.if ${PERL_LEVEL} >= 502200 -RUN_DEPENDS+= p5-CGI>0:www/p5-CGI -.endif - -.include - -.if ${PORT_OPTIONS:MAPACHE} -USE_APACHE_RUN= 22+ -MAKE_ARGS+= CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes -.endif +APACHE_MAKE_ARGS= CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes +APACHE_USE= APACHE_RUN=22+ -.include +.include -- cgit v1.2.3