aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-11-11 08:07:50 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2025-11-11 08:09:03 +0000
commitcc66408d05b4967f247b1a54a5c982bd7e52a613 (patch)
tree5588d4e3816ebe881dc727655d6cb376838e95bf
parent2b240224314ca140b28035012f7168621cf38dd2 (diff)
science/openmodelica: Migrate to Qt6
PR: 290499 Requested by: Daniel Engberg <diizzy@FreeBSD.org>
-rw-r--r--science/openmodelica/Makefile11
-rw-r--r--science/openmodelica/distinfo2
2 files changed, 6 insertions, 7 deletions
diff --git a/science/openmodelica/Makefile b/science/openmodelica/Makefile
index bfb448159694..d59982fddd01 100644
--- a/science/openmodelica/Makefile
+++ b/science/openmodelica/Makefile
@@ -1,7 +1,7 @@
PORTNAME= openmodelica
DISTVERSIONPREFIX= v
DISTVERSION= 1.25.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= science cad java
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
@@ -38,11 +38,9 @@ RUN_DEPENDS= bash:shells/bash \
gmake:devel/gmake
USES= cmake compiler:c++14-lang iconv fortran gettext-runtime gl \
- gnome blaslapack localbase:ldflags qt:5 readline pkgconfig \
+ gnome blaslapack localbase:ldflags qt:6 readline pkgconfig \
python:build shebangfix java
-USE_QT= concurrent core declarative gui location network opengl \
- printsupport svg webchannel webengine widgets xml xmlpatterns \
- buildtools:build linguisttools:build qmake:build
+USE_QT= 5compat base declarative positioning webchannel webengine svg tools:build
USE_GL= gl opengl
USE_GNOME= libxml2
USE_LDCONFIG= ${PREFIX}/lib/omc ${PREFIX}/lib/omc/OMSimulator ${PREFIX}/lib/omc/cpp ${PREFIX}/lib/omc/ffi # https://github.com/OpenModelica/OpenModelica/issues/9925
@@ -66,7 +64,8 @@ GH_TUPLE+= OpenModelica:OMBootstrapping:04d16f7461e5401321f0f72613daf466ae2f76be
# this should change make program everywhere, but it doesn't,
# hence the patches in OMCompiler/Compiler/runtime/CMakeLists.txt, OMEdit/OMEditLIB/Simulation/SimulationOutputWidget.cpp
-CMAKE_ARGS= -DCMAKE_MAKE_PROGRAM=gmake \
+CMAKE_ARGS= -DOM_QT_MAJOR_VERSION=6 \
+ -DCMAKE_MAKE_PROGRAM=gmake \
-DPython_EXECUTABLE=${PYTHON_CMD}
CMAKE_ARGS+= -DOM_USE_CCACHE:BOOL=${CCACHE_ENABLED:S/yes/ON/:S/no/OFF/} # if refuses to build w/out ccache by default
diff --git a/science/openmodelica/distinfo b/science/openmodelica/distinfo
index 2597c4be9261..37a2ebd2f3ff 100644
--- a/science/openmodelica/distinfo
+++ b/science/openmodelica/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1757658835
+TIMESTAMP = 1762846124
SHA256 (openmodelica-1.25.4/OpenModelica-OpenModelica-v1.25.4_GH0.tar.gz) = b9d50f8321f4537735d70368b2ca105e35ad118797d71b0107b24eb660387ad4
SIZE (openmodelica-1.25.4/OpenModelica-OpenModelica-v1.25.4_GH0.tar.gz) = 148278628
SHA256 (openmodelica-1.25.4/OpenModelica-OMOptim-d53288b_GH0.tar.gz) = d5012951f43e90dce03d7866d221278ee11ddfbdac4db20fe43d93adbc3748e7