Skip to content

Commit

Permalink
science/optench: new port, a virtual optical bench
Browse files Browse the repository at this point in the history
  • Loading branch information
thierry-FreeBSD committed Feb 16, 2024
1 parent acf56fa commit 2558582
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions science/Makefile
Expand Up @@ -224,6 +224,7 @@
SUBDIR += opensim-core
SUBDIR += opensph
SUBDIR += opsin
SUBDIR += optench
SUBDIR += orthanc
SUBDIR += orthanc-dicomweb
SUBDIR += orthanc-mysql
Expand Down
28 changes: 28 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions 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.
7 changes: 7 additions & 0 deletions 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

0 comments on commit 2558582

Please sign in to comment.