aboutsummaryrefslogtreecommitdiffstats
path: root/astro/ephem/Makefile
blob: a13f310522085b27eb2449bd56c44db712859774 (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
# Created by: eserte
# $FreeBSD$

PORTNAME=   ephem
PORTVERSION=    4.28
CATEGORIES= astro
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= trevor
DISTNAME=   ${PORTNAME}_${PORTVERSION}_unix

MAINTAINER= slaven@rezic.de
COMMENT=    An interactive terminal-based astronomical ephemeris program

NO_STAGE=   yes
NO_WRKSUBDIR=   yes
ALL_TARGET=

CFLAGS+=    -Wno-implicit

USE_GCC=    any

do-install:
    -cd ${WRKSRC}; \
    ${INSTALL_PROGRAM} ephem ${STAGEDIR}${PREFIX}/bin; \
    ${MKDIR} ${STAGEDIR}${PREFIX}/share/ephem; \
    ${INSTALL_DATA} Man.txt ${STAGEDIR}${PREFIX}/share/ephem/; \
    [ ! -f ${STAGEDIR}${PREFIX}/share/ephem/ephem.db ] && ${INSTALL_DATA} ephem.db ${STAGEDIR}${PREFIX}/share/ephem/; \
    [ ! -f ${STAGEDIR}${PREFIX}/share/ephem/ephem.cfg ] && ${INSTALL_DATA} ephem.cfg ${STAGEDIR}${PREFIX}/share/ephem/

post-install:
    @${ECHO_MSG} Don\'t forget to edit ${PREFIX}/share/ephem/ephem.cfg!

.include <bsd.port.mk>