update sqlitebrowser to a git checkout

build with the new Qt6 support, removing the last remaining use of
the Qt5 version of QScintilla

add optional sqlcipher flavour
This commit is contained in:
sthen
2026-03-07 12:09:32 +00:00
parent 9e039406f2
commit 81b71624cc
5 changed files with 61 additions and 45 deletions
+1
View File
@@ -238,6 +238,7 @@
SUBDIR += sqlite3-odbc
SUBDIR += sqlite3-tcl
SUBDIR += sqlitebrowser
SUBDIR += sqlitebrowser,sqlcipher
SUBDIR += sqlports
SUBDIR += sqsh
SUBDIR += tdb
+24 -14
View File
@@ -1,8 +1,10 @@
COMMENT = graphical interface to sqlite databases
COMMENT = graphical database browser for SQLite (DB4S)
GH_ACCOUNT = sqlitebrowser
GH_PROJECT = sqlitebrowser
GH_TAGNAME = v3.13.1
#GH_TAGNAME = v3.13.1
GH_COMMIT = 16140514540926a9b79d8e51195d93455331ebc0
DISTNAME = sqlitebrowser-3.13.99pl20260303
CATEGORIES = databases x11
@@ -11,25 +13,33 @@ HOMEPAGE = https://sqlitebrowser.org/
# MPLv2/GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5Gui Qt5Network
WANTLIB += Qt5PrintSupport Qt5Test Qt5Widgets Qt5Xml c m qscintilla2_qt5
WANTLIB += sqlite3
WANTLIB += ${COMPILER_LIBCXX}
WANTLIB += GL Qt6Concurrent Qt6Core Qt6Core5Compat Qt6Gui Qt6Network
WANTLIB += Qt6PrintSupport Qt6Test Qt6Widgets Qt6Xml c m qscintilla2_qt6
MODULES = x11/qt5 \
FLAVOR ?=
FLAVORS = sqlcipher
MODULES = x11/qt6 \
devel/cmake
LIB_DEPENDS = databases/sqlite3 \
editors/qscintilla
LIB_DEPENDS = editors/qscintilla,qt6 \
x11/qt6/qt5compat
RUN_DEPENDS = x11/gtk+4,-guic \
devel/desktop-file-utils
CONFIGURE_ARGS +=-DQSCINTILLA_INCLUDE_DIR=${LOCALBASE}/include/X11/qt5/Qsci
CONFIGURE_ARGS = -DQT_MAJOR=Qt6 \
-DENABLE_TESTING=ON \
-DGIT_COMMIT_HASH=${GH_COMMIT:C/(........).*/\1/}
SEPARATE_BUILD = Yes
NO_TEST = Yes
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
.if ${FLAVOR:Msqlcipher}
CONFIGURE_ARGS += -Dsqlcipher=1
LIB_DEPENDS += databases/sqlcipher
WANTLIB += sqlcipher
.else
LIB_DEPENDS += databases/sqlite3
WANTLIB += sqlite3
.endif
.include <bsd.port.mk>
+2 -2
View File
@@ -1,2 +1,2 @@
SHA256 (sqlitebrowser-3.13.1.tar.gz) = EES6Z9ZJyrxFnriHwBb3DWpAStZROQqzO/eFncfxtns=
SIZE (sqlitebrowser-3.13.1.tar.gz) = 4923092
SHA256 (sqlitebrowser-3.13.99pl20260303-16140514.tar.gz) = ctKNbkLsS/5LrfpwRUYoCjHz9vJL86s6iPHoymq/EQs=
SIZE (sqlitebrowser-3.13.99pl20260303-16140514.tar.gz) = 4971890
@@ -1,17 +1,18 @@
From f3335e3ceaea71bf2f4668116fb5bfd854c1e4f0 Mon Sep 17 00:00:00 2001
From: Lucas Raab <tuftedocelot@fastmail.fm>
Date: Sat, 12 Oct 2024 18:31:43 +0000
Subject: [PATCH] Exclude OpenBSD from -ldl as libc provides it there
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -517,7 +517,7 @@ if((NOT WIN32 AND NOT APPLE) OR MINGW)
)
endif()
@@ -37,12 +37,14 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE ON
)
-if(UNIX)
+if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
target_link_libraries(${PROJECT_NAME} dl)
endif()
+if (GIT_COMMIT_HASH STREQUAL "")
execute_process(
COMMAND git -C ${CMAKE_CURRENT_SOURCE_DIR} rev-parse --short --verify HEAD
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
+endif()
if (GIT_COMMIT_HASH STREQUAL "")
MESSAGE(WARNING "Could not determine git commit hash")
+21 -17
View File
@@ -1,19 +1,23 @@
SQLite Database Browser is a public domain visual tool used to create,
design and edit database files compatible with SQLite3.
DB Browser for SQLite (DB4S, also known as sqlitebrowser) is a high
quality visual tool designed for people who want to create, search,
and edit SQLite or SQLCipher database files.
It is meant to be used for users and developers who want to create
databases, edit and search data using a familiar spreadsheet-like interface,
without the need to learn complicated SQL commands.
Controls and wizards are available for users to:
* Create and compact database files
* Create, define, modify and delete tables
* Create, define and delete indexes
* Browse, edit, add and delete records
* Search records
* Import and export records as text
* Import and export tables from/to CSV files
* Import and export databases from/to SQL dump files
* Issue SQL queries and inspect the results
* Examine a log of all SQL commands issued by the application
DB4S gives a familiar spreadsheet-like interface providing access to
the full capability of the underlying database. Controls and wizards
are available to:
This program, however, is not a visual shell for the sqlite command line tool.
Create and compact database files
Create, define, modify and delete tables
Create, define, and delete indexes
Browse, edit, add, and delete records
Sort and search records
Import and export records as text
Import and export tables from/to CSV files
Import and export databases from/to SQL dump files
Issue SQL queries and inspect the results
Examine a log of all SQL commands issued by the application
Plot simple graphs based on table or query data
Add, change, remove SQLCipher encryption from database files
Flavour:
sqlcipher - build with SQLCipher support