1 # Maintainer: Fernando Marcelo <el.zoona at gmail dot com>
6 pkgdesc="The Serious Interactive Astronomical Software Ephemeris"
7 url="http://www.clearskyinstitute.com/xephem/xephem.html"
9 install=${pkgname}.install
11 depends=(libxp libxmu)
13 source=(http://www.las.ic.unicamp.br/pub/gentoo/distfiles/$pkgname-$pkgver.tar.gz)
14 md5sums=('4e9290609f36df469a2ba5a1b4fffd46')
18 cd ${srcdir}//$pkgname-$pkgver/
19 ######### Build with CFLAGS #################
20 sed -i "s|-O2|${CFLAGS}|g" {libastro,libip,libjpegd,libpng,libz}/Makefile
21 sed -i "s|-O2|${CFLAGS}|g" GUI/xephem/Makefile
22 ##############################################
23 cd $startdir/src/$pkgname-$pkgver/GUI/$pkgname
24 make MOTIF=/usr/lib/ || return 1
25 mkdir -p $startdir/pkg/usr/bin
26 cp xephem $startdir/pkg/usr/bin/
28 mkdir -p $startdir/pkg/usr/share/$pkgname
29 cp -R auxil $startdir/pkg/usr/share/$pkgname/
30 cp -R catalogs $startdir/pkg/usr/share/$pkgname/
31 cp -R fifos $startdir/pkg/usr/share/$pkgname/
32 cp -R fits $startdir/pkg/usr/share/$pkgname/
33 cp -R gallery $startdir/pkg/usr/share/$pkgname/
34 cp -R help $startdir/pkg/usr/share/$pkgname/
35 cp -R lo $startdir/pkg/usr/share/$pkgname/
37 mkdir -p $startdir/pkg/usr/man/man1
38 cp xephem.1 $startdir/pkg/usr/man/man1/
40 mkdir -p $startdir/pkg/usr/lib/X11/app-defaults
41 echo "XEphem.ShareDir: /usr/share/xephem" > $startdir/pkg/usr/lib/X11/app-defaults/XEphem
44 mkdir -p $startdir/pkg/usr/share/licenses/custom/$pkgname
45 cat > $startdir/pkg/usr/share/licenses/custom/$pkgname/license.txt << EOF
46 Terms and Facts of XEphem Source Code Download
47 ==============================================
49 1. Permission to build and run XEphem from this source code is granted only
50 for personal use or for bona fide educational situations or research funded
51 by public funds. Permission is expressly prohibited in commercial or milita-
52 ry situations without prior agreement.
54 2. XEphem source code may not be used, in whole or in part, to build other
55 computer programs under any circumstances without prior agreement.
57 3. NO REPRESENTATION IS MADE ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY
58 PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
60 4. Redistribution rights: You may redistribute XEphem source code only in its
61 entirety and without modification. You may redistribute binaries only if they
62 were built from the original source code, or from source code with very minor
63 changes made for the purpose of porting and not for the purposes of changing
66 5. What you are about to download is not an executable program or even the
67 complete XEphem support system. It is a UNIX tar.gz file containing the C
68 source code and two sample data catalogs only, Messier and YBS. The other
69 catalogs, gallery collection, Lunar imagery and the prebuilt executables are
70 in the commercial edition only. To build a running program you need ANSI C,
71 X11 and Motif development libraries, a POSIX operating system and the skills
72 to build such programs.