aboutsummaryrefslogtreecommitdiffstats
path: root/science/metaf2xml/Makefile
blob: 3e6b96f079dc3cfadd5dd0d6d240c945bd1cbb6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   metaf2xml
PORTVERSION=    2.2
PORTREVISION=   1
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+

BROKEN=     unfetchable
DEPRECATED= Unfetchable, unmaintained
EXPIRATION_DATE=    2019-10-16

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)

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} \
        PERL=${LOCALBASE}/bin/perl
NO_BUILD=   yes
NO_ARCH=    yes
USES=       perl5 shebangfix tar:tgz
USE_PERL5=  run
SHEBANG_FILES=  metaf.pl metaf2xml.pl metafsrc2raw.pl

PLIST_SUB=  VERSION=${PORTVERSION}

APACHE_MAKE_ARGS=   CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes
APACHE_USE=     APACHE_RUN=22+

post-patch:
    ${REINPLACE_CMD} 's|%%METAF2XML_XSL%%|../../../${DATADIR_REL}| ; \
        s|%%METAF2XML_BIN%%|../../../bin|' \
        ${WRKSRC}/install.pl

.include <bsd.port.mk>