diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-25 07:35:17 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-25 07:35:17 +0800 |
commit | 1c82a07a82f704f9c4d85a233c073aa75c3e6e22 (patch) | |
tree | 663ea534febf307af42a2bbceaeaef2080a39871 /astro | |
parent | acfa8e73d52fdd71f5a79a1ff080c13defbe1dfb (diff) | |
download | marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar.gz marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar.bz2 marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar.lz marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar.xz marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.tar.zst marcuscom-ports-1c82a07a82f704f9c4d85a233c073aa75c3e6e22.zip |
USE_X_PREFIX -> USE_XLIB, bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6757 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'astro')
-rw-r--r-- | astro/nightfall/Makefile | 78 | ||||
-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 | 96 |
8 files changed, 234 insertions, 0 deletions
diff --git a/astro/nightfall/Makefile b/astro/nightfall/Makefile new file mode 100644 index 000000000..f2d431203 --- /dev/null +++ b/astro/nightfall/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: nightfall +# Date created: 21 February 2002 +# Whom: Christian Brueffer <chris@unixpages.org> +# +# $FreeBSD$ +# + +PORTNAME= nightfall +PORTVERSION= 1.52 +PORTREVISION= 1 +CATEGORIES= astro +MASTER_SITES= http://www.la-samhna.de/nightfall/ + +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_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 +CONFIGURE_ARGS+= --with-gnomedoc-prefix=${PREFIX}/share +INSTALLS_OMF= yes +DATADIR= ${PREFIX}/share/gnome/${PORTNAME} +.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-everything:: + @${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|CFLAGS -O3|CFLAGS|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps/gnome|g' \ + ${WRKSRC}/nightfall.desktop + +post-install: + @${MKDIR} ${PREFIX}/share/gnome/applications + ${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \ + ${PREFIX}/share/gnome/applications + +.include <bsd.port.post.mk> diff --git a/astro/nightfall/distinfo b/astro/nightfall/distinfo new file mode 100644 index 000000000..7757b79ea --- /dev/null +++ b/astro/nightfall/distinfo @@ -0,0 +1,3 @@ +MD5 (nightfall-1.52.tar.gz) = ccc9390cbe86f872b60ae48e6a3e2c4c +SHA256 (nightfall-1.52.tar.gz) = fd4199d283b64a2dfe54a132be9cf32d7d0acfd1f18b81825b863028fa8813ec +SIZE (nightfall-1.52.tar.gz) = 1290798 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..097b93ed0 --- /dev/null +++ b/astro/nightfall/pkg-plist @@ -0,0 +1,96 @@ +bin/nightfall +share/gnome/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/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%%/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/gnome/omf/nightfall/nightfall-C.omf +%%GNOME:%%share/gnome/omf/nightfall/nightfall-de.omf +%%GNOME:%%@dirrm share/gnome/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 |