summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/glens/Makefile30
-rw-r--r--science/glens/distinfo1
-rw-r--r--science/glens/files/patch-mat.cpp10
-rw-r--r--science/glens/pkg-comment1
-rw-r--r--science/glens/pkg-descr6
-rw-r--r--science/glens/pkg-plist16
7 files changed, 65 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 8f89b642b6b6..1a58fd0e0f8e 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -6,6 +6,7 @@
SUBDIR += clhep
SUBDIR += euler
SUBDIR += gdis
+ SUBDIR += glens
SUBDIR += libsvm
SUBDIR += mayavi
SUBDIR += mpqc
diff --git a/science/glens/Makefile b/science/glens/Makefile
new file mode 100644
index 000000000000..6915b5ea101d
--- /dev/null
+++ b/science/glens/Makefile
@@ -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>
diff --git a/science/glens/distinfo b/science/glens/distinfo
new file mode 100644
index 000000000000..e849524027fc
--- /dev/null
+++ b/science/glens/distinfo
@@ -0,0 +1 @@
+MD5 (glens-0.3.tar.gz) = 4edfcca793d8671a6774cd4fb9295a44
diff --git a/science/glens/files/patch-mat.cpp b/science/glens/files/patch-mat.cpp
new file mode 100644
index 000000000000..55d691669bc3
--- /dev/null
+++ b/science/glens/files/patch-mat.cpp
@@ -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)
diff --git a/science/glens/pkg-comment b/science/glens/pkg-comment
new file mode 100644
index 000000000000..904f5494885e
--- /dev/null
+++ b/science/glens/pkg-comment
@@ -0,0 +1 @@
+OpenGL gravitational lens simulator
diff --git a/science/glens/pkg-descr b/science/glens/pkg-descr
new file mode 100644
index 000000000000..4a68375af9db
--- /dev/null
+++ b/science/glens/pkg-descr
@@ -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".
diff --git a/science/glens/pkg-plist b/science/glens/pkg-plist
new file mode 100644
index 000000000000..d8fa06533e73
--- /dev/null
+++ b/science/glens/pkg-plist
@@ -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