summaryrefslogtreecommitdiff
path: root/misc/astrolog/Makefile
blob: 1817b6b44c354c4ea1ff5ce6d92ef931d6c28df2 (plain)
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
# $NetBSD: Makefile,v 1.23 2004/12/03 15:15:03 wiz Exp $
# FreeBSD Id: Makefile,v 1.12 1997/08/10 22:31:15 fenner Exp
#

DISTNAME=       ast54unx
PKGNAME=        astrolog-5.40
CATEGORIES=     misc
MASTER_SITES=   http://www.astrolog.org/ftp/ephem/ \
		http://www.astrolog.org/ftp/ \
		ftp://ftp.kiarchive.ru/pub/unix/magick/astrology/astrolog/
DISTFILES=      ${DISTNAME}.shr ${EPHEM}

MAINTAINER=     tech-pkg@NetBSD.org
HOMEPAGE=	http://www.astrolog.org/
COMMENT=	Astrology program for X11 and alpha-numeric terminals

LICENSE=	astrolog-license
RESTRICTED=	Do not sell or profit from this software in any way
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

WRKSRC=		${WRKDIR}
EPHEM=          LRZ5_24 CHI_24 CPJV_24
EXTRACT_ONLY=	${DISTNAME}.shr
EXTRACT_CMD=	${EXTRACT_CMD.shar}

USE_X11BASE=	yes
USE_BUILDLINK3=	yes

DIST_SUBDIR=    astrolog
BUILD_TARGET=     astrolog

do-install:
	@${INSTALL_DATA_DIR} ${PREFIX}/lib/astrolog
	cd ${DISTDIR}/${DIST_SUBDIR} && \
		${INSTALL_DATA} ${EPHEM} ${PREFIX}/lib/astrolog
	cd ${WRKSRC} && \
		if [ -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \
			${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \
		else \
			${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
		fi
	cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
	@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astrolog
	cd ${WRKSRC} && \
		${INSTALL_DATA} Helpfile.540 ${PREFIX}/share/doc/astrolog
	cd ${WRKSRC} && \
		${INSTALL_DATA} Update.540 ${PREFIX}/share/doc/astrolog
	cd ${WRKSRC} && \
		${INSTALL_DATA} README.540 ${PREFIX}/share/doc/astrolog
	@${ECHO}
	@${ECHO} "See the file ${PREFIX}/share/doc/astrolog/Helpfile.540 for"
	@${ECHO} "help and tune ${PREFIX}/lib/astrolog/astrolog.dat"

.include "../../mk/bsd.pkg.mk"