summaryrefslogtreecommitdiff
path: root/editors/lazarus
diff options
context:
space:
mode:
Diffstat (limited to 'editors/lazarus')
-rw-r--r--editors/lazarus/Makefile10
-rw-r--r--editors/lazarus/distinfo6
-rw-r--r--editors/lazarus/files/patch-lcl_interfaces_qt6_qtwidgets.pas25
-rw-r--r--editors/lazarus/files/pkg-message.in11
4 files changed, 37 insertions, 15 deletions
diff --git a/editors/lazarus/Makefile b/editors/lazarus/Makefile
index d02cf5eece4c..499d3f619636 100644
--- a/editors/lazarus/Makefile
+++ b/editors/lazarus/Makefile
@@ -1,5 +1,5 @@
PORTNAME= lazarus
-DISTVERSION= 3.8.0
+DISTVERSION= 4.0
PKGNAMESUFFIX?= -gtk2
PORTREVISION?= 0
CATEGORIES= editors devel
@@ -9,8 +9,8 @@ MAINTAINER?= acm@FreeBSD.org
COMMENT?= Portable Delphi-like IDE for the FreePascal compiler (GTK2)
WWW= https://www.lazarus-ide.org/
-CONFLICTS?= lazarus-gtk2-devel lazarus-qt5 lazarus-qt5-devel lazarus-qt6 \
- lazarus-qt6-devel
+CONFLICTS?= lazarus-gtk2-devel lazarus-gtk3-devel lazarus-qt5 lazarus-qt5-devel \
+ lazarus-qt6 lazarus-qt6-devel
BUILD_DEPENDS?= ${LOCALBASE}/bin/as:devel/binutils
RUN_DEPENDS?= ${LOCALBASE}/bin/as:devel/binutils \
@@ -22,7 +22,7 @@ ONLY_FOR_ARCHS= i386 amd64
USE_GITLAB= yes
GL_ACCOUNT= freepascal.org/lazarus
GL_PROJECT= ${PORTNAME}
-GL_COMMIT= 57e899e4bbe50b6653ec20434bdb7799aa629e06
+GL_COMMIT= 9d15c73c91a1545be50bee02b27bd3b43f9d90e8
USES= desktop-file-utils fpc:run gettext gmake iconv shared-mime-info xorg
USE_XORG= x11
@@ -40,7 +40,7 @@ OPTIONS_DEFAULT= GDB
.include <bsd.port.options.mk>
LAZARUS_ARCH= ${ARCH:S,amd64,x86_64,}
-LAZARUS_BASE= 3.8.0
+LAZARUS_BASE= 4.0
BUILDNAME= ${LAZARUS_ARCH}-${OPSYS:tl}
LCL_PLATFORM?= gtk2
diff --git a/editors/lazarus/distinfo b/editors/lazarus/distinfo
index 2507de300fbf..5c4b4049b587 100644
--- a/editors/lazarus/distinfo
+++ b/editors/lazarus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1737610002
-SHA256 (freepascal/freepascal.org/lazarus-lazarus-57e899e4bbe50b6653ec20434bdb7799aa629e06_GL0.tar.gz) = a0d97da6787218eb66572a17f2cfa3e0bbc7b1aaf019a3cf1bdcbdad9140d197
-SIZE (freepascal/freepascal.org/lazarus-lazarus-57e899e4bbe50b6653ec20434bdb7799aa629e06_GL0.tar.gz) = 56248974
+TIMESTAMP = 1748046926
+SHA256 (freepascal/freepascal.org/lazarus-lazarus-9d15c73c91a1545be50bee02b27bd3b43f9d90e8_GL0.tar.gz) = d0f81afd1be9f7deeb2d7941c72ab07acaa1fced288117ee341d7db83ec995af
+SIZE (freepascal/freepascal.org/lazarus-lazarus-9d15c73c91a1545be50bee02b27bd3b43f9d90e8_GL0.tar.gz) = 60530688
diff --git a/editors/lazarus/files/patch-lcl_interfaces_qt6_qtwidgets.pas b/editors/lazarus/files/patch-lcl_interfaces_qt6_qtwidgets.pas
new file mode 100644
index 000000000000..2e84562874d1
--- /dev/null
+++ b/editors/lazarus/files/patch-lcl_interfaces_qt6_qtwidgets.pas
@@ -0,0 +1,25 @@
+--- lcl/interfaces/qt6/qtwidgets.pas.orig 2025-05-03 06:08:10 UTC
++++ lcl/interfaces/qt6/qtwidgets.pas
+@@ -16497,10 +16497,6 @@ begin
+ FActions.Free;
+ end;
+
+- if Assigned(FActionHandle) then
+- QAction_Destroy(FActionHandle);
+- FActionHandle := nil;
+-
+ inherited Destroy;
+ end;
+
+@@ -16554,6 +16550,11 @@ begin
+ QMenu_hook_destroy(FAboutToHideHook);
+ FAboutToHideHook := nil;
+ end;
++
++ if Assigned(FActionHandle) then
++ QAction_Destroy(FActionHandle);
++ FActionHandle := nil;
++
+ inherited DetachEvents;
+ end;
+
diff --git a/editors/lazarus/files/pkg-message.in b/editors/lazarus/files/pkg-message.in
index 9fe32565884c..c9b15d113647 100644
--- a/editors/lazarus/files/pkg-message.in
+++ b/editors/lazarus/files/pkg-message.in
@@ -24,24 +24,21 @@ The Lazarus RAD was installed
by default:
editors/lazarus
- editors/lazarus-devel
editors/lazarus-qt5
- editors/lazarus-qt5-devel
editors/lazarus-qt6
- editors/lazarus-qt6-devel
- You can added those ports if you want support for gtk2, qt5 or qt6
- interfaces. Please look at net-p2p/transmission-remote-gui like a example of
- how use it
+ You can added those ports if you want support for gtk2, qt5 or qt6 interfaces.
+ Please look at sysutils/bhyvemgr like a example of how use it.
6) If you want built apps using devel version of lazarus, you must add the
following into /etc/make.conf file
WANT_LAZARUS_DEVEL= yes
- It is neccesary for use devel version of lazarus (gtk2, qt5 or qt6)
+ It is neccesary for use devel version of lazarus (gtk2, gtk3, qt5 or qt6)
editors/lazarus-devel
+ editors/lazarus-gtk3-devel
editors/lazarus-qt5-devel
editors/lazarus-qt6-devel