# Created by: Gea-Suan Lin # $FreeBSD$ PORTNAME= metaf2xml PORTVERSION= 2.0 CATEGORIES= science perl5 MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Parse and Decode METAR, TAF, SYNOP, BUOY and AMDAR and Write as XML LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual OPTIONS_DEFINE= APACHE DOCS OPTIONS_SUB= yes APACHE_DESC= Install Apache config file for metaf2xml (depends on Apache) MAKE_ARGS= CGI_BIN_DIR=${WWWDIR}/cgi-bin \ CGI_DATA_DIR=/var/tmp \ CGI_LOG_DIR=/var/tmp \ HTDOCS_DIR=${WWWDIR}/htdocs \ METAF2XML=${PREFIX} \ METAF2XML_LIB=${PREFIX}/${SITE_PERL_REL} \ METAF2XML_DOC=${DOCSDIR} \ METAF2XML_MAN=${PREFIX}/man \ METAF2XML_XSL=${DATADIR} \ BUILD_ROOT=${STAGEDIR} NO_BUILD= yes NO_ARCH= yes USES= perl5 shebangfix tar:tgz USE_PERL5= install run SHEBANG_FILES= metaf.pl metaf2xml.pl metafsrc2raw.pl PLIST_SUB= VERSION=${PORTVERSION} .include .if ${PERL_VER} >= 5.22 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 .include