aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2024-02-16 16:20:05 +0000
committerThierry Thomas <thierry@FreeBSD.org>2024-02-16 16:37:24 +0000
commit255858293911b3a1db0414a8d3b4fc9b6877759b (patch)
treee63d79e467f4a64b3b25350a31167f9761963863
parentacf56faabfad471cc859aa45f5ee1cbc5de83737 (diff)
downloadports-255858293911b3a1db0414a8d3b4fc9b6877759b.tar.gz
ports-255858293911b3a1db0414a8d3b4fc9b6877759b.zip
science/optench: new port, a virtual optical bench
-rw-r--r--science/Makefile1
-rw-r--r--science/optench/Makefile28
-rw-r--r--science/optench/distinfo3
-rw-r--r--science/optench/pkg-descr3
-rw-r--r--science/optench/pkg-plist7
5 files changed, 42 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index fb0f2f807387..828d714b017e 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -224,6 +224,7 @@
SUBDIR += opensim-core
SUBDIR += opensph
SUBDIR += opsin
+ SUBDIR += optench
SUBDIR += orthanc
SUBDIR += orthanc-dicomweb
SUBDIR += orthanc-mysql
diff --git a/science/optench/Makefile b/science/optench/Makefile
new file mode 100644
index 000000000000..df3f112805f0
--- /dev/null
+++ b/science/optench/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= optench
+DISTVERSION= 1.2.5
+CATEGORIES= science
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Virtual optical bench
+WWW= https://amini-allight.org/optench
+
+LICENSE= GPLv3
+
+USES= cmake compiler:c++20-lang desktop-file-utils gl localbase \
+ qt:6 shared-mime-info tar:bz2
+USE_GL= egl opengl
+USE_QT= base
+LDFLAGS+= -L${QT_LIBDIR}
+
+USE_GITLAB= yes
+GL_ACCOUNT= amini-allight
+
+.if defined(WITH_DEBUG)
+CMAKE_ARGS+= -DOPTENCH_DEPLOYMENT:BOOL=OFF
+.endif
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|/usr/include/qt6|${QT_INCDIR}|' \
+ ${WRKSRC}/CMakeLists.txt
+
+.include <bsd.port.mk>
diff --git a/science/optench/distinfo b/science/optench/distinfo
new file mode 100644
index 000000000000..245ffc441a06
--- /dev/null
+++ b/science/optench/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708090531
+SHA256 (optench-1.2.5.tar.bz2) = d81467158d54844605d664b8b2094df95aa9741ea5c982fc35cdd1f77d0df3a9
+SIZE (optench-1.2.5.tar.bz2) = 2277089
diff --git a/science/optench/pkg-descr b/science/optench/pkg-descr
new file mode 100644
index 000000000000..df5639cadbc1
--- /dev/null
+++ b/science/optench/pkg-descr
@@ -0,0 +1,3 @@
+A free virtual optical bench for the design of optical systems, written in C++
+with Qt.
+It simulates interactions between light sources, lenses, mirrors and occluders.
diff --git a/science/optench/pkg-plist b/science/optench/pkg-plist
new file mode 100644
index 000000000000..0d0bd5604a0d
--- /dev/null
+++ b/science/optench/pkg-plist
@@ -0,0 +1,7 @@
+bin/optench
+share/applications/org.optench.optench.desktop
+share/icons/hicolor/256x256/apps/org.optench.optench.png
+share/icons/hicolor/256x256/mimetypes/org.optench.optench-mimetype.png
+share/man/man1/optench.1.gz
+share/metainfo/org.optench.optench.appdata.xml
+share/mime/packages/org.optench.optench.xml