pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
minetest: upgrade to 5.8.0
Module Name: pkgsrc-wip
Committed By: Kevin Bloom <kevin.bloom%posteo.net@localhost>
Pushed By: nuclearkev
Date: Wed Dec 6 22:10:40 2023 -0500
Changeset: 51afca7881bf842d144745d3dd24ff2021156517
Added Files:
minetest/DESCR
minetest/Makefile
minetest/PLIST
minetest/TODO
minetest/distinfo
minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp
minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_os.cpp
minetest/patches/patch-src_util_string.cpp
Log Message:
minetest: upgrade to 5.8.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=51afca7881bf842d144745d3dd24ff2021156517
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
minetest/DESCR | 2 +
minetest/Makefile | 85 ++++++
minetest/PLIST | 300 +++++++++++++++++++++
minetest/TODO | 2 +
minetest/distinfo | 11 +
..._irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp | 52 ++++
.../patch-lib_irrlichtmt_source_Irrlicht_os.cpp | 18 ++
minetest/patches/patch-src_util_string.cpp | 34 +++
8 files changed, 504 insertions(+)
diffs:
diff --git a/minetest/DESCR b/minetest/DESCR
new file mode 100644
index 0000000000..2e78e918ef
--- /dev/null
+++ b/minetest/DESCR
@@ -0,0 +1,2 @@
+Minetest is an infinite-world block sandbox game engine with support
+for survival and crafting.
diff --git a/minetest/Makefile b/minetest/Makefile
new file mode 100644
index 0000000000..5102fe6caa
--- /dev/null
+++ b/minetest/Makefile
@@ -0,0 +1,85 @@
+# $NetBSD: Makefile,v 1.31 2023/11/12 13:21:40 wiz Exp $
+
+PKGNAME= minetest-5.8.0
+PKGREVISION= 3
+CATEGORIES= games
+DIST_SUBDIR= minetest-${PKGVERSION_NOREV}
+DISTFILES+= minetest.tar.gz
+
+# This is a fork by the Minetest developers that was stripped-down and
+# customized specifically for use in Minetest.
+# It is intentionally not compatible to upstream and is planned to be
+# eventually absorbed into Minetest.
+# Repository: https://github.com/minetest/irrlicht
+DISTFILES+= irrlicht.tar.gz
+IRRLICHT_VERSION= 1.9.0mt13
+SITES.minetest.tar.gz= \
+-https://github.com/minetest/minetest/archive/${PKGVERSION_NOREV}.tar.gz
+SITES.irrlicht.tar.gz= \
+ -https://github.com/minetest/irrlicht/archive/${IRRLICHT_VERSION}.tar.gz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.minetest.net/
+COMMENT= Infinite-world block sandbox with survival and crafting
+LICENSE= gnu-lgpl-v2.1 AND cc-by-sa-v3.0 AND apache-2.0
+
+WRKSRC= ${WRKDIR}/minetest-${PKGVERSION_NOREV}
+
+USE_CMAKE= yes
+USE_TOOLS+= msgfmt
+USE_LANGUAGES= c c++
+
+# "Insufficient gcc version, found 4.8.5. Version 4.9 or higher is required."
+GCC_REQD+= 4.9
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release"
+
+CMAKE_ARGS+= -DBUILD_CLIENT=TRUE
+CMAKE_ARGS+= -DBUILD_SERVER=TRUE
+
+CMAKE_ARGS+= -DENABLE_POSTGRESQL=FALSE
+CMAKE_ARGS+= -DENABLE_LEVELDB=FALSE
+CMAKE_ARGS+= -DENABLE_REDIS=FALSE
+CMAKE_ARGS+= -DENABLE_SPATIAL=FALSE
+#.include "../../lang/LuaJIT2/platform.mk"
+#.if ${PLATFORM_SUPPORTS_LUAJIT} == "no"
+#CMAKE_ARGS+= -DENABLE_LUAJIT=FALSE
+#.endif
+# Binaries built with LuaJIT support have been broken since 2015, see:
+# https://github.com/minetest/minetest/issues/2988
+CMAKE_ARGS+= -DENABLE_LUAJIT=FALSE
+# As described above, use Minetest forked version of irrlicht.
+#CMAKE_ARGS+= -DIRRLICHT_INCLUDE_DIR=${BUILDLINK_PREFIX.irrlicht}/include/irrlicht
+
+post-extract:
+ ${MV} ${WRKDIR}/irrlicht-${IRRLICHT_VERSION} \
+ ${WRKSRC}/lib/irrlichtmt
+
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../devel/ncursesw/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../archivers/zstd/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+#.include "../../graphics/irrlicht/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+#.if ${PLATFORM_SUPPORTS_LUAJIT} != "no"
+#.include "../../lang/LuaJIT2/buildlink3.mk"
+#.endif
+.include "../../www/curl/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/minetest/PLIST b/minetest/PLIST
new file mode 100644
index 0000000000..bfa283c610
--- /dev/null
+++ b/minetest/PLIST
@@ -0,0 +1,300 @@
+@comment $NetBSD$
+bin/minetest
+bin/minetestserver
+man/man6/minetest.6
+man/man6/minetestserver.6
+share/applications/net.minetest.minetest.desktop
+share/doc/minetest/README.md
+share/doc/minetest/client_lua_api.md
+share/doc/minetest/lua_api.md
+share/doc/minetest/menu_lua_api.md
+share/doc/minetest/minetest.conf.example
+share/doc/minetest/texture_packs.md
+share/doc/minetest/world_format.md
+share/icons/hicolor/128x128/apps/minetest.png
+share/icons/hicolor/scalable/apps/minetest.svg
+share/locale/be/LC_MESSAGES/minetest.mo
+share/locale/bg/LC_MESSAGES/minetest.mo
+share/locale/ca/LC_MESSAGES/minetest.mo
+share/locale/cs/LC_MESSAGES/minetest.mo
+share/locale/cy/LC_MESSAGES/minetest.mo
+share/locale/da/LC_MESSAGES/minetest.mo
+share/locale/de/LC_MESSAGES/minetest.mo
+share/locale/el/LC_MESSAGES/minetest.mo
+share/locale/eo/LC_MESSAGES/minetest.mo
+share/locale/es/LC_MESSAGES/minetest.mo
+share/locale/et/LC_MESSAGES/minetest.mo
+share/locale/eu/LC_MESSAGES/minetest.mo
+share/locale/fa/LC_MESSAGES/minetest.mo
+share/locale/fi/LC_MESSAGES/minetest.mo
+share/locale/fil/LC_MESSAGES/minetest.mo
+share/locale/fr/LC_MESSAGES/minetest.mo
+share/locale/ga/LC_MESSAGES/minetest.mo
+share/locale/gd/LC_MESSAGES/minetest.mo
+share/locale/gl/LC_MESSAGES/minetest.mo
+share/locale/hu/LC_MESSAGES/minetest.mo
+share/locale/ia/LC_MESSAGES/minetest.mo
+share/locale/id/LC_MESSAGES/minetest.mo
+share/locale/it/LC_MESSAGES/minetest.mo
+share/locale/ja/LC_MESSAGES/minetest.mo
+share/locale/jbo/LC_MESSAGES/minetest.mo
+share/locale/jv/LC_MESSAGES/minetest.mo
+share/locale/kk/LC_MESSAGES/minetest.mo
+share/locale/ko/LC_MESSAGES/minetest.mo
+share/locale/ky/LC_MESSAGES/minetest.mo
+share/locale/lt/LC_MESSAGES/minetest.mo
+share/locale/lv/LC_MESSAGES/minetest.mo
+share/locale/lzh/LC_MESSAGES/minetest.mo
+share/locale/mi/LC_MESSAGES/minetest.mo
+share/locale/mn/LC_MESSAGES/minetest.mo
+share/locale/mr/LC_MESSAGES/minetest.mo
+share/locale/ms/LC_MESSAGES/minetest.mo
+share/locale/nb/LC_MESSAGES/minetest.mo
+share/locale/nl/LC_MESSAGES/minetest.mo
+share/locale/nn/LC_MESSAGES/minetest.mo
+share/locale/oc/LC_MESSAGES/minetest.mo
+share/locale/pl/LC_MESSAGES/minetest.mo
+share/locale/pt/LC_MESSAGES/minetest.mo
+share/locale/pt_BR/LC_MESSAGES/minetest.mo
+share/locale/ro/LC_MESSAGES/minetest.mo
+share/locale/ru/LC_MESSAGES/minetest.mo
+share/locale/sk/LC_MESSAGES/minetest.mo
+share/locale/sl/LC_MESSAGES/minetest.mo
+share/locale/sr_Cyrl/LC_MESSAGES/minetest.mo
+share/locale/sr_Latn/LC_MESSAGES/minetest.mo
+share/locale/sv/LC_MESSAGES/minetest.mo
+share/locale/sw/LC_MESSAGES/minetest.mo
+share/locale/tr/LC_MESSAGES/minetest.mo
+share/locale/tt/LC_MESSAGES/minetest.mo
+share/locale/uk/LC_MESSAGES/minetest.mo
+share/locale/vi/LC_MESSAGES/minetest.mo
+share/locale/yue/LC_MESSAGES/minetest.mo
+share/locale/zh_CN/LC_MESSAGES/minetest.mo
+share/locale/zh_TW/LC_MESSAGES/minetest.mo
+share/metainfo/net.minetest.minetest.appdata.xml
+share/minetest/builtin/async/game.lua
+share/minetest/builtin/async/mainmenu.lua
+share/minetest/builtin/client/chatcommands.lua
+share/minetest/builtin/client/death_formspec.lua
+share/minetest/builtin/client/init.lua
+share/minetest/builtin/client/misc.lua
+share/minetest/builtin/client/register.lua
+share/minetest/builtin/common/after.lua
+share/minetest/builtin/common/chatcommands.lua
+share/minetest/builtin/common/filterlist.lua
+share/minetest/builtin/common/information_formspecs.lua
+share/minetest/builtin/common/item_s.lua
+share/minetest/builtin/common/misc_helpers.lua
+share/minetest/builtin/common/mod_storage.lua
+share/minetest/builtin/common/register.lua
+share/minetest/builtin/common/serialize.lua
+share/minetest/builtin/common/strict.lua
+share/minetest/builtin/common/tests/misc_helpers_spec.lua
+share/minetest/builtin/common/tests/serialize_spec.lua
+share/minetest/builtin/common/tests/vector_spec.lua
+share/minetest/builtin/common/vector.lua
+share/minetest/builtin/fstk/buttonbar.lua
+share/minetest/builtin/fstk/dialog.lua
+share/minetest/builtin/fstk/tabview.lua
+share/minetest/builtin/fstk/ui.lua
+share/minetest/builtin/game/async.lua
+share/minetest/builtin/game/auth.lua
+share/minetest/builtin/game/chat.lua
+share/minetest/builtin/game/constants.lua
+share/minetest/builtin/game/deprecated.lua
+share/minetest/builtin/game/detached_inventory.lua
+share/minetest/builtin/game/falling.lua
+share/minetest/builtin/game/features.lua
+share/minetest/builtin/game/forceloading.lua
+share/minetest/builtin/game/init.lua
+share/minetest/builtin/game/item.lua
+share/minetest/builtin/game/item_entity.lua
+share/minetest/builtin/game/knockback.lua
+share/minetest/builtin/game/misc.lua
+share/minetest/builtin/game/misc_s.lua
+share/minetest/builtin/game/privileges.lua
+share/minetest/builtin/game/register.lua
+share/minetest/builtin/game/statbars.lua
+share/minetest/builtin/game/static_spawn.lua
+share/minetest/builtin/game/voxelarea.lua
+share/minetest/builtin/init.lua
+share/minetest/builtin/locale/__builtin.de.tr
+share/minetest/builtin/locale/__builtin.id.tr
+share/minetest/builtin/locale/__builtin.it.tr
+share/minetest/builtin/locale/__builtin.ms.tr
+share/minetest/builtin/locale/__builtin.ru.tr
+share/minetest/builtin/locale/template.txt
+share/minetest/builtin/mainmenu/async_event.lua
+share/minetest/builtin/mainmenu/common.lua
+share/minetest/builtin/mainmenu/content/dlg_contentstore.lua
+share/minetest/builtin/mainmenu/content/init.lua
+share/minetest/builtin/mainmenu/content/pkgmgr.lua
+share/minetest/builtin/mainmenu/content/tests/pkgmgr_spec.lua
+share/minetest/builtin/mainmenu/content/update_detector.lua
+share/minetest/builtin/mainmenu/dlg_config_world.lua
+share/minetest/builtin/mainmenu/dlg_create_world.lua
+share/minetest/builtin/mainmenu/dlg_delete_content.lua
+share/minetest/builtin/mainmenu/dlg_delete_world.lua
+share/minetest/builtin/mainmenu/dlg_register.lua
+share/minetest/builtin/mainmenu/dlg_reinstall_mtg.lua
+share/minetest/builtin/mainmenu/dlg_rename_modpack.lua
+share/minetest/builtin/mainmenu/dlg_version_info.lua
+share/minetest/builtin/mainmenu/game_theme.lua
+share/minetest/builtin/mainmenu/init.lua
+share/minetest/builtin/mainmenu/misc.lua
+share/minetest/builtin/mainmenu/serverlistmgr.lua
+share/minetest/builtin/mainmenu/settings/components.lua
+share/minetest/builtin/mainmenu/settings/dlg_change_mapgen_flags.lua
+share/minetest/builtin/mainmenu/settings/dlg_settings.lua
+share/minetest/builtin/mainmenu/settings/generate_from_settingtypes.lua
+share/minetest/builtin/mainmenu/settings/init.lua
+share/minetest/builtin/mainmenu/settings/settingtypes.lua
+share/minetest/builtin/mainmenu/settings/shadows_component.lua
+share/minetest/builtin/mainmenu/tab_about.lua
+share/minetest/builtin/mainmenu/tab_content.lua
+share/minetest/builtin/mainmenu/tab_local.lua
+share/minetest/builtin/mainmenu/tab_online.lua
+share/minetest/builtin/mainmenu/tests/favorites_wellformed.txt
+share/minetest/builtin/mainmenu/tests/serverlistmgr_spec.lua
+share/minetest/builtin/profiler/init.lua
+share/minetest/builtin/profiler/instrumentation.lua
+share/minetest/builtin/profiler/reporter.lua
+share/minetest/builtin/profiler/sampling.lua
+share/minetest/builtin/settingtypes.txt
+share/minetest/client/shaders/3d_interlaced_merge/opengl_fragment.glsl
+share/minetest/client/shaders/3d_interlaced_merge/opengl_vertex.glsl
+share/minetest/client/shaders/bloom_downsample/opengl_fragment.glsl
+share/minetest/client/shaders/bloom_downsample/opengl_vertex.glsl
+share/minetest/client/shaders/bloom_upsample/opengl_fragment.glsl
+share/minetest/client/shaders/bloom_upsample/opengl_vertex.glsl
+share/minetest/client/shaders/blur_h/opengl_fragment.glsl
+share/minetest/client/shaders/blur_h/opengl_vertex.glsl
+share/minetest/client/shaders/blur_v/opengl_fragment.glsl
+share/minetest/client/shaders/blur_v/opengl_vertex.glsl
+share/minetest/client/shaders/default_shader/opengl_fragment.glsl
+share/minetest/client/shaders/default_shader/opengl_vertex.glsl
+share/minetest/client/shaders/extract_bloom/opengl_fragment.glsl
+share/minetest/client/shaders/extract_bloom/opengl_vertex.glsl
+share/minetest/client/shaders/fxaa/opengl_fragment.glsl
+share/minetest/client/shaders/fxaa/opengl_vertex.glsl
+share/minetest/client/shaders/minimap_shader/opengl_fragment.glsl
+share/minetest/client/shaders/minimap_shader/opengl_vertex.glsl
+share/minetest/client/shaders/nodes_shader/opengl_fragment.glsl
+share/minetest/client/shaders/nodes_shader/opengl_vertex.glsl
+share/minetest/client/shaders/object_shader/opengl_fragment.glsl
+share/minetest/client/shaders/object_shader/opengl_vertex.glsl
+share/minetest/client/shaders/second_stage/opengl_fragment.glsl
+share/minetest/client/shaders/second_stage/opengl_vertex.glsl
+share/minetest/client/shaders/selection_shader/opengl_fragment.glsl
+share/minetest/client/shaders/selection_shader/opengl_vertex.glsl
+share/minetest/client/shaders/shadow_shaders/pass1_fragment.glsl
+share/minetest/client/shaders/shadow_shaders/pass1_trans_fragment.glsl
+share/minetest/client/shaders/shadow_shaders/pass1_trans_vertex.glsl
+share/minetest/client/shaders/shadow_shaders/pass1_vertex.glsl
+share/minetest/client/shaders/shadow_shaders/pass2_fragment.glsl
+share/minetest/client/shaders/shadow_shaders/pass2_vertex.glsl
+share/minetest/client/shaders/stars_shader/opengl_fragment.glsl
+share/minetest/client/shaders/stars_shader/opengl_vertex.glsl
+share/minetest/client/shaders/update_exposure/opengl_fragment.glsl
+share/minetest/client/shaders/update_exposure/opengl_vertex.glsl
+share/minetest/fonts/Arimo-Bold.ttf
+share/minetest/fonts/Arimo-BoldItalic.ttf
+share/minetest/fonts/Arimo-Italic.ttf
+share/minetest/fonts/Arimo-LICENSE.txt
+share/minetest/fonts/Arimo-Regular.ttf
+share/minetest/fonts/Cousine-Bold.ttf
+share/minetest/fonts/Cousine-BoldItalic.ttf
+share/minetest/fonts/Cousine-Italic.ttf
+share/minetest/fonts/Cousine-LICENSE.txt
+share/minetest/fonts/Cousine-Regular.ttf
+share/minetest/fonts/DroidSansFallbackFull-LICENSE.txt
+share/minetest/fonts/DroidSansFallbackFull.ttf
+share/minetest/textures/base/pack/air.png
+share/minetest/textures/base/pack/aux1_btn.png
+share/minetest/textures/base/pack/blank.png
+share/minetest/textures/base/pack/bubble.png
+share/minetest/textures/base/pack/bubble_gone.png
+share/minetest/textures/base/pack/camera_btn.png
+share/minetest/textures/base/pack/cdb_add.png
+share/minetest/textures/base/pack/cdb_clear.png
+share/minetest/textures/base/pack/cdb_downloading.png
+share/minetest/textures/base/pack/cdb_queued.png
+share/minetest/textures/base/pack/cdb_update.png
+share/minetest/textures/base/pack/cdb_update_cropped.png
+share/minetest/textures/base/pack/cdb_viewonline.png
+share/minetest/textures/base/pack/chat_btn.png
+share/minetest/textures/base/pack/chat_hide_btn.png
+share/minetest/textures/base/pack/chat_show_btn.png
+share/minetest/textures/base/pack/checkbox_16.png
+share/minetest/textures/base/pack/checkbox_32.png
+share/minetest/textures/base/pack/checkbox_64.png
+share/minetest/textures/base/pack/clear.png
+share/minetest/textures/base/pack/crack_anylength.png
+share/minetest/textures/base/pack/debug_btn.png
+share/minetest/textures/base/pack/down.png
+share/minetest/textures/base/pack/drop_btn.png
+share/minetest/textures/base/pack/end_icon.png
+share/minetest/textures/base/pack/error_icon_orange.png
+share/minetest/textures/base/pack/error_icon_red.png
+share/minetest/textures/base/pack/error_screenshot.png
+share/minetest/textures/base/pack/exit_btn.png
+share/minetest/textures/base/pack/fast_btn.png
+share/minetest/textures/base/pack/fly_btn.png
+share/minetest/textures/base/pack/gear_icon.png
+share/minetest/textures/base/pack/halo.png
+share/minetest/textures/base/pack/heart.png
+share/minetest/textures/base/pack/heart_gone.png
+share/minetest/textures/base/pack/ignore.png
+share/minetest/textures/base/pack/inventory_btn.png
+share/minetest/textures/base/pack/joystick_bg.png
+share/minetest/textures/base/pack/joystick_center.png
+share/minetest/textures/base/pack/joystick_off.png
+share/minetest/textures/base/pack/jump_btn.png
+share/minetest/textures/base/pack/loading_screenshot.png
+share/minetest/textures/base/pack/logo.png
+share/minetest/textures/base/pack/menu_bg.png
+share/minetest/textures/base/pack/menu_header.png
+share/minetest/textures/base/pack/minimap_btn.png
+share/minetest/textures/base/pack/minimap_mask_round.png
+share/minetest/textures/base/pack/minimap_mask_square.png
+share/minetest/textures/base/pack/minimap_overlay_round.png
+share/minetest/textures/base/pack/minimap_overlay_square.png
+share/minetest/textures/base/pack/next_icon.png
+share/minetest/textures/base/pack/no_screenshot.png
+share/minetest/textures/base/pack/no_texture.png
+share/minetest/textures/base/pack/no_texture_airlike.png
+share/minetest/textures/base/pack/noclip_btn.png
+share/minetest/textures/base/pack/object_marker_red.png
+share/minetest/textures/base/pack/player.png
+share/minetest/textures/base/pack/player_back.png
+share/minetest/textures/base/pack/player_marker.png
+share/minetest/textures/base/pack/plus.png
+share/minetest/textures/base/pack/prev_icon.png
+share/minetest/textures/base/pack/progress_bar.png
+share/minetest/textures/base/pack/progress_bar_bg.png
+share/minetest/textures/base/pack/rangeview_btn.png
+share/minetest/textures/base/pack/rare_controls.png
+share/minetest/textures/base/pack/refresh.png
+share/minetest/textures/base/pack/search.png
+share/minetest/textures/base/pack/server_favorite.png
+share/minetest/textures/base/pack/server_favorite_delete.png
+share/minetest/textures/base/pack/server_flags_creative.png
+share/minetest/textures/base/pack/server_flags_damage.png
+share/minetest/textures/base/pack/server_flags_pvp.png
+share/minetest/textures/base/pack/server_incompatible.png
+share/minetest/textures/base/pack/server_ping_1.png
+share/minetest/textures/base/pack/server_ping_2.png
+share/minetest/textures/base/pack/server_ping_3.png
+share/minetest/textures/base/pack/server_ping_4.png
+share/minetest/textures/base/pack/server_public.png
+share/minetest/textures/base/pack/settings_btn.png
+share/minetest/textures/base/pack/settings_info.png
+share/minetest/textures/base/pack/settings_reset.png
+share/minetest/textures/base/pack/smoke_puff.png
+share/minetest/textures/base/pack/start_icon.png
+share/minetest/textures/base/pack/sunrisebg.png
+share/minetest/textures/base/pack/unknown_item.png
+share/minetest/textures/base/pack/unknown_node.png
+share/minetest/textures/base/pack/unknown_object.png
+share/minetest/textures/base/pack/wieldhand.png
+share/minetest/textures/base/pack/zoom.png
diff --git a/minetest/TODO b/minetest/TODO
new file mode 100644
index 0000000000..581c4d5d8e
--- /dev/null
+++ b/minetest/TODO
@@ -0,0 +1,2 @@
+add COMMIT_MSG
+testing
diff --git a/minetest/distinfo b/minetest/distinfo
new file mode 100644
index 0000000000..999eeeab72
--- /dev/null
+++ b/minetest/distinfo
@@ -0,0 +1,11 @@
+$NetBSD$
+
+BLAKE2s (minetest-5.8.0/irrlicht.tar.gz) = 01ae00e621c1c3911e436dffa76b16d67aa0e2922b7c0aff9f364bfce100b4f6
+SHA512 (minetest-5.8.0/irrlicht.tar.gz) = 5226d78eaacf8b56eafbbb6359bfb6137f9d6a555a252224e33d39c0d219fcb7d0d29fd3828961eee37d55940f3aa6e767fea31c96fb772dd5eca3889f5ac16e
+Size (minetest-5.8.0/irrlicht.tar.gz) = 754056 bytes
+BLAKE2s (minetest-5.8.0/minetest.tar.gz) = 4c4a2bf3ec87c12bfe248289804f76002eef2dc93cce3413436c0d7cf4f2d084
+SHA512 (minetest-5.8.0/minetest.tar.gz) = 0b376ecc051032ccb542f2f76e2b1f5c351b32f1c211027825b1538095f44cb1447cd0976cb85a4cde4ecb53873bcb9f3778799271ed65b038a031dc137c2aba
+Size (minetest-5.8.0/minetest.tar.gz) = 10419348 bytes
+SHA1 (patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp) = b7438ca35758a319fed3f36d01dd699141a63ea7
+SHA1 (patch-lib_irrlichtmt_source_Irrlicht_os.cpp) = 48e29772199a173969b86aca83dee1d9fbe41c0b
+SHA1 (patch-src_util_string.cpp) = f240efd440fa540c1f767735892b9177089a8f30
diff --git a/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp b/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp
new file mode 100644
index 0000000000..a2653d85bd
--- /dev/null
+++ b/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp
@@ -0,0 +1,52 @@
+$NetBSD$
+
+Use FreeBSD's support for NetBSD
+
+--- lib/irrlichtmt/source/Irrlicht/CIrrDeviceLinux.cpp.orig 2023-10-27 15:48:29.000000000 +0000
++++ lib/irrlichtmt/source/Irrlicht/CIrrDeviceLinux.cpp
+@@ -28,6 +28,7 @@
+ #include "IFileSystem.h"
+ #include <X11/XKBlib.h>
+ #include <X11/Xatom.h>
++#include <unistd.h>
+
+ #if defined(_IRR_LINUX_X11_XINPUT2_)
+ #include <X11/extensions/XInput2.h>
+@@ -47,9 +48,8 @@
+
+ #if defined _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
+ #include <fcntl.h>
+-#include <unistd.h>
+
+-#ifdef __FreeBSD__
++#if defined(__NetBSD__) || defined(__FreeBSD__)
+ #include <sys/joystick.h>
+ #else
+
+@@ -1690,7 +1690,7 @@ bool CIrrDeviceLinux::activateJoysticks(
+ if (-1 == info.fd)
+ continue;
+
+-#ifdef __FreeBSD__
++#if defined(__NetBSD__) || defined(__FreeBSD__)
+ info.axes=2;
+ info.buttons=2;
+ #else
+@@ -1714,7 +1714,7 @@ bool CIrrDeviceLinux::activateJoysticks(
+ returnInfo.Axes = info.axes;
+ returnInfo.Buttons = info.buttons;
+
+-#ifndef __FreeBSD__
++#if !defined(__NetBSD__) && !defined(__FreeBSD__)
+ char name[80];
+ ioctl( info.fd, JSIOCGNAME(80), name);
+ returnInfo.Name = name;
+@@ -1749,7 +1749,7 @@ void CIrrDeviceLinux::pollJoysticks()
+ {
+ JoystickInfo & info = ActiveJoysticks[j];
+
+-#ifdef __FreeBSD__
++#if defined(__NetBSD__) || defined(__FreeBSD__)
+ struct joystick js;
+ if (read(info.fd, &js, sizeof(js)) == sizeof(js))
+ {
diff --git a/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_os.cpp b/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_os.cpp
new file mode 100644
index 0000000000..4a4901468e
--- /dev/null
+++ b/minetest/patches/patch-lib_irrlichtmt_source_Irrlicht_os.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Add NetBSD's endian functions
+
+--- lib/irrlichtmt/source/Irrlicht/os.cpp.orig 2023-10-27 15:48:29.000000000 +0000
++++ lib/irrlichtmt/source/Irrlicht/os.cpp
+@@ -31,6 +31,11 @@
+ #define bswap_16(X) letoh16(X)
+ #define bswap_32(X) letoh32(X)
+ #define bswap_64(X) letoh64(X)
++#elif defined(__NetBSD__)
++ #include <endian.h>
++ #define bswap_16(X) htole16(X)
++ #define bswap_32(X) htole32(X)
++ #define bswap_64(X) htole64(X)
+ #elif !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__PPC__) && !defined(_IRR_WINDOWS_API_)
+ #include <byteswap.h>
+ #else
diff --git a/minetest/patches/patch-src_util_string.cpp b/minetest/patches/patch-src_util_string.cpp
new file mode 100644
index 0000000000..f013a084fd
--- /dev/null
+++ b/minetest/patches/patch-src_util_string.cpp
@@ -0,0 +1,34 @@
+$NetBSD: patch-src_util_string.cpp,v 1.6 2023/08/28 07:01:29 nia Exp $
+
+Support non-POSIX iconv on NetBSD before 10 and SunOS.
+
+--- src/util/string.cpp.orig 2023-04-08 16:04:52.000000000 +0000
++++ src/util/string.cpp
+@@ -39,6 +39,15 @@ with this program; if not, write to the
+ #include <windows.h>
+ #endif
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV 1
++#else
++#define NETBSD_POSIX_ICONV 0
++#endif
++#endif
++
+ #ifndef _WIN32
+
+ static bool convert(const char *to, const char *from, char *outbuf,
+@@ -54,7 +63,11 @@ static bool convert(const char *to, cons
+ const size_t old_outbuf_size = *outbuf_size;
+ size_t old_size = inbuf_size;
+ while (inbuf_size > 0) {
++#if (defined(__NetBSD__) && !NETBSD_POSIX_ICONV) || defined(__sun)
++ iconv(cd, (const char **)&inbuf_ptr, inbuf_left_ptr, &outbuf_ptr, outbuf_size);
++#else
+ iconv(cd, &inbuf_ptr, inbuf_left_ptr, &outbuf_ptr, outbuf_size);
++#endif
+ if (inbuf_size == old_size) {
+ iconv_close(cd);
+ return false;
Home |
Main Index |
Thread Index |
Old Index