summaryrefslogtreecommitdiff
path: root/misc/astrolog/Makefile
blob: 5b3b909f36247064f710f7d0fa8bdd3f4295e47e (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
# Created by: faulkner@cactus.org
# $FreeBSD$

PORTNAME=	astrolog
PORTVERSION=	5.41g
PORTREVISION=	3
CATEGORIES=	misc astro
MASTER_SITES=	ftp://ftp.astro.com/pub/swisseph/ephe/archive_gzip/:ephe \
		ftp://ftp.astro.com/pub/swisseph/:libswe \
		http://astrolog.offline.ee/astrolog/changed/:dist
DISTFILES=	a541gsrc.tar.gz:dist ${EPHE} \
		swe_unix_src_2.04.tar.gz:libswe

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Astrology program for X11 and alpha-numeric terminals

# Swiss Ephemeris GPLv2 licensed, see
# http://www.astro.com/ftp/swisseph/LICENSE.TXT
LICENSE=	GPLv2+

EPHE=		sweph_00.tar.gz:ephe sweph_06.tar.gz:ephe \
		sweph_12.tar.gz:ephe sweph_18.tar.gz:ephe \
		sweph_24.tar.gz:ephe sweph_30.tar.gz:ephe \
		sweph_36.tar.gz:ephe sweph_42.tar.gz:ephe \
		sweph_48.tar.gz:ephe swephm06.tar.gz:ephe \
		swephm12.tar.gz:ephe swephm18.tar.gz:ephe \
		swephm24.tar.gz:ephe swephm30.tar.gz:ephe \
		swephm36.tar.gz:ephe swephm42.tar.gz:ephe \
		swephm48.tar.gz:ephe swephm54.tar.gz:ephe

DIST_SUBDIR=	astrolog
ALL_TARGET=	astrolog
MAKEFILE=	makefile
NO_WRKSUBDIR=	yes

PORTDOCS=	helpfile.540 readme.541 changes.txt

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	X11 DOCS
OPTIONS_DEFAULT=X11

X11_USE=	XORG=x11
X11_MAKE_ARGS=	-DX11

post-extract:
	${RM} ${WRKSRC}/swe[a-z]*

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/astrolog
	cd ${WRKSRC} && \
		${INSTALL_DATA} fixstars.ast *.se1 ${STAGEDIR}${PREFIX}/lib/astrolog
	cd ${WRKSRC}; \
		${INSTALL_DATA} astrolog.dat ${STAGEDIR}${PREFIX}/lib/astrolog/astrolog.dat-dist
	cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>