2014-06-30 05:44:47 +00:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= metaf2xml
|
2017-06-25 16:19:05 +00:00
|
|
|
PORTVERSION= 2.2
|
2017-06-29 19:22:05 +00:00
|
|
|
PORTREVISION= 1
|
2014-06-30 05:44:47 +00:00
|
|
|
CATEGORIES= science perl5
|
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
|
|
|
|
|
2014-12-02 22:40:56 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2016-01-04 13:49:17 +00:00
|
|
|
COMMENT= Parse and Decode METAR, TAF, SYNOP, BUOY and AMDAR and Write as XML
|
2014-06-30 05:44:47 +00:00
|
|
|
|
2017-06-25 16:19:05 +00:00
|
|
|
LICENSE= GPLv2+
|
2015-07-14 21:00:53 +00:00
|
|
|
|
2017-06-02 15:39:33 +00:00
|
|
|
RUN_DEPENDS= p5-CGI>0:www/p5-CGI
|
|
|
|
|
2014-07-16 03:18:26 +00:00
|
|
|
OPTIONS_DEFINE= APACHE DOCS
|
2014-06-30 05:44:47 +00:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
APACHE_DESC= Install Apache config file for metaf2xml (depends on Apache)
|
|
|
|
|
2015-02-05 20:24:22 +00:00
|
|
|
MAKE_ARGS= CGI_BIN_DIR=${WWWDIR}/cgi-bin \
|
2016-09-23 06:37:27 +00:00
|
|
|
CGI_DATA_DIR=/var/tmp \
|
|
|
|
CGI_LOG_DIR=/var/tmp \
|
2015-02-05 20:24:22 +00:00
|
|
|
HTDOCS_DIR=${WWWDIR}/htdocs \
|
2014-06-30 05:44:47 +00:00
|
|
|
METAF2XML=${PREFIX} \
|
|
|
|
METAF2XML_LIB=${PREFIX}/${SITE_PERL_REL} \
|
|
|
|
METAF2XML_DOC=${DOCSDIR} \
|
2016-09-23 06:37:27 +00:00
|
|
|
METAF2XML_MAN=${PREFIX}/man \
|
2015-02-05 20:24:22 +00:00
|
|
|
METAF2XML_XSL=${DATADIR} \
|
2017-06-25 16:19:05 +00:00
|
|
|
BUILD_ROOT=${STAGEDIR} \
|
|
|
|
PERL=${LOCALBASE}/bin/perl
|
2014-06-30 05:44:47 +00:00
|
|
|
NO_BUILD= yes
|
2016-09-23 06:37:27 +00:00
|
|
|
NO_ARCH= yes
|
2014-11-12 18:48:53 +00:00
|
|
|
USES= perl5 shebangfix tar:tgz
|
2014-06-30 05:44:47 +00:00
|
|
|
USE_PERL5= install run
|
2014-11-12 18:48:53 +00:00
|
|
|
SHEBANG_FILES= metaf.pl metaf2xml.pl metafsrc2raw.pl
|
2014-06-30 05:44:47 +00:00
|
|
|
|
2015-02-05 20:24:22 +00:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
|
|
|
|
2017-06-02 15:39:33 +00:00
|
|
|
APACHE_MAKE_ARGS= CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes
|
|
|
|
APACHE_USE= APACHE_RUN=22+
|
2014-06-30 05:44:47 +00:00
|
|
|
|
2017-06-25 16:19:05 +00:00
|
|
|
post-patch:
|
2017-06-29 19:22:05 +00:00
|
|
|
${REINPLACE_CMD} 's|%%METAF2XML_XSL%%|../../../${DATADIR_REL}| ; \
|
|
|
|
s|%%METAF2XML_BIN%%|../../../bin|' \
|
2017-06-25 16:19:05 +00:00
|
|
|
${WRKSRC}/install.pl
|
|
|
|
|
2017-06-02 15:39:33 +00:00
|
|
|
.include <bsd.port.mk>
|