xephem stable port information

Package: xephem
Version: 3.7.4
Revision: 2
BuildDepends: fink (>= 0.24.12), libjpeg, libpng3, openmotif3, x11-dev
Depends: libjpeg-shlibs, libpng3-shlibs, openmotif3-shlibs, x11-shlibs
Source: http://97.74.56.125/free/%n-%v.tar.gz
Source-MD5: 4e9290609f36df469a2ba5a1b4fffd46

Source2: http://www.clearskyinstitute.com/xephem/wmm.cof
Source2-MD5: 13a643a1cc4726081b5c727689963f3b

PatchFile: %n.patch
PatchFile-MD5: 877e6afbf665dfa46cf9a5e22c4d697f
PatchScript: sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: make -C GUI/xephem

InstallScript: <<
#! /bin/sh -ev
mkdir %i/bin
install -c -m 755 xephem %i/bin/xephem
cd GUI/xephem
mkdir -p %i/lib/xephem
install -c -m 755 xephem %i/lib/xephem/xephem
pwd
mv -f ../../../wmm.cof auxil/
cp -R auxil %i/lib/xephem
cp -R catalogs %i/lib/xephem
cp -R fifos %i/lib/xephem
cp -R fits %i/lib/xephem
cp -R gallery %i/lib/xephem
cp -R help %i/lib/xephem
cp -R lo %i/lib/xephem
cp -R tools %i/lib/xephem
mkdir -p %i/share/man/man1
install -c -m 755 xephem.1 %i/share/man/man1
<<

DocFiles: Copyright
Description: Astronomical Software Ephemeris
DescDetail: <<
The brainchild of programmer Elwood Downey, XEphem is a star-charting,
sky-simulating, ephemeris-generating celestial virtuoso that can do just about
everything ...
<<

PostInstScript: <<
cat %p/share/doc/xephem/Copyright
echo ""
echo "Included In fink with permission"
echo "A Full version of xephem is available for Mac OS X"
echo "Go to http://www.clearskyinstitute.com for more information"
<<

License: Restrictive/Distributable
Maintainer: Kevin Horton
Homepage: http://www.clearskyinstitute.com/xephem/

xephem stable port .patch

diff -Nurd -x'*~' xephem-3.7.2.orig/GUI/xephem/Makefile xephem-3.7.2/GUI/xephem/Makefile
--- xephem-3.7.2.orig/GUI/xephem/Makefile 2006-05-13 19:06:06.000000000 -0400
+++ xephem-3.7.2/GUI/xephem/Makefile 2007-06-15 00:34:30.000000000 -0400
@@ -10,9 +10,9 @@
# one executable, xephem.

# These -I and -L flags point to the supporting XEphem libraries
-LIBINC = -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -I../../libpng -I../../libz
-LIBLNK = -L../../libastro -L../../libip -L../../liblilxml -L../../libjpegd -L../../libpng -L../../libz
-LIBLIB = -lastro -lip -llilxml -ljpegd -lpng -lz
+LIBINC = -I../../libastro -I../../libip -I../../liblilxml
+LIBLNK = -L../../libastro -L../../libip -L../../liblilxml
+LIBLIB = -lastro -lip -llilxml -ljpeg -lpng12 -lz

# MOTIFI is the directory containing the Xm directory of include files.
# MOTIFL is the directory containing the libXm.a library.
@@ -33,8 +33,8 @@
CC = gcc
CLDFLAGS = -g
CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/usr/X11R6/include
-LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/usr/X11R6/lib
-XLIBS = $(MOTIFL)/libXm.a -lXp -lXt -lXext -lXmu -lX11
+AM_LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/usr/X11R6/lib
+XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11
LIBS = $(XLIBS) $(LIBLIB) -lm

# for ppc Apple OS X to make universal (i386 and ppc binary), requires
@@ -179,7 +179,7 @@
all: libs xephem xephem.1

xephem: $(INCS) $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+ $(CC) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

xephem.1: xephem.man
nroff -man $? > $@
@@ -187,8 +187,7 @@
libs:
cd ../../libjpegd; make
cd ../../liblilxml; make
cd ../../libpng; make
- cd ../../libz; make

clean:
touch x.o
diff -Nurd -x'*~' xephem-3.7.2.orig/GUI/xephem/patchlevel.c xephem-3.7.2/GUI/xephem/patchlevel.c
--- xephem-3.7.2.orig/GUI/xephem/patchlevel.c 2006-11-12 21:22:26.000000000 -0500
+++ xephem-3.7.2/GUI/xephem/patchlevel.c 2007-06-15 00:14:19.000000000 -0400
@@ -1,3 +1,4 @@
+#include
#include

#include
diff -Nurd -x'*~' xephem-3.7.2.orig/GUI/xephem/time.c xephem-3.7.2/GUI/xephem/time.c
--- xephem-3.7.2.orig/GUI/xephem/time.c 2005-07-08 22:12:10.000000000 -0400
+++ xephem-3.7.2/GUI/xephem/time.c 2007-06-15 00:14:19.000000000 -0400
@@ -1,6 +1,6 @@
/* get the time from the os.
*/
-
+#include
#include
#include
#include
diff -Nurd -x'*~' xephem-3.7.2.orig/xephem xephem-3.7.2/xephem
--- xephem-3.7.2.orig/xephem 1969-12-31 19:00:00.000000000 -0500
+++ xephem-3.7.2/xephem 2007-06-15 00:14:19.000000000 -0400
@@ -0,0 +1,2 @@
+#!/bin/sh
+@FINKPREFIX@/lib/xephem/xephem -env TELHOME=@FINKPREFIX@/lib

xephem _unstable_ port .patch