diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-07-24 03:13:17 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-07-24 03:13:17 +0800 |
commit | 8bb58d593f34bfc85ce219059cbd7ebde11a3f45 (patch) | |
tree | 6b651b3b59203de935645e912548ac9c84e67606 /astro | |
parent | 3d7445bc3b67d23a0b1557c8181d590771064359 (diff) | |
download | marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar.gz marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar.bz2 marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar.lz marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar.xz marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.tar.zst marcuscom-ports-8bb58d593f34bfc85ce219059cbd7ebde11a3f45.zip |
share/gnome/ -> share/.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9237 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'astro')
-rw-r--r-- | astro/nightfall/Makefile | 77 | ||||
-rw-r--r-- | astro/nightfall/distinfo | 3 | ||||
-rw-r--r-- | astro/nightfall/files/patch-Light.c | 13 | ||||
-rw-r--r-- | astro/nightfall/files/patch-Light.h | 12 | ||||
-rw-r--r-- | astro/nightfall/files/patch-LightGLAnimate.c | 10 | ||||
-rw-r--r-- | astro/nightfall/files/patch-LightGnome.c | 14 | ||||
-rw-r--r-- | astro/nightfall/pkg-descr | 8 | ||||
-rw-r--r-- | astro/nightfall/pkg-plist | 98 |
8 files changed, 235 insertions, 0 deletions
diff --git a/astro/nightfall/Makefile b/astro/nightfall/Makefile new file mode 100644 index 000000000..988b85998 --- /dev/null +++ b/astro/nightfall/Makefile @@ -0,0 +1,77 @@ +# New ports collection makefile for: nightfall +# Date created: 21 February 2002 +# Whom: Christian Brueffer <chris@unixpages.org> +# +# $FreeBSD$ +# + +PORTNAME= nightfall +PORTVERSION= 1.61 +PORTREVISION= 1 +CATEGORIES= astro +MASTER_SITES= http://www.la-samhna.de/nightfall/ CENKES + +MAINTAINER= ports@FreeBSD.org +COMMENT= An interactive binary star application + +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg + +USE_XLIB= yes +WANT_GNOME= yes +USE_GNOME= gnomehack gnomehier gnometarget gtk20 +USE_PERL5= yes +USE_GETTEXT= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale + +MAN1= nightfall.1 + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mlibgnomeui}!="" +PKGNAMESUFFIX= -gnome +USE_GNOME+= gnomeprefix libgnomeui +INSTALLS_OMF= yes +.else +CONFIGURE_ARGS+= --disable-gnome +.endif + +.if defined(WITHOUT_PGPLOT) +RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot +CONFIGURE_ARGS+= --with-gnuplot +.else +LIB_DEPENDS+= pgplot.5:${PORTSDIR}/graphics/pgplot +CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \ + --with-pgplot-lib=${LOCALBASE}/lib +.endif + +.if defined(WITHOUT_OPENGL) +CONFIGURE_ARGS+= --disable-opengl +.else +LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut \ + gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2 +CONFIGURE_ARGS+= --with-lib-GL +.endif + +pre-configure: + @${ECHO_MSG} "Nightfall has the following tunable option(s):" + @${ECHO_MSG} "" + @${ECHO_MSG} " WITHOUT_GNOME=libgnomeui Turns off Gnome support" + @${ECHO_MSG} " WITHOUT_PGPLOT=yes Turns off PGPLOT support" + @${ECHO_MSG} " WITHOUT_OPENGL=yes Turns off OpenGL support" + @${ECHO_MSG} "" + +post-patch: + @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps/gnome|g' \ + ${WRKSRC}/nightfall.desktop + +post-install: + @${INSTALL} -d ${PREFIX}/share/applications/ + @${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \ + ${PREFIX}/share/applications/ + +.include <bsd.port.post.mk> diff --git a/astro/nightfall/distinfo b/astro/nightfall/distinfo new file mode 100644 index 000000000..579df428c --- /dev/null +++ b/astro/nightfall/distinfo @@ -0,0 +1,3 @@ +MD5 (nightfall-1.61.tar.gz) = 8224a80cbd0a255b0bc8b2c5d94d22e1 +SHA256 (nightfall-1.61.tar.gz) = eefffafd36d415687f13ebf48ee00f66488e6cfc466fad522ff8d1de27139868 +SIZE (nightfall-1.61.tar.gz) = 1331088 diff --git a/astro/nightfall/files/patch-Light.c b/astro/nightfall/files/patch-Light.c new file mode 100644 index 000000000..b2f9217be --- /dev/null +++ b/astro/nightfall/files/patch-Light.c @@ -0,0 +1,13 @@ +--- Light.c.orig Thu Oct 20 22:54:11 2005 ++++ Light.c Wed Dec 7 02:43:38 2005 +@@ -275,8 +275,10 @@ + + /* >>>>>>>>>>>>>>>> ALLOCATE MEMORY <<<<<<<<<<<<<<<<<<<<< */ + ++#if 0 + program_invocation_name = malloc (1 + strlen(argv[0])); + strcpy(program_invocation_name, argv[0]); ++#endif + + /* should be freed by OS on program exit (?) */ + diff --git a/astro/nightfall/files/patch-Light.h b/astro/nightfall/files/patch-Light.h new file mode 100644 index 000000000..ee425a24f --- /dev/null +++ b/astro/nightfall/files/patch-Light.h @@ -0,0 +1,12 @@ +--- Light.h.orig Thu Oct 20 22:18:52 2005 ++++ Light.h Wed Dec 7 02:47:16 2005 +@@ -805,7 +805,9 @@ + /* */ + /**************************************************************************/ + ++#if 0 + extern char * program_invocation_name; ++#endif + + /* ----------- Error Messages ---------------------------------------- */ + diff --git a/astro/nightfall/files/patch-LightGLAnimate.c b/astro/nightfall/files/patch-LightGLAnimate.c new file mode 100644 index 000000000..310eef55e --- /dev/null +++ b/astro/nightfall/files/patch-LightGLAnimate.c @@ -0,0 +1,10 @@ +--- LightGLAnimate.c.orig Tue Nov 25 00:21:36 2003 ++++ LightGLAnimate.c Tue Nov 25 00:24:22 2003 +@@ -25,6 +25,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <sys/types.h> + #include "Light.h" + + #ifdef _WITH_OPENGL diff --git a/astro/nightfall/files/patch-LightGnome.c b/astro/nightfall/files/patch-LightGnome.c new file mode 100644 index 000000000..fcbba3da3 --- /dev/null +++ b/astro/nightfall/files/patch-LightGnome.c @@ -0,0 +1,14 @@ +--- LightGnome.c.orig Thu Oct 27 21:46:52 2005 ++++ LightGnome.c Wed Dec 7 02:44:36 2005 +@@ -335,7 +335,11 @@ + FileType *dataFile = FileList; + char path[256]; + ++#if 0 + argv[0] = program_invocation_name; ++#else ++ argv[0] = g_get_prgname(); ++#endif + argv[1] = "-U"; + argv[2] = NULL; + diff --git a/astro/nightfall/pkg-descr b/astro/nightfall/pkg-descr new file mode 100644 index 000000000..8e1a00f36 --- /dev/null +++ b/astro/nightfall/pkg-descr @@ -0,0 +1,8 @@ +Nightfall is an astronomy application for fun, education, and science. +It 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. +It is, however, not able to fry your breakfast egg on your harddisk ;-) + +WWW: http://www.hs.uni-hamburg.de/DE/Ins/Per/Wichmann/Nightfall.html diff --git a/astro/nightfall/pkg-plist b/astro/nightfall/pkg-plist new file mode 100644 index 000000000..7ed5e5247 --- /dev/null +++ b/astro/nightfall/pkg-plist @@ -0,0 +1,98 @@ +bin/nightfall +share/applications/nightfall.desktop +%%GNOME:%%share/gnome/help/nightfall/C/nightfall.xml +%%GNOME:%%share/gnome/help/nightfall/de/nightfall.xml +share/locale/de/LC_MESSAGES/nightfall.mo +share/locale/it/LC_MESSAGES/nightfall.mo +%%DATADIR%%/cfg/51_peg.cfg +%%DATADIR%%/cfg/bh_vir.cfg +%%DATADIR%%/cfg/bh_vir_simple.cfg +%%DATADIR%%/cfg/dd_mon.cfg +%%DATADIR%%/cfg/er_vul.cfg +%%DATADIR%%/cfg/lz_cen.cfg +%%DATADIR%%/cfg/mr_cyg.cfg +%%DATADIR%%/cfg/ty_boo.cfg +%%DATADIR%%/cfg/v541_cyg.cfg +%%DATADIR%%/data/51_pegR1.dat +%%DATADIR%%/data/bh_virB.dat +%%DATADIR%%/data/bh_virR1.dat +%%DATADIR%%/data/bh_virR2.dat +%%DATADIR%%/data/bh_virV.dat +%%DATADIR%%/data/bh_virb.dat +%%DATADIR%%/data/bh_viru.dat +%%DATADIR%%/data/bh_virv.dat +%%DATADIR%%/data/bh_viry.dat +%%DATADIR%%/data/dd_monB.dat +%%DATADIR%%/data/dd_monR2.dat +%%DATADIR%%/data/dd_monV.dat +%%DATADIR%%/data/er_vulB.dat +%%DATADIR%%/data/er_vulI.dat +%%DATADIR%%/data/er_vulR.dat +%%DATADIR%%/data/er_vulR1.dat +%%DATADIR%%/data/er_vulR2.dat +%%DATADIR%%/data/er_vulU.dat +%%DATADIR%%/data/er_vulV.dat +%%DATADIR%%/data/lz_cenR1.dat +%%DATADIR%%/data/lz_cenR2.dat +%%DATADIR%%/data/lz_cenb.dat +%%DATADIR%%/data/lz_cenu.dat +%%DATADIR%%/data/lz_cenv.dat +%%DATADIR%%/data/lz_ceny.dat +%%DATADIR%%/data/mr_cygB.dat +%%DATADIR%%/data/mr_cygR1.dat +%%DATADIR%%/data/mr_cygR2.dat +%%DATADIR%%/data/mr_cygU.dat +%%DATADIR%%/data/mr_cygV.dat +%%DATADIR%%/data/ty_booB.dat +%%DATADIR%%/data/ty_booR1.dat +%%DATADIR%%/data/ty_booR2.dat +%%DATADIR%%/data/ty_booV.dat +%%DATADIR%%/data/v541_cygR1.dat +%%DATADIR%%/data/v541_cygR2.dat +%%DATADIR%%/data/v541_cygV.dat +%%DATADIR%%/doc/C/help0.txt +%%DATADIR%%/doc/C/help1.txt +%%DATADIR%%/doc/C/help2.txt +%%DATADIR%%/doc/C/help3.txt +%%DATADIR%%/doc/C/help4.txt +%%DATADIR%%/doc/C/help5.txt +%%DATADIR%%/doc/C/help6.txt +%%DATADIR%%/doc/C/help7.txt +%%DATADIR%%/doc/C/help8.txt +%%DATADIR%%/doc/de/help0.txt +%%DATADIR%%/doc/de/help1.txt +%%DATADIR%%/doc/de/help2.txt +%%DATADIR%%/doc/de/help3.txt +%%DATADIR%%/doc/de/help4.txt +%%DATADIR%%/doc/de/help5.txt +%%DATADIR%%/doc/de/help6.txt +%%DATADIR%%/doc/de/help7.txt +%%DATADIR%%/doc/de/help8.txt +%%DATADIR%%/pixmaps/checker_256.jpg +%%DATADIR%%/pixmaps/disk_128.jpg +%%DATADIR%%/pixmaps/disk_256.jpg +%%DATADIR%%/pixmaps/gnome-nightfall.png +%%DATADIR%%/pixmaps/manim.xpm +%%DATADIR%%/pixmaps/mcomp.xpm +%%DATADIR%%/pixmaps/mhelp.xpm +%%DATADIR%%/pixmaps/mplot.xpm +%%DATADIR%%/pixmaps/nf_logo.xpm +%%DATADIR%%/pixmaps/star_128.jpg +%%DATADIR%%/pixmaps/star_256.jpg +%%DATADIR%%/pixmaps/starp_128.jpg +%%DATADIR%%/pixmaps/starp_256.jpg +%%DATADIR%%/pixmaps/stars_128.jpg +%%DATADIR%%/pixmaps/stars_256.jpg +%%GNOME:%%share/omf/nightfall/nightfall-C.omf +%%GNOME:%%share/omf/nightfall/nightfall-de.omf +%%GNOME:%%@dirrm share/omf/nightfall +@dirrm %%DATADIR%%/pixmaps +@dirrm %%DATADIR%%/doc/de +@dirrm %%DATADIR%%/doc/C +@dirrm %%DATADIR%%/doc +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%%/cfg +@dirrm %%DATADIR%% +%%GNOME:%%@dirrm share/gnome/help/nightfall/de +%%GNOME:%%@dirrm share/gnome/help/nightfall/C +%%GNOME:%%@dirrm share/gnome/help/nightfall |