the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: nightfall
Version: 1.62
Revision: 3
###
Description: Astronomy app for fun, education, and science
License: GPL
Maintainer: None
###
BuildDepends: <<
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
expat1,
fink (>= 0.24.12-1),
fontconfig2-dev (>= 2.4.1-1),
freeglut,
freetype219 (>= 2.3.5-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
gtkglarea2 (>= 1.99.0-1004),
libgettext3-dev,
libiconv-dev,
libjpeg,
libpng3,
libtiff,
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
x11-dev,
xft2-dev
<<
Depends: <<
a2ps,
atk1-shlibs (>= 1.20.0-1),
fortune-mod,
freeglut-shlibs,
glib2-shlibs (>= 2.14.0-1),
gnuplot,
gtk+2-shlibs (>= 2.12.0-1),
gtkglarea2-shlibs (>= 1.99.0-1004),
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
pango1-xft2-ft219-shlibs (>= 1.18.4-4),
x11
<<
###
Source: http://www.la-samhna.de/%n/%n-%v.tar.gz
Source-MD5: 318314e97b83fdb74860aba6adef219b
###
PatchScript: <<
%{default_script}
perl -pi -e 's/(echo.*Cannot find g.*)/\1; exit 1/' configure
perl -pi -e 's,(.*program_invocation_name),//\1,' Light.[hc] LightGnome.c
perl -pi -e 's,#include
<<
###
ConfigureParams: --disable-dependency-tracking --mandir=%p/share/man --with-doc-prefix=%p/share/doc/%n --with-manual-prefix=%p/share/doc/%n --with-cfg-prefix=%p/etc/%n --with-gnuplot --disable-gnome PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
SetLDFLAGS: -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lfreeglut
InstallScript: make -j1 install DESTDIR=%d
###
ConfFiles: <<
%p/etc/%n/51_peg.cfg
%p/etc/%n/bh_vir.cfg
%p/etc/%n/bh_vir_simple.cfg
%p/etc/%n/dd_mon.cfg
%p/etc/%n/er_vul.cfg
%p/etc/%n/lz_cen.cfg
%p/etc/%n/mr_cyg.cfg
%p/etc/%n/ty_boo.cfg
%p/etc/%n/v541_cyg.cfg
<<
DocFiles: ABOUT-NLS AUTHORS COPYING ChangeLog README UserManual.*
DescDetail: <<
Nightfall can produce animated views of eclipsing binary stars,
calculate synthetic lightcurves and radial velocity curves, and
eventually determine the best-fit model for a given set of
observational data of an eclipsing binary star system.
Nightfall is based on a physical model that takes into account the
nonspherical shape of stars in close binary systems, as well as mutual
irradiance of both stars, and a number of additional physical effects.
Nightfall can handle a large range of configurations, including
overcontact (common envelope) systems, eccentric (non-circular)
orbits, surface spots and asynchroneous rotation (stars rotating
slower or faster than the orbital period), and the possible existence
of a third star in the system ('third light').
Refereed papers where Nightfall is used:
Covino et al. 2000, Astron. Astrophys. 361, L49
<<
DescPackaging: <<
Formerly maintained by James Gibbs
Hack configure to force use of gtk+2 only.
No program_invocation_name on OS X.
Try to fix http://permalink.gmane.org/gmane.os.apple.fink.beginners/20263
<<
#Homepage: http://www.lsw.uni-heidelberg.de/~rwichman/Nightfall.html
Homepage: http://www.hs.uni-hamburg.de/DE/Ins/Per/Wichmann/Nightfall.html
diff -uNr nightfall-1.61/LightGLAnimate.c nightfall-1.61-new/LightGLAnimate.c
--- nightfall-1.61/LightGLAnimate.c 2007-04-11 16:36:40.000000000 -0400
+++ nightfall-1.61-new/LightGLAnimate.c 2007-07-19 15:48:44.000000000 -0400
@@ -25,6 +25,7 @@
#include
#include
#include
+#include
#include "Light.h"
#ifdef _WITH_OPENGL