summaryrefslogtreecommitdiff
path: root/sysutils/vtm
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/vtm')
-rw-r--r--sysutils/vtm/Makefile35
-rw-r--r--sysutils/vtm/distinfo6
-rw-r--r--sysutils/vtm/files/patch-CMakeLists.txt41
-rw-r--r--sysutils/vtm/pkg-descr8
-rw-r--r--sysutils/vtm/pkg-message17
-rw-r--r--sysutils/vtm/pkg-plist18
6 files changed, 102 insertions, 23 deletions
diff --git a/sysutils/vtm/Makefile b/sysutils/vtm/Makefile
index 8424cd1243bf..12938c93d11e 100644
--- a/sysutils/vtm/Makefile
+++ b/sysutils/vtm/Makefile
@@ -1,10 +1,10 @@
PORTNAME= vtm
DISTVERSIONPREFIX= v
-DISTVERSION= 0.9.99.70
+DISTVERSION= 2025.07.28
CATEGORIES= sysutils
-MAINTAINER= nxjoseph@protonmail.com
-COMMENT= Text-based desktop environment
+MAINTAINER= seafork@disroot.org
+COMMENT= Text-based desktop environment for your terminal
WWW= https://github.com/directvt/vtm
LICENSE= MIT
@@ -18,10 +18,33 @@ GH_ACCOUNT= directvt
CFLAGS+= -I${LUA_INCDIR}
LDFLAGS+= -L${LUA_LIBDIR}
-PLIST_FILES= bin/vtm
+PORTDOCS= doc/*
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.pre.mk>
+.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386
+# explicit: GCC uses libstdc++ by default, otherwise
+# using libc++ cause the build to fail due to
+# memory issues on these architectures above.
+USE_GCC= yes
+CXXFLAGS+= -stdlib=libstdc++
+.endif
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|/etc/vtm|${LOCALBASE}/etc/vtm|' \
+ ${WRKSRC}/src/vtm.xml \
+ ${WRKSRC}/src/netxs/desktopio/application.hpp
post-patch:
- ${REINPLACE_CMD} 's/lua-5.4/lua-${LUA_VER}/g' \
+ @${REINPLACE_CMD} 's/lua-5.4/lua-${LUA_VER}/g' \
${WRKSRC}/CMakeLists.txt
-.include <bsd.port.mk>
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR} \
+ ${STAGEDIR}${DOCSDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.md \
+ ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/images/* \
+ ${STAGEDIR}${DOCSDIR}/images
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/vtm/distinfo b/sysutils/vtm/distinfo
index 441bf9f917ab..3aa41e84ca02 100644
--- a/sysutils/vtm/distinfo
+++ b/sysutils/vtm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1741550105
-SHA256 (directvt-vtm-v0.9.99.70_GH0.tar.gz) = 9068151b389723a1f6059296359c49dde77f18c2f08af050b33a34f3d06ad1c2
-SIZE (directvt-vtm-v0.9.99.70_GH0.tar.gz) = 1900004
+TIMESTAMP = 1753707300
+SHA256 (directvt-vtm-v2025.07.28_GH0.tar.gz) = 045fff33e6d1f631bbe37d4719a6ef7313991929cfde07bc0cf4ff8444d951aa
+SIZE (directvt-vtm-v2025.07.28_GH0.tar.gz) = 2156329
diff --git a/sysutils/vtm/files/patch-CMakeLists.txt b/sysutils/vtm/files/patch-CMakeLists.txt
index 8239f18bab51..79e2d2df42b4 100644
--- a/sysutils/vtm/files/patch-CMakeLists.txt
+++ b/sysutils/vtm/files/patch-CMakeLists.txt
@@ -1,31 +1,50 @@
---- CMakeLists.txt.orig 2025-03-07 15:17:49 UTC
+--- CMakeLists.txt.orig 2025-07-27 17:50:34 UTC
+++ CMakeLists.txt
-@@ -29,24 +29,15 @@ endif()
- #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -pthread -s")
+@@ -23,30 +23,34 @@ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2 /EHsc /bigobj /utf-8 /Zc:preprocessor")
+ set(WIN32_RESOURCES ".resources/images/vtm.rc")
+ else()
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -pthread")
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -DLUA_USE_POSIX")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLUA_USE_POSIX")
+ # Static linkage
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -O2 -pthread")
+ #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -O2 -DLUA_USE_POSIX")
endif()
--# Lua
+ # Lua dependency
-include(FetchContent)
-FetchContent_Declare(lua
- URL https://www.lua.org/ftp/lua-5.4.7.tar.gz
-- URL_HASH SHA256=9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30
-- DOWNLOAD_EXTRACT_TIMESTAMP true)
+- URL_HASH SHA256=9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30)
-FetchContent_MakeAvailable(lua)
-file(GLOB lua_src CONFIGURE_DEPENDS ${lua_SOURCE_DIR}/src/*.c)
-list(REMOVE_ITEM lua_src ${lua_SOURCE_DIR}/src/lua.c ${lua_SOURCE_DIR}/src/luac.c)
-add_library(lua ${lua_src})
-target_include_directories(lua PUBLIC ${lua_SOURCE_DIR}/src)
-target_sources(lua PRIVATE ${lua_src})
-+find_package(PkgConfig)
++#include(FetchContent)
++#FetchContent_Declare(lua
++# URL https://www.lua.org/ftp/lua-5.4.7.tar.gz
++# URL_HASH SHA256=9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30)
++#FetchContent_MakeAvailable(lua)
++#file(GLOB lua_src CONFIGURE_DEPENDS ${lua_SOURCE_DIR}/src/*.c)
++#list(REMOVE_ITEM lua_src ${lua_SOURCE_DIR}/src/lua.c ${lua_SOURCE_DIR}/src/luac.c)
++#add_library(lua ${lua_src})
++#target_include_directories(lua PUBLIC ${lua_SOURCE_DIR}/src)
++#target_sources(lua PRIVATE ${lua_src})
++find_package(PkgConfig)
+pkg_check_modules(LUA REQUIRED lua-5.4 IMPORTED_TARGET GLOBAL)
+
add_executable(vtm "src/vtm.cpp" ${WIN32_RESOURCES})
# add_executable(term "src/netxs/apps/term.cpp")
# add_executable(calc "src/netxs/apps/calc.cpp")
--target_link_libraries(vtm lua)
-+target_link_libraries(vtm ${LUA_LIBRARIES})
- # target_link_libraries(term lua)
- # target_link_libraries(calc lua)
+-target_link_libraries(vtm PRIVATE lua)
++target_include_directories(vtm PRIVATE ${LUA_INCLUDE_DIRS})
++target_link_libraries(vtm ${LUA_LINK_LIBRARIES})
+ # target_link_libraries(term PRIVATE lua)
+ # target_link_libraries(calc PRIVATE lua)
diff --git a/sysutils/vtm/pkg-descr b/sysutils/vtm/pkg-descr
index 53b83f214ddb..64c9f92eaae0 100644
--- a/sysutils/vtm/pkg-descr
+++ b/sysutils/vtm/pkg-descr
@@ -1,3 +1,5 @@
-Text based desktop environment inside the terminal.
-Allows for tiling terminal buffers, detaching sessions
-and remote collaborative work.
+vtm is a text-based application that represents its user interface
+as a mosaic of text cells, forming a TUI matrix. This matrix can be
+rendered in its own GUI window or in a compatible text console.
+It wraps any console application and supports indefinite nesting,
+creating a text-based desktop environment within your terminal.
diff --git a/sysutils/vtm/pkg-message b/sysutils/vtm/pkg-message
new file mode 100644
index 000000000000..1df5378d864b
--- /dev/null
+++ b/sysutils/vtm/pkg-message
@@ -0,0 +1,17 @@
+[
+{ type: upgrade
+ maximum_version: 2025.05.28
+ message: <<EOM
+Upgrades to vtm 2025.05.28
+==========================
+
+vtm 2025.05.28 contains changes that are made to
+configuration settings which are backward-incompatible
+for previous versions of vtm. The configuration settings
+file has changed significantly due to the introduction
+of Pure XML with dynamic element referencing and templating.
+
+See also: https://github.com/directvt/vtm/releases/tag/v2025.05.27
+EOM
+}
+]
diff --git a/sysutils/vtm/pkg-plist b/sysutils/vtm/pkg-plist
new file mode 100644
index 000000000000..784d8a5ea130
--- /dev/null
+++ b/sysutils/vtm/pkg-plist
@@ -0,0 +1,18 @@
+bin/vtm
+%%PORTDOCS%%%%DOCSDIR%%/apps.md
+%%PORTDOCS%%%%DOCSDIR%%/architecture.md
+%%PORTDOCS%%%%DOCSDIR%%/build.md
+%%PORTDOCS%%%%DOCSDIR%%/character_geometry.md
+%%PORTDOCS%%%%DOCSDIR%%/command-line-options.md
+%%PORTDOCS%%%%DOCSDIR%%/images/A_1x1.png
+%%PORTDOCS%%%%DOCSDIR%%/images/E_2x2.png
+%%PORTDOCS%%%%DOCSDIR%%/images/deva_2x1_glyph_run_transparent.png
+%%PORTDOCS%%%%DOCSDIR%%/images/deva_3x1.png
+%%PORTDOCS%%%%DOCSDIR%%/images/vtm_character_geometry_modifiers_16x4.png
+%%PORTDOCS%%%%DOCSDIR%%/images/vtm_character_geometry_modifiers_16x4.xhtml
+%%PORTDOCS%%%%DOCSDIR%%/images/vtm_character_geometry_modifiers_screenshot.png
+%%PORTDOCS%%%%DOCSDIR%%/images/vtm_character_geometry_modifiers_summary.png
+%%PORTDOCS%%%%DOCSDIR%%/panel.md
+%%PORTDOCS%%%%DOCSDIR%%/settings.md
+%%PORTDOCS%%%%DOCSDIR%%/user-interface.md
+%%PORTDOCS%%%%DOCSDIR%%/vt-input-mode.md