head 1.3; access; symbols pkgsrc-2026Q3:1.1.0.2 pkgsrc-2026Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2026.11.29.11.17.41; author tsutsui; state Exp; branches; next 1.2; commitid Yh7nUsS4Fbh4Cl5H; 1.2 date 2026.09.22.18.39.33; author tsutsui; state Exp; branches; next 1.1; commitid msEYN4UHVsibfEWG; 1.1 date 2026.08.14.17.05.32; author tsutsui; state Exp; branches; next ; commitid 25pVjk7P57LDYCRG; desc @@ 1.3 log @PC6001VX: update to 4.6.0 Upstream changes: https://github.com/eighttails/PC6001VX/blob/v4.6.0/README.adoc#change-log 4.6.0 2026/11/02 * Separated the manual into a Japanese version (README_J.adoc) and an English version (README.adoc). * The online help now follows the UI language: the Japanese manual is shown when the language is Japanese, and the English manual otherwise. * (Windows) Bundle the English HTML manual along with the Japanese one. * (Linux) The AppImage now bundles the online manual HTML (Japanese and English) and shows the local manual in the browser instead of GitHub. 4.5.1 2026/10/02 * (Linux) Fixed backward compatibility so that the build works on Ubuntu22.04LTS. * (Linux) Fixed the issue where multilingual support was not working * (Android) Fixed an issue where menu text was truncated. @ text @$NetBSD: patch-CMakeLists.txt,v 1.2 2026/09/22 18:39:33 tsutsui Exp $ - add missing NOJOYSTICK CMake optoin - skip SDL2 and ffmpeg pkg-config check if they are explicitly disabled by CMake options (XXX needs more fixes in WIN32 case) --- CMakeLists.txt.orig 2026-11-02 14:49:24.000000000 +0000 +++ CMakeLists.txt @@@@ -141,6 +141,7 @@@@ set(CMAKE_CXX_EXTENSIONS OFF) option(NOMONITOR "Disable debug monitor support" OFF) option(NOAVI "Disable AVI support" OFF) +option(NOJOYSTICK "Disable joystick support" OFF) option(NOSOUND "Disable sound" OFF) set(DELAY_TIMER_MS_DEFAULT 1 CACHE STRING "Default timer resolution in milliseconds") option(REPLAYDEBUG_FRAME "Enable replay debug frame" OFF) @@@@ -369,6 +370,10 @@@@ if(NOAVI) target_compile_definitions(PC6001VX PRIVATE NOAVI) endif() +if(NOJOYSTICK) + target_compile_definitions(PC6001VX PRIVATE NOJOYSTICK) +endif() + if(NOSOUND) target_compile_definitions(PC6001VX PRIVATE NOSOUND) endif() @@@@ -462,62 +467,66 @@@@ else() target_link_libraries(PC6001VX PRIVATE ${X11_LIBRARIES}) endif() - pkg_check_modules(SDL2 QUIET sdl2) + if(NOT NOJOYSTICK) + pkg_check_modules(SDL2 QUIET sdl2) - if(SDL2_FOUND) - target_include_directories(PC6001VX PRIVATE ${SDL2_INCLUDE_DIRS}) - target_link_libraries(PC6001VX PRIVATE ${SDL2_LIBRARIES}) - else() - target_compile_definitions(PC6001VX PRIVATE NOJOYSTICK) + if(SDL2_FOUND) + target_include_directories(PC6001VX PRIVATE ${SDL2_INCLUDE_DIRS}) + target_link_libraries(PC6001VX PRIVATE ${SDL2_LIBRARIES}) + else() + target_compile_definitions(PC6001VX PRIVATE NOJOYSTICK) + endif() endif() - pkg_check_modules(LIBAVFORMAT QUIET libavformat) - pkg_check_modules(LIBAVCODEC QUIET libavcodec) - pkg_check_modules(LIBSWSCALE QUIET libswscale) - pkg_check_modules(LIBSWRESAMPLE QUIET libswresample) - pkg_check_modules(LIBAVUTIL QUIET libavutil) - - if(LIBAVFORMAT_FOUND AND LIBAVCODEC_FOUND AND LIBSWSCALE_FOUND AND LIBSWRESAMPLE_FOUND AND LIBAVUTIL_FOUND) - if(LIBAVCODEC_VERSION VERSION_LESS "59") - target_sources(PC6001VX PRIVATE src/movie_ffmpeg4.cpp) - message(STATUS "Using FFmpeg 4-compatible movie source (libavcodec ${LIBAVCODEC_VERSION})") + if(NOT NOAVI) + pkg_check_modules(LIBAVFORMAT QUIET libavformat) + pkg_check_modules(LIBAVCODEC QUIET libavcodec) + pkg_check_modules(LIBSWSCALE QUIET libswscale) + pkg_check_modules(LIBSWRESAMPLE QUIET libswresample) + pkg_check_modules(LIBAVUTIL QUIET libavutil) + + if(LIBAVFORMAT_FOUND AND LIBAVCODEC_FOUND AND LIBSWSCALE_FOUND AND LIBSWRESAMPLE_FOUND AND LIBAVUTIL_FOUND) + if(LIBAVCODEC_VERSION VERSION_LESS "59") + target_sources(PC6001VX PRIVATE src/movie_ffmpeg4.cpp) + message(STATUS "Using FFmpeg 4-compatible movie source (libavcodec ${LIBAVCODEC_VERSION})") + else() + target_sources(PC6001VX PRIVATE src/movie.cpp) + endif() + + set(PC6001VX_FFMPEG_LIBRARY_DIRS + ${LIBAVFORMAT_LIBRARY_DIRS} + ${LIBAVCODEC_LIBRARY_DIRS} + ${LIBSWSCALE_LIBRARY_DIRS} + ${LIBSWRESAMPLE_LIBRARY_DIRS} + ${LIBAVUTIL_LIBRARY_DIRS} + ) + list(REMOVE_DUPLICATES PC6001VX_FFMPEG_LIBRARY_DIRS) + + target_compile_definitions(PC6001VX PRIVATE __STDC_CONSTANT_MACROS __STDC_FORMAT_MACROS) + target_include_directories(PC6001VX PRIVATE + ${LIBAVFORMAT_INCLUDE_DIRS} + ${LIBAVCODEC_INCLUDE_DIRS} + ${LIBSWSCALE_INCLUDE_DIRS} + ${LIBSWRESAMPLE_INCLUDE_DIRS} + ${LIBAVUTIL_INCLUDE_DIRS} + ) + + if(PC6001VX_FFMPEG_LIBRARY_DIRS) + target_link_directories(PC6001VX PRIVATE ${PC6001VX_FFMPEG_LIBRARY_DIRS}) + endif() + + target_link_libraries(PC6001VX PRIVATE + ${LIBAVFORMAT_LIBRARIES} + ${LIBAVCODEC_LIBRARIES} + ${LIBSWSCALE_LIBRARIES} + ${LIBSWRESAMPLE_LIBRARIES} + ${LIBAVUTIL_LIBRARIES} + ) else() target_sources(PC6001VX PRIVATE src/movie.cpp) + target_compile_definitions(PC6001VX PRIVATE NOAVI) + message(STATUS "AVI support disabled: FFmpeg development libraries were not found") endif() - - set(PC6001VX_FFMPEG_LIBRARY_DIRS - ${LIBAVFORMAT_LIBRARY_DIRS} - ${LIBAVCODEC_LIBRARY_DIRS} - ${LIBSWSCALE_LIBRARY_DIRS} - ${LIBSWRESAMPLE_LIBRARY_DIRS} - ${LIBAVUTIL_LIBRARY_DIRS} - ) - list(REMOVE_DUPLICATES PC6001VX_FFMPEG_LIBRARY_DIRS) - - target_compile_definitions(PC6001VX PRIVATE __STDC_CONSTANT_MACROS __STDC_FORMAT_MACROS) - target_include_directories(PC6001VX PRIVATE - ${LIBAVFORMAT_INCLUDE_DIRS} - ${LIBAVCODEC_INCLUDE_DIRS} - ${LIBSWSCALE_INCLUDE_DIRS} - ${LIBSWRESAMPLE_INCLUDE_DIRS} - ${LIBAVUTIL_INCLUDE_DIRS} - ) - - if(PC6001VX_FFMPEG_LIBRARY_DIRS) - target_link_directories(PC6001VX PRIVATE ${PC6001VX_FFMPEG_LIBRARY_DIRS}) - endif() - - target_link_libraries(PC6001VX PRIVATE - ${LIBAVFORMAT_LIBRARIES} - ${LIBAVCODEC_LIBRARIES} - ${LIBSWSCALE_LIBRARIES} - ${LIBSWRESAMPLE_LIBRARIES} - ${LIBAVUTIL_LIBRARIES} - ) - else() - target_sources(PC6001VX PRIVATE src/movie.cpp) - target_compile_definitions(PC6001VX PRIVATE NOAVI) - message(STATUS "AVI support disabled: FFmpeg development libraries were not found") endif() else() target_sources(PC6001VX PRIVATE src/movie.cpp) @ 1.2 log @PC6001VX: update to 4.5.0 pkgsrc changes: - adjust CMakeLists.txt patch per upstream changes - add explicit dependency on qt6-qtdeclarative for QML/Qt Quick Upstream changes: https://eighttails.seesaa.net/article/521518642.html https://github.com/eighttails/PC6001VX/blob/v4.5.0/README.adoc#%E6%9B%B4%E6%96%B0%E5%B1%A5%E6%AD%B4 4.5.0 2026/09/09 * Changed screen rendering from QGraphicsView/QGraphicsScene based implementation to QML/Qt Quick based implementation. * Changed the virtual keyboard to a QML/Qt Quick based implementation and removed dependency on Qt Graphics Scene (QGraphics* classes). * Added key repeat support to the virtual keyboard. * Removed the hardware acceleration setting and safe mode along with the migration to QML/Qt Quick. * (Android) Restored the ability to share snapshots and TAPE(SAVE) exports with other applications, which had been unavailable due to changes in Qt. @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.1 2026/08/14 17:05:32 tsutsui Exp $ d8 1 a8 1 --- CMakeLists.txt.orig 2026-09-22 17:50:57.274434169 +0000 d10 1 a10 1 @@@@ -134,6 +134,7 @@@@ set(CMAKE_CXX_EXTENSIONS OFF) d18 1 a18 1 @@@@ -358,6 +359,10 @@@@ if(NOAVI) d29 1 a29 1 @@@@ -450,53 +455,57 @@@@ else() d34 1 a34 1 + if(NOT NOJOYSTIC) d57 3 a59 20 - set(PC6001VX_FFMPEG_LIBRARY_DIRS - ${LIBAVFORMAT_LIBRARY_DIRS} - ${LIBAVCODEC_LIBRARY_DIRS} - ${LIBSWSCALE_LIBRARY_DIRS} - ${LIBSWRESAMPLE_LIBRARY_DIRS} - ${LIBAVUTIL_LIBRARY_DIRS} - ) - list(REMOVE_DUPLICATES PC6001VX_FFMPEG_LIBRARY_DIRS) - - target_compile_definitions(PC6001VX PRIVATE __STDC_CONSTANT_MACROS __STDC_FORMAT_MACROS) - target_include_directories(PC6001VX PRIVATE - ${LIBAVFORMAT_INCLUDE_DIRS} - ${LIBAVCODEC_INCLUDE_DIRS} - ${LIBSWSCALE_INCLUDE_DIRS} - ${LIBSWRESAMPLE_INCLUDE_DIRS} - ${LIBAVUTIL_INCLUDE_DIRS} - ) - - if(PC6001VX_FFMPEG_LIBRARY_DIRS) - target_link_directories(PC6001VX PRIVATE ${PC6001VX_FFMPEG_LIBRARY_DIRS}) d68 7 d104 2 a105 1 + else() d107 1 d110 22 d140 1 d142 1 d145 1 a145 1 target_compile_definitions(PC6001VX PRIVATE NOJOYSTICK NOAVI) @ 1.1 log @PC6001VX: update to 4.4.0 pkgsrc changes: - update definitions for cmake per upstream changes - make NOJOYSTIC, NOAVI, NOMONITOR, and DELAY_TIMER_MS_DEFAULT values configurable in CMakefile.txt - switch to using ffmpeg8 to sync version with qt6-qtmultimedia - remove unnecessary qt6-qt5compat that should have be removed since 4.3.0 - remove unnecessary obsolete definitions - remove a patch fixed in upstream Upstream changes: https://eighttails.seesaa.net/article/521347022.html https://github.com/eighttails/PC6001VX/blob/v4.4.0/README.adoc#%E6%9B%B4%E6%96%B0%E5%B1%A5%E6%AD%B4 4.4.0 2026/08/15 PC6001VX 4.4.0 release * Migrated to cmake-based build and removed .pro file for qmake. * Updated PC-6001 compatible BASIC to 0.8.2 * Updated compatible BASIC for PC-6001mkII/6601 to 0.5.3. Basic mode 6 is not supported, but software up to mode 5 can be sped up by turning off bus requests. * Supported FFMpeg 9 (can be built with FFMpeg 7, 8, 9) (thanks to bevanjkay) @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 2 - Make old qmake options also configurable by CMakefile (XXX: needs more fixes for WIN32 target) d8 1 a8 1 --- CMakeLists.txt.orig 2026-08-14 10:43:36.000000000 +0000 d10 1 a10 1 @@@@ -2,6 +2,14 @@@@ cmake_minimum_required(VERSION 3.16) d12 2 a13 3 project(PC6001VX VERSION 4.4.0 LANGUAGES CXX) +# configurable options d15 6 a20 15 +option(NOAVI "Disable video capture support" OFF) +option(NOMONITOR "Disable debug monitor support" OFF) +set(DELAY_TIMER_MS_DEFAULT 1 CACHE STRING + "Default timer resolution in milliseconds" +) + if(WIN32) set(CMAKE_FIND_PACKAGE_PREFER_STATIC_LIBS TRUE) set(CMAKE_FIND_LIBRARY_SUFFIXES_OVERRIDE ".a") @@@@ -339,8 +347,13 @@@@ target_include_directories(PC6001VX PRIV target_compile_definitions(PC6001VX PRIVATE QTP6VX USEFILESYSTEM + DELAY_TIMER_MS_DEFAULT=${DELAY_TIMER_MS_DEFAULT} ) d22 2 a23 2 +if(NOMONITOR) + target_compile_definitions(PC6001VX PRIVATE NOMONITOR) d26 4 a29 4 if(ANDROID) set(PC6001VX_ANDROID_TARGET_SDK_VERSION "" CACHE STRING "Override Android target SDK version") @@@@ -406,53 +419,61 @@@@ else() d34 3 a36 1 - d41 1 a41 5 + if(NOJOYSTICK) target_compile_definitions(PC6001VX PRIVATE NOJOYSTICK) + else() + pkg_check_modules(SDL2 QUIET sdl2) + d65 13 a77 3 + if(NOAVI) + target_compile_definitions(PC6001VX PRIVATE NOAVI) + else() d93 1 a93 9 - target_compile_definitions(PC6001VX PRIVATE __STDC_CONSTANT_MACROS __STDC_FORMAT_MACROS) - target_include_directories(PC6001VX PRIVATE - ${LIBAVFORMAT_INCLUDE_DIRS} - ${LIBAVCODEC_INCLUDE_DIRS} - ${LIBSWSCALE_INCLUDE_DIRS} - ${LIBSWRESAMPLE_INCLUDE_DIRS} - ${LIBAVUTIL_INCLUDE_DIRS} - ) d102 1 a102 4 - if(PC6001VX_FFMPEG_LIBRARY_DIRS) - target_link_directories(PC6001VX PRIVATE ${PC6001VX_FFMPEG_LIBRARY_DIRS}) - endif() d106 12 a117 1 a126 10 + target_link_libraries(PC6001VX PRIVATE + ${LIBAVFORMAT_LIBRARIES} + ${LIBAVCODEC_LIBRARIES} + ${LIBSWSCALE_LIBRARIES} + ${LIBSWRESAMPLE_LIBRARIES} + ${LIBAVUTIL_LIBRARIES} + ) + else() + target_compile_definitions(PC6001VX PRIVATE NOAVI) + endif() @