aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2023-12-23 00:44:13 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2023-12-23 01:11:52 +0000
commit4a05009c90523749592b92eb68b736a3fad5cb98 (patch)
treebedd73134ab9ff9cad012b36fd689e4455f02080
parent97616b0e4d07dc0589030fb3b88e357d9bd46bb2 (diff)
downloadports-4a05009c90523749592b92eb68b736a3fad5cb98.tar.gz
ports-4a05009c90523749592b92eb68b736a3fad5cb98.zip
editors/lazarus-*: Update to 3.0.0 and 3.1.0
- Add editors/lazarus-qt6 - Add new CONFLICTS - Change default lazarus and lazarus-devel to 3.0.0 and 3.1.0 - Change lazarus.mk file. Now stable and devel version support qt6 interface
-rw-r--r--Mk/Uses/lazarus.mk10
-rw-r--r--Mk/bsd.default-versions.mk6
-rw-r--r--editors/Makefile1
-rw-r--r--editors/lazarus-devel/Makefile9
-rw-r--r--editors/lazarus-devel/distinfo6
-rw-r--r--editors/lazarus-devel/files/pkg-message.in1
-rw-r--r--editors/lazarus-qt5-devel/Makefile3
-rw-r--r--editors/lazarus-qt5/Makefile5
-rw-r--r--editors/lazarus-qt6-devel/Makefile5
-rw-r--r--editors/lazarus-qt6/Makefile16
-rw-r--r--editors/lazarus/Makefile45
-rw-r--r--editors/lazarus/distinfo6
-rw-r--r--editors/lazarus/files/pkg-message.in24
-rw-r--r--editors/lazarus/pkg-descr2
14 files changed, 85 insertions, 54 deletions
diff --git a/Mk/Uses/lazarus.mk b/Mk/Uses/lazarus.mk
index f1b3be3ed3f7..6088ea029b23 100644
--- a/Mk/Uses/lazarus.mk
+++ b/Mk/Uses/lazarus.mk
@@ -48,10 +48,6 @@ _INCLUDE_USES_LAZARUS_MK= yes
WARNING+= "DEFAULT_LAZARUS_VER is defined, consider using DEFAULT_VERSIONS=lazarus=${DEFAULT_LAZARUS_VER} instead"
. endif
-. if ${lazarus_ARGS:Mqt6} && !defined(WANT_LAZARUS_DEVEL)
-IGNORE= "DEFAULT_LAZARUS_VER not support qt6 flavor, consider using: gtk2 or qt5 instead"
-. endif
-
. if ${lazarus_ARGS:Ngtk2:Nqt5:Nqt6:Nflavors}
IGNORE= Unknown argument for USES=lazarus: ${lazarus_ARGS:Ngtk2:Nqt5:Nqt6:Nflavors}
. endif
@@ -88,11 +84,7 @@ MKINSTDIR= ${LOCALBASE}/lib/fpc/${FPC_VER}/fpmkinst/${BUILDNAME}
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils \
${MKINSTDIR}/utils-lexyacc.fpm:lang/fpc${FPC_DEVELSUFFIX}
-LAZARUS_FLAVORS= gtk2 qt5
-
-. if defined(WANT_LAZARUS_DEVEL)
-LAZARUS_FLAVORS+= qt6
-. endif
+LAZARUS_FLAVORS= gtk2 qt5 qt6
. if ${lazarus_ARGS:Mflavors}
. if defined(LAZARUS_NO_FLAVORS)
diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk
index 1c185478f6d9..132e461ffc62 100644
--- a/Mk/bsd.default-versions.mk
+++ b/Mk/bsd.default-versions.mk
@@ -79,11 +79,11 @@ GUILE_DEFAULT?= 2.2
IMAGEMAGICK_DEFAULT?= 7
# Possible values: 8, 11, 17, 18, 19, 20, 21
JAVA_DEFAULT?= 8
-# Possible values: 2.2.6, 3.0.0
+# Possible values: 3.0.0, 3.1.0
. if !defined(WANT_LAZARUS_DEVEL)
-LAZARUS_DEFAULT?= 2.2.6
-. else
LAZARUS_DEFAULT?= 3.0.0
+. else
+LAZARUS_DEFAULT?= 3.1.0
. endif
# Possible values: rust, legacy
. if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
diff --git a/editors/Makefile b/editors/Makefile
index bc905b80fa72..e13cefd6e72f 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -87,6 +87,7 @@
SUBDIR += lazarus-devel
SUBDIR += lazarus-qt5
SUBDIR += lazarus-qt5-devel
+ SUBDIR += lazarus-qt6
SUBDIR += lazarus-qt6-devel
SUBDIR += le
SUBDIR += leafpad
diff --git a/editors/lazarus-devel/Makefile b/editors/lazarus-devel/Makefile
index 4701a1bdaecd..d039ed6176c4 100644
--- a/editors/lazarus-devel/Makefile
+++ b/editors/lazarus-devel/Makefile
@@ -1,7 +1,7 @@
PORTNAME= lazarus
-DISTVERSION= 3.0.0.20231028
+DISTVERSION= 3.1.0.20231222
PKGNAMESUFFIX?= -gtk2-devel
-PORTREVISION?= 3
+PORTREVISION?= 0
CATEGORIES= editors devel
DIST_SUBDIR= freepascal
@@ -21,7 +21,7 @@ ONLY_FOR_ARCHS= i386 amd64
USE_GITLAB= yes
GL_ACCOUNT= freepascal.org/lazarus
GL_PROJECT= ${PORTNAME}
-GL_COMMIT= da69f50a82ed2c57fdecc26023f75431bffe3d42
+GL_COMMIT= 5cbbd5956a4d9ab55b6c30810ea7c5f55cc5c444
USES= desktop-file-utils fpc:run gettext gmake iconv shared-mime-info xorg
USE_XORG= x11
@@ -39,7 +39,7 @@ OPTIONS_DEFAULT= GDB
.include <bsd.port.options.mk>
LAZARUS_ARCH= ${ARCH:S,amd64,x86_64,}
-LAZARUS_BASE= 3.0.0
+LAZARUS_BASE= 3.1.0
BUILDNAME= ${LAZARUS_ARCH}-${OPSYS:tl}
LCL_PLATFORM?= gtk2
@@ -66,6 +66,7 @@ post-extract:
@${MV} ${WRKSRC}/docs ${WRKDIR}/docs
@${RM} ${WRKSRC}/tools/.gitignore
@${RM} ${WRKSRC}/Dockerfile.buildenv
+ @${RM} ${WRKSRC}/buildenv.Dockerfile
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${MAKEFILE}
diff --git a/editors/lazarus-devel/distinfo b/editors/lazarus-devel/distinfo
index 7eae0648f22a..57583fa5394c 100644
--- a/editors/lazarus-devel/distinfo
+++ b/editors/lazarus-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1698534530
-SHA256 (freepascal/freepascal.org/lazarus-lazarus-da69f50a82ed2c57fdecc26023f75431bffe3d42_GL0.tar.gz) = 2976846d842e5812bd225c33a34fc21562e044d22064c6dc7edf45db87784985
-SIZE (freepascal/freepascal.org/lazarus-lazarus-da69f50a82ed2c57fdecc26023f75431bffe3d42_GL0.tar.gz) = 56191429
+TIMESTAMP = 1703291193
+SHA256 (freepascal/freepascal.org/lazarus-lazarus-5cbbd5956a4d9ab55b6c30810ea7c5f55cc5c444_GL0.tar.gz) = 96bd76d61af602cc5db7a31acf86bd710fc6178ce318e5a39a2641352ec01e09
+SIZE (freepascal/freepascal.org/lazarus-lazarus-5cbbd5956a4d9ab55b6c30810ea7c5f55cc5c444_GL0.tar.gz) = 56232072
diff --git a/editors/lazarus-devel/files/pkg-message.in b/editors/lazarus-devel/files/pkg-message.in
index 75ba689d4185..c9a7654f6ce4 100644
--- a/editors/lazarus-devel/files/pkg-message.in
+++ b/editors/lazarus-devel/files/pkg-message.in
@@ -27,6 +27,7 @@ The Lazarus RAD devel was installed
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
diff --git a/editors/lazarus-qt5-devel/Makefile b/editors/lazarus-qt5-devel/Makefile
index 92cad89c3d2e..1e18354e19a2 100644
--- a/editors/lazarus-qt5-devel/Makefile
+++ b/editors/lazarus-qt5-devel/Makefile
@@ -2,7 +2,8 @@ PKGNAMESUFFIX?= -qt5-devel
COMMENT= Portable Delphi-like IDE for the FreePascal compiler (QT5 devel)
-CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5 lazarus-qt6-devel
+CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5 lazarus-qt6 \
+ lazarus-qt6-devel
LIB_DEPENDS= libQt5Pas.so:x11-toolkits/qt5pas
diff --git a/editors/lazarus-qt5/Makefile b/editors/lazarus-qt5/Makefile
index 209dd0599128..bb76ab95d975 100644
--- a/editors/lazarus-qt5/Makefile
+++ b/editors/lazarus-qt5/Makefile
@@ -1,10 +1,11 @@
-PORTREVISION= 4
+PORTREVISION= 0
PKGNAMESUFFIX?= -qt5
COMMENT= Portable Delphi-like IDE for the FreePascal compiler (QT5)
-CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5-devel lazarus-qt6-devel
+CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5-devel lazarus-qt6 \
+ lazarus-qt6-devel
LIB_DEPENDS= libQt5Pas.so:x11-toolkits/qt5pas
diff --git a/editors/lazarus-qt6-devel/Makefile b/editors/lazarus-qt6-devel/Makefile
index 4085d80bc566..bf26f3d083a1 100644
--- a/editors/lazarus-qt6-devel/Makefile
+++ b/editors/lazarus-qt6-devel/Makefile
@@ -1,10 +1,9 @@
-PORTREVISION= 4
-
PKGNAMESUFFIX?= -qt6-devel
COMMENT= Portable Delphi-like IDE for the FreePascal compiler (QT6 devel)
-CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5 lazarus-qt5-devel
+CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5 lazarus-qt5-devel \
+ lazarus-qt6
LIB_DEPENDS= libQt6Pas.so:x11-toolkits/qt6pas
diff --git a/editors/lazarus-qt6/Makefile b/editors/lazarus-qt6/Makefile
new file mode 100644
index 000000000000..6004f9f2910e
--- /dev/null
+++ b/editors/lazarus-qt6/Makefile
@@ -0,0 +1,16 @@
+PORTREVISION= 0
+
+PKGNAMESUFFIX?= -qt6
+
+COMMENT= Portable Delphi-like IDE for the FreePascal compiler (QT6)
+
+CONFLICTS= lazarus-gtk2 lazarus-gtk2-devel lazarus-qt5 lazarus-qt5-devel \
+ lazarus-qt6-devel
+
+LIB_DEPENDS= libQt6Pas.so:x11-toolkits/qt6pas
+
+LCL_PLATFORM= qt6
+
+MASTERDIR= ${.CURDIR}/../../editors/lazarus
+
+.include "${MASTERDIR}/Makefile"
diff --git a/editors/lazarus/Makefile b/editors/lazarus/Makefile
index bb4609e41638..78b89d082342 100644
--- a/editors/lazarus/Makefile
+++ b/editors/lazarus/Makefile
@@ -1,18 +1,16 @@
PORTNAME= lazarus
-PORTVERSION= 2.2.6
-DISTVERSIONSUFFIX= -0
+DISTVERSION= 3.0.0
PKGNAMESUFFIX?= -gtk2
-PORTREVISION?= 3
+PORTREVISION?= 0
CATEGORIES= editors devel
-MASTER_SITES= SF/${PORTNAME}/Lazarus%20Zip%20_%20GZip/Lazarus%20${PORTVERSION} \
- LOCAL/acm/freepascal
DIST_SUBDIR= freepascal
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 lazarusqt6-devel
+CONFLICTS?= lazarus-gtk2-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 \
@@ -21,14 +19,19 @@ RUN_DEPENDS?= ${LOCALBASE}/bin/as:devel/binutils \
ONLY_FOR_ARCHS= i386 amd64
-USES= cpe desktop-file-utils fpc:run gettext gmake iconv shared-mime-info xorg
+USE_GITLAB= yes
+GL_ACCOUNT= freepascal.org/lazarus
+GL_PROJECT= ${PORTNAME}
+GL_COMMIT= f771d54e4a3a6e35697e662aa2e0b954762b56cb
+
+USES= desktop-file-utils fpc:run gettext gmake iconv shared-mime-info xorg
USE_XORG= x11
OPT?= "-Sgic "
MAKE_ENV= OPT=${OPT}
PLIST= ${WRKDIR}/pkg-plist
-WRKSRC?= ${WRKDIR}/${PORTNAME}
-DATADIR?= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
+#WRKSRC?= ${WRKDIR}/${PORTNAME}
+DATADIR?= ${PREFIX}/share/${PORTNAME}-${LAZARUS_BASE}
OPTIONS_DEFINE= GDB
GDB_DESC= Install a newest version of gdb
@@ -37,6 +40,7 @@ OPTIONS_DEFAULT= GDB
.include <bsd.port.options.mk>
LAZARUS_ARCH= ${ARCH:S,amd64,x86_64,}
+LAZARUS_BASE= 3.0.0
BUILDNAME= ${LAZARUS_ARCH}-${OPSYS:tl}
LCL_PLATFORM?= gtk2
@@ -61,6 +65,10 @@ post-extract:
@${MV} ${WRKSRC}/install/man/man1/startlazarus.1 ${WRKDIR}/man1/
@${MV} ${WRKSRC}/examples ${WRKDIR}/examples
@${MV} ${WRKSRC}/docs ${WRKDIR}/docs
+ @${RM} ${WRKSRC}/tools/.gitignore
+ @${RM} ${WRKSRC}/Dockerfile.buildenv
+ @${RM} ${WRKSRC}/buildenv.Dockerfile
+ @${RM} ${WRKSRC}/.git*
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${MAKEFILE}
@@ -69,17 +77,14 @@ post-patch:
do-build:
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} bigide LCL_PLATFORM=${LCL_PLATFORM}
- @cd ${WRKSRC} && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} tools LCL_PLATFORM=${LCL_PLATFORM}
post-build:
@cd ${WRKSRC} && \
${RM} -R COPYING* README* debian localize.bat test *.orig *.bak startlazarus.app \
- ide/Makefile*.orig ide/Makefile*.bak lcl/interfaces/qt5/qtobjects.pas.orig
- @cd ${WRKDIR} && \
- ${RM} -R docs/chm/.gitignore docs/html/.gitignore lazarus/tools/install/rpm/.gitignore \
- lazarus/tools/.gitignore lazarus/components/chmhelp/lhelp/.gitignore \
- lazarus/.git*
+ ide/Makefile*.orig ide/Makefile*.bak lcl/interfaces/qt5/qtobjects.pas.orig \
+ .git*
+ @cd ${WRKSRC} && \
+ ${FIND} . -name ".gitignore" -exec ${RM} "{}" \;
pre-install:
@${ECHO} "#!/bin/sh" > ${WRKDIR}/lazarus-wrapper
@@ -134,19 +139,19 @@ do-install:
@${CHMOD} +x ${STAGEDIR}${DATADIR}/tools/svn2revisioninc ${STAGEDIR}${DATADIR}/tools/lazres ${STAGEDIR}${DATADIR}/tools/lrstolfm \
${STAGEDIR}${DATADIR}/tools/updatepofiles
-.for FILE in lazarus startlazarus lazbuild
+.for FILE in lazarus lazbuild startlazarus
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
.endfor
@cd ${WRKDIR}/docs && \
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${DOCSDIR}/{}" \;
- @${LN} -s ${DOCSDIR} ${STAGEDIR}${DATADIR}/docs
+ @${LN} -sf ${DOCSDIR} ${STAGEDIR}${DATADIR}/docs
@cd ${WRKDIR}/examples && \
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${EXAMPLESDIR}/{}" \;
- @${LN} -s ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
+ @${LN} -sf ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
.for RESO in 128 16 256 32 48 64
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${RESO}x${RESO}/apps
@@ -171,6 +176,6 @@ do-install:
.for FILE in ${MAN1S}
${INSTALL_MAN} ${WRKDIR}/man1/${FILE} ${STAGEDIR}${MAN1PREFIX}/man/man1
.endfor
- ${LN} -s ${DATADIR}/lazbuild ${STAGEDIR}${PREFIX}/bin/lazbuild
+ ${LN} -sf ${DATADIR}/lazbuild ${STAGEDIR}${PREFIX}/bin/lazbuild
.include <bsd.port.mk>
diff --git a/editors/lazarus/distinfo b/editors/lazarus/distinfo
index 4bad436b1fcf..d029c1efb07c 100644
--- a/editors/lazarus/distinfo
+++ b/editors/lazarus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1678764524
-SHA256 (freepascal/lazarus-2.2.6-0.tar.gz) = 39f4cf98c0a94b39a058e733baa62f1c1d5dcfa6599dc57bc5efc4c0d08c485c
-SIZE (freepascal/lazarus-2.2.6-0.tar.gz) = 78351752
+TIMESTAMP = 1703276514
+SHA256 (freepascal/freepascal.org/lazarus-lazarus-f771d54e4a3a6e35697e662aa2e0b954762b56cb_GL0.tar.gz) = 350dc07a4b0eb04e7dd06479375f3f54f46203dfa468730965982a14aade0e20
+SIZE (freepascal/freepascal.org/lazarus-lazarus-f771d54e4a3a6e35697e662aa2e0b954762b56cb_GL0.tar.gz) = 56234280
diff --git a/editors/lazarus/files/pkg-message.in b/editors/lazarus/files/pkg-message.in
index f26d89a50eed..9fe32565884c 100644
--- a/editors/lazarus/files/pkg-message.in
+++ b/editors/lazarus/files/pkg-message.in
@@ -11,7 +11,7 @@ The Lazarus RAD was installed
source directory at lazarus configuration environment. Also it could be
setting later.
-3) Now you can obtain freepascal source installing lang/fpc-source port or
+3) Now you can obtain freepascal source installing lang/fpc-source port or
package
It will be extracted to %%LOCALBASE%%/share/fpc-source-X.X.X
@@ -19,19 +19,33 @@ The Lazarus RAD was installed
4) You can use %%LOCALBASE%%/bin/gdb debugger instead of gdb installed debugger
installed from base system. Lazarus works better with this version.
-5) The lazbuild.cfg file has been removed, it is not necessary anymore. Now
- we can use the following ports for aplications that depend of lazarus
+5) We can use the following ports for aplications that depend of lazarus
and these can be built with an interface different than lazarus has compiled
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, or qt5
+ 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
-6) Enjoy 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)
+
+ editors/lazarus-devel
+ editors/lazarus-qt5-devel
+ editors/lazarus-qt6-devel
+
+7) Enjoy it ;)
EOM
}
]
diff --git a/editors/lazarus/pkg-descr b/editors/lazarus/pkg-descr
index 61bc11166a90..14e7e4e48ae4 100644
--- a/editors/lazarus/pkg-descr
+++ b/editors/lazarus/pkg-descr
@@ -1,5 +1,5 @@
Lazarus is the class libraries for Free Pascal that emulate Delphi.
-Free Pascal is a GPL'ed compiler that runs on Linux, Win32, OS/2, 68K
+Free Pascal is a GPL'ed compiler that runs on FreeBSD, Linux, Win32, OS/2, 68K
and more. Free Pascal is designed to be able to understand and compile
Delphi syntax, which is of course OOP.