1 # $NetBSD: Makefile,v 1.53 2009/07/07 17:57:22 joerg Exp $
5 MASTER_SITES= http://www.clearskyinstitute.com/xephem/
7 MAINTAINER= gdt@NetBSD.org
8 HOMEPAGE= http://www.clearskyinstitute.com/xephem/
9 COMMENT= Interactive astronomical ephemeris program
10 LICENSE= xephem-license
12 PKG_DESTDIR_SUPPORT= user-destdir
14 # Pending adjustment of license wording to clarify the copyright
15 # holder's intent, permission has been granted to distribute the
16 # distfile and binary packages without functional changes.
18 # From: "Elwood C. Downey" <ecdowney@clearskyinstitute.com>
19 # Subject: Re: license terms, tarball mirroring, binary packages
20 # To: "Greg Troxel" <gdt@ir.bbn.com>
21 # Date: Wed, 10 May 2006 18:41:01 -0600 (MDT)
23 # In the mean time, please consider this email to grant permissions for
24 # the NetBSD distros to make available both through online download and
25 # physical media both the original XEphem tarball and a binary built
26 # from the original tarball (including possible changes for porting but
27 # not changes in functionality).
29 # uses built libpng without synchronization
32 WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
33 USE_TOOLS+= gmake perl:run
34 REPLACE_PERL+= auxil/*.pl
36 LIBS.SunOS+= -lnsl -lsocket
38 MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
40 REPLACE_INTERPRETER+= perl
41 REPLACE.perl.old= .*/bin/perl
42 REPLACE.perl.new= ${PREFIX}/bin/perl
43 REPLACE_FILES.perl= auxil/astorb2edb.pl auxil/mpcorb2edb.pl
45 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
49 INSTALLATION_DIRS= bin lib/X11/app-defaults share/xephem/tools \
53 ${INSTALL_PROGRAM} ${WRKSRC}/xephem ${DESTDIR}${PREFIX}/bin
54 ${INSTALL_MAN} ${WRKSRC}/xephem.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xephem.1
55 ${SED} s,@PREFIX@,${PREFIX}, ${FILESDIR}/XEphem.ad > ${WRKDIR}/XEphem
56 ${INSTALL_DATA} ${WRKDIR}/XEphem ${DESTDIR}${PREFIX}/lib/X11/app-defaults
57 cd ${WRKSRC}; ${CP} -R auxil catalogs fifos fits gallery help lo \
58 ${DESTDIR}${PREFIX}/share/xephem
59 ${CHOWN} -R ${SHAREOWN} ${DESTDIR}${PREFIX}/share/xephem
61 .include "../../x11/libX11/buildlink3.mk"
62 .include "../../x11/libXext/buildlink3.mk"
63 .include "../../x11/libXmu/buildlink3.mk"
64 .include "../../x11/libXp/buildlink3.mk"
65 .include "../../x11/libXt/buildlink3.mk"
66 .include "../../mk/motif.buildlink3.mk"
67 .include "../../mk/bsd.pkg.mk"