update Sat May 15 06:37:01 PDT 2010
[pkgsrc.git] / x11 / xephem / Makefile
1 # $NetBSD: Makefile,v 1.53 2009/07/07 17:57:22 joerg Exp $
2
3 DISTNAME=       xephem-3.7.3
4 CATEGORIES=     x11
5 MASTER_SITES=   http://www.clearskyinstitute.com/xephem/
6
7 MAINTAINER=     gdt@NetBSD.org
8 HOMEPAGE=       http://www.clearskyinstitute.com/xephem/
9 COMMENT=        Interactive astronomical ephemeris program
10 LICENSE=        xephem-license
11
12 PKG_DESTDIR_SUPPORT=    user-destdir
13
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.
17 #
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)
22 # [rest omitted]
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).
28
29 # uses built libpng without synchronization
30 MAKE_JOBS_SAFE= no
31
32 WRKSRC=         ${WRKDIR}/${DISTNAME}/GUI/xephem
33 USE_TOOLS+=     gmake perl:run
34 REPLACE_PERL+=  auxil/*.pl
35
36 LIBS.SunOS+=            -lnsl -lsocket
37 X11_LDFLAGS+=           ${LIBS}
38 MAKE_ENV+=              X11_LDFLAGS=${X11_LDFLAGS:Q}
39
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
44
45 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
46 GCC_REQD+=      2.95.3
47 .endif
48
49 INSTALLATION_DIRS=      bin lib/X11/app-defaults share/xephem/tools \
50         ${PKGMANDIR}/man1
51
52 do-install:
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
60
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"