summaryrefslogtreecommitdiff
path: root/x11/xephem/Makefile
blob: 22abd96f06800dfafd15534b2931c9a7650996a8 (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
# $NetBSD: Makefile,v 1.16 2003/03/29 12:43:12 jmmv Exp $

DISTNAME=	xephem-3.5.2
PKGREVISION=	1
WRKSRC=		${WRKDIR}/${DISTNAME}/GUI/xephem
CATEGORIES=	x11
MASTER_SITES=	http://www.clearskyinstitute.com/xephem/ \
		ftp://iphcip1.physik.uni-mainz.de/pub/xephem/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.clearskyinstitute.com/xephem/
COMMENT=	Interactive astronomical ephemeris program

LICENSE=	no-commercial-use

USE_BUILDLINK2=	yes
USE_IMAKE=	yes
PERL_SCRIPTS=	astorb2edb.pl mpcorb2edb.pl

LIBSRC1=	${WRKDIR}/${DISTNAME}/libastro
LIBSRC2=	${WRKDIR}/${DISTNAME}/libip
ALL_TARGET=	# empty
BUILD_DIRS=	${LIBSRC1} ${LIBSRC2} ${WRKSRC}
INSTALL_DIRS=	${WRKSRC}

.if (${MACHINE_ARCH} == "arm32")
.  include "../../lang/gcc/buildlink2.mk"
.endif

post-install:
	${SED} s,@PREFIX@,${PREFIX}, ${FILESDIR}/XEphem.ad > ${WRKDIR}/XEphem
	${INSTALL_DATA} ${WRKDIR}/XEphem ${PREFIX}/lib/X11/app-defaults
	${INSTALL_DATA_DIR} ${PREFIX}/share/xephem/tools
	cd ${WRKSRC}; ${CP} -R auxil catalogs fifos fits		\
		${PREFIX}/share/xephem
	for file in ${PERL_SCRIPTS}; do					\
		${INSTALL_SCRIPT} ${WRKSRC}/tools/$${file}		\
			${PREFIX}/share/xephem/tools;			\
	done
	${CHOWN} -R ${SHAREOWN} ${PREFIX}/share/xephem

.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/motif.buildlink2.mk"

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