aboutsummaryrefslogtreecommitdiffstats
path: root/astro/setiathome/Makefile
blob: de55c759b16b628395e1cf5700d9f630365b7be5 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Ports collection makefile for:    setiathome
# Version required:     1.2
# Date created:         22 Apr 1999
# Whom:                 stb@freebsd.org
#
# $FreeBSD$
#

PORTNAME=   setiathome
PORTVERSION=    1.2
CATEGORIES= astro
MASTER_SITES=   http://setiathome.ssl.berkeley.edu/software/ \
        ftp://ftp.cdrom.com/pub/setiathome/ \
        http://people.FreeBSD.org/~stb/mirror/setiathome.ssl.berkeley.edu/software/

MAINTAINER= stb@freebsd.org

ONLY_FOR_ARCHS= i386

EXTRACT_CMD=        tar
EXTRACT_BEFORE_ARGS=    -xf
EXTRACT_AFTER_ARGS=

MAN1=       setiathome.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400000
DISTFILES=      setiathome-1.1.i386-unknown-freebsd4.0.tar
WRKSRC=         setiathome-1.1.i386-unknown-freebsd4.0
PKGNAME=    setiathome-1.1
.elif ${OSVERSION} >= 320000
DISTFILES=      setiathome-1.2.i386-unknown-freebsd3.2.tar
WRKSRC=         setiathome-1.2.i386-unknown-freebsd3.2
.elif ${OSVERSION} >= 310000
DISTFILES=      setiathome-1.2.i386-unknown-freebsd3.1.tar
WRKSRC=         setiathome-1.2.i386-unknown-freebsd3.1
.elif ${OSVERSION} >= 228000
DISTFILES=      setiathome-1.2.i386-unknown-freebsd2.2.8.tar
WRKSRC=         setiathome-1.2.i386-unknown-freebsd2.2.8
.elif ${OSVERSION} >= 227000
DISTFILES=      setiathome-1.2.i386-unknown-freebsd2.2.7.tar
WRKSRC=         setiathome-1.2.i386-unknown-freebsd2.2.7
.elif ${OSVERSION} >= 226000
DISTFILES=      setiathome-1.2.i386-unknown-freebsd2.2.6.tar
WRKSRC=         setiathome-1.2.i386-unknown-freebsd2.2.6
.else
DISTFILES=
.endif

.if make(makesum) || defined(FETCH_ALL)
DISTFILES=  setiathome-1.2.i386-unknown-freebsd2.2.6.tar    \
            setiathome-1.2.i386-unknown-freebsd2.2.7.tar    \
            setiathome-1.2.i386-unknown-freebsd2.2.8.tar    \
            setiathome-1.2.i386-unknown-freebsd3.1.tar  \
            setiathome-1.2.i386-unknown-freebsd3.2.tar  \
            setiathome-1.1.i386-unknown-freebsd4.0.tar
.endif

NO_BUILD=   "binary distribution"

MAN1=       setiathome.1

NO_CDROM=   "interactive install"

.if !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif

pre-fetch:
    @if [ -z "${DISTFILES}" ]; then \
        ${ECHO} "It seems you are running FreeBSD `uname -r`, which is not currently";  \
        ${ECHO} "supported.  SETI@home currently supports only FreeBSD 2.2.6 and above,";   \
        ${ECHO} "FreeBSD 3.1. and above, and FreeBSD 4.0."; \
        ${ECHO} \
        exit 72; \
    fi;

do-install:
    ${INSTALL_PROGRAM}  ${WRKDIR}/${WRKSRC}/setiathome ${PREFIX}/bin
    ${INSTALL_SCRIPT}   ${FILESDIR}/setiathome.sh ${PREFIX}/etc/rc.d
    ${INSTALL_MAN}      ${FILESDIR}/setiathome.1 ${MAN1PREFIX}/man/man1

post-install:
    @PKG_PREFIX=${PREFIX} PACKAGE_BUILDING=${PACKAGE_BUILDING} \
        ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>