aboutsummaryrefslogtreecommitdiffstats
path: root/astro/p5-Astro-satpass/Makefile
blob: 6eee399964cab5275e1938ad402bc12db01eefb3 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=   Astro-satpass
PORTVERSION=    0.056
CATEGORIES= astro perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:WYANT
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Classes and app to compute satellite visibility

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-Date-Manip>=1.14:${PORTSDIR}/devel/p5-Date-Manip
RUN_DEPENDS:=   ${BUILD_DEPENDS}
TEST_DEPENDS=   p5-JSON>=0:${PORTSDIR}/converters/p5-JSON

OPTIONS_DEFINE= GEOCODER_US SIMBAD SOAPLITE SPACETRACK USGS
OPTIONS_DEFAULT=    GEOCODER_US SIMBAD SPACETRACK USGS
GEOCODER_US_DESC=   Add support for Geo::Coder::Geocoder::US
SIMBAD_DESC=        Add support for Astro::SIMBAD::Client
SOAPLITE_DESC=      Add support for SOAP::Lite (deprecated)
SPACETRACK_DESC=    Add support for Astro::SpaceTrack
USGS_DESC=      Add support for Geo::WebService::Elevation::USGS

CONFIGURE_ARGS= -y
PERL_CONFIGURE= yes

MAN1=       satpass.1
MAN3=       Astro::Coord::ECI.3 \
        Astro::Coord::ECI::Mixin.3 \
        Astro::Coord::ECI::Moon.3 \
        Astro::Coord::ECI::OVERVIEW.3 \
        Astro::Coord::ECI::Star.3 \
        Astro::Coord::ECI::Sun.3 \
        Astro::Coord::ECI::TLE.3 \
        Astro::Coord::ECI::TLE::Iridium.3 \
        Astro::Coord::ECI::TLE::Set.3 \
        Astro::Coord::ECI::Utils.3

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGEOCODER_US}
RUN_DEPENDS+=   p5-Geo-Coder-Geocoder-US>=0:${PORTSDIR}/misc/p5-Geo-Coder-Geocoder-US
.endif

.if ${PORT_OPTIONS:MSIMBAD}
RUN_DEPENDS+=   p5-Astro-SIMBAD-Client>=0:${PORTSDIR}/astro/p5-Astro-SIMBAD-Client
.endif

.if ${PORT_OPTIONS:MSPACETRACK}
RUN_DEPENDS+=   p5-Astro-SpaceTrack>=0:${PORTSDIR}/astro/p5-Astro-SpaceTrack
.endif

.if ${PORT_OPTIONS:MUSGS}
RUN_DEPENDS+=   p5-Geo-WebService-Elevation-USGS>=0:${PORTSDIR}/science/p5-Geo-WebService-Elevation-USGS
.endif

.if ${PORT_OPTIONS:MSOAPLITE}
RUN_DEPENDS+=   p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501001
TEST_DEPENDS+=  p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
.endif

.include <bsd.port.post.mk>