1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

add glens 0.3

OpenGL gravitational lens simulator
This commit is contained in:
Ying-Chieh Liao 2002-08-08 08:39:30 +00:00
parent 36830729ec
commit 0105a77e22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64210
7 changed files with 65 additions and 0 deletions

View File

@ -6,6 +6,7 @@
SUBDIR += clhep
SUBDIR += euler
SUBDIR += gdis
SUBDIR += glens
SUBDIR += libsvm
SUBDIR += mayavi
SUBDIR += mpqc

30
science/glens/Makefile Normal file
View File

@ -0,0 +1,30 @@
# ex:ts=8
# Ports collection Makefile for: glens
# Date created: Aug 8, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= glens
PORTVERSION= 0.3
CATEGORIES= science
MASTER_SITES= http://virtual.theo.phys.ulg.ac.be/
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${X11BASE}/lib/libglui.a:${PORTSDIR}/devel/glui
USE_MESA= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -lstdc++"
CONFIGURE_ARGS= --with-glui=${X11BASE}
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/cfg ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

1
science/glens/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (glens-0.3.tar.gz) = 4edfcca793d8671a6774cd4fb9295a44

View File

@ -0,0 +1,10 @@
--- src/mat.cpp.orig Thu Aug 8 16:29:42 2002
+++ src/mat.cpp Thu Aug 8 16:29:55 2002
@@ -12,6 +12,7 @@
#include <math.h>
#include <stdio.h>
+#include <stdlib.h>
#include "mat.h"
void inverse(view *in, view *out)

View File

@ -0,0 +1 @@
OpenGL gravitational lens simulator

6
science/glens/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Glens simulates a gravitational lens composed of any number of punctual
deflectors. Light comes from a punctual light source at an infinite distance,
the direction of which can be specified. It is then deflected by a
distribution of punctual deflectors (such as a black hole) into a small
region of space. The rays can be seen, and directions and parameters
specified to see multiple images, or the famous "Einstein ring".

16
science/glens/pkg-plist Normal file
View File

@ -0,0 +1,16 @@
bin/glens
%%PORTDOCS%%share/examples/glens/cfg/bh.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf1.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf2.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf3.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf4.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf5.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf6.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf7.cgf
%%PORTDOCS%%share/examples/glens/cfg/conf9.cgf
%%PORTDOCS%%share/examples/glens/cfg/confbad.cgf
%%PORTDOCS%%share/examples/glens/cfg/glens.cgf
%%PORTDOCS%%share/examples/glens/cfg/simple.cgf
%%PORTDOCS%%share/examples/glens/cfg/simple2.cgf
%%PORTDOCS%%@dirrm share/examples/glens/cfg
%%PORTDOCS%%@dirrm share/examples/glens