summaryrefslogtreecommitdiff
path: root/x11/xephem/Makefile
blob: 58257df354468a4c0471266c45dd182f3f0f654f (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
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.52 2009/05/19 08:59:39 wiz Exp $

DISTNAME=	xephem-3.7.3
CATEGORIES=	x11
MASTER_SITES=	http://www.clearskyinstitute.com/xephem/

MAINTAINER=	gdt@NetBSD.org
HOMEPAGE=	http://www.clearskyinstitute.com/xephem/
COMMENT=	Interactive astronomical ephemeris program
LICENSE=	xephem-license

# Pending adjustment of license wording to clarify the copyright
# holder's intent, permission has been granted to distribute the
# distfile and binary packages without functional changes.
#
# From: "Elwood C. Downey" <ecdowney@clearskyinstitute.com>
# Subject: Re: license terms, tarball mirroring, binary packages
# To: "Greg Troxel" <gdt@ir.bbn.com>
# Date: Wed, 10 May 2006 18:41:01 -0600 (MDT)
# [rest omitted]
# In the mean time, please consider this email to grant permissions for
# the NetBSD distros to make available both through online download and
# physical media both the original XEphem tarball and a binary built
# from the original tarball (including possible changes for porting but
# not changes in functionality).

# uses built libpng without synchronization
MAKE_JOBS_SAFE=	no

WRKSRC=		${WRKDIR}/${DISTNAME}/GUI/xephem
USE_TOOLS+=	gmake perl:run
REPLACE_PERL+=	auxil/*.pl

LIBS.SunOS+=		-lnsl -lsocket
X11_LDFLAGS+=		${LIBS}
MAKE_ENV+=		X11_LDFLAGS=${X11_LDFLAGS:Q}

REPLACE_INTERPRETER+=	perl
REPLACE.perl.old=	.*/bin/perl
REPLACE.perl.new=	${PREFIX}/bin/perl
REPLACE_FILES.perl=	auxil/astorb2edb.pl auxil/mpcorb2edb.pl

.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+=	2.95.3
.endif

INSTALLATION_DIRS=	bin lib/X11/app-defaults share/xephem/tools \
	${PKGMANDIR}/man1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xephem ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xephem.man ${PREFIX}/${PKGMANDIR}/man1/xephem.1
	${SED} s,@PREFIX@,${PREFIX}, ${FILESDIR}/XEphem.ad > ${WRKDIR}/XEphem
	${INSTALL_DATA} ${WRKDIR}/XEphem ${PREFIX}/lib/X11/app-defaults
	cd ${WRKSRC}; ${CP} -R auxil catalogs fifos fits gallery help lo \
		${PREFIX}/share/xephem
	${CHOWN} -R ${SHAREOWN} ${PREFIX}/share/xephem

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"