aboutsummaryrefslogtreecommitdiffstats
path: root/misc/astrolog/Makefile
blob: 5bb9b75286050f32699c4cc808dd1c22119a8425 (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
# New ports collection makefile for:    astrolog
#
# http://rpkalf2.mach.uni-karlsruhe.de/~ferber/astrolog/
# http://www.magitech.com/~cruiser1/astrolog.htm
#
# Version required:     5.*
# Date created:         31 July 1995
# Whom:                 faulkner@cactus.org
#
# $Id: Makefile,v 1.15 1999/04/03 02:02:12 ache 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/
EXTRACT_ONLY=   ${DISTNAME}.shr
EPHEM=          LRZ5_24 CHI_24 CPJV_24
DISTFILES=      ${EXTRACT_ONLY} ${EPHEM}

MAINTAINER=     ache@FreeBSD.ORG

USE_XLIB=   yes
EXTRACT_CMD=    ${SH}
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= # empty
DIST_SUBDIR=    astrolog
ALL_TARGET=     astrolog
NO_WRKSUBDIR=   Yes

do-install:
    -@${MKDIR} ${PREFIX}/lib/astrolog
    cd ${DISTDIR}/${DIST_SUBDIR} && \
        ${INSTALL_DATA} ${EPHEM} ${PREFIX}/lib/astrolog
    cd ${WRKSRC}; \
        ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \
        if [ ! -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \
            ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
        fi
    cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
    -@${MKDIR} ${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 help"
    @echo "and tune ${PREFIX}/lib/astrolog/astrolog.dat"

.include <bsd.port.mk>