pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add arcan 0.5.5.2.



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Sun Jun 30 20:02:34 2019 +0300
Changeset:	9db81ac5ec51a7e3e221b2ff85646f7830814b2b

Added Files:
	arcan/DESCR
	arcan/Makefile
	arcan/PLIST
	arcan/TODO
	arcan/distinfo
	arcan/patches/patch-src_frameserver_avfeed_CMakeLists.txt
	arcan/patches/patch-src_frameserver_terminal_default_CMakeLists.txt
	arcan/patches/patch-src_frameserver_terminal_default_tsm_shl-pty.c
	arcan/patches/patch-src_platform_cmake_CMakeLists.BSD
	arcan/patches/patch-src_platform_cmake_modules_FindGBMKMS.cmake
	arcan/patches/patch-src_platform_cmake_modules_FindOpenGL.cmake
	arcan/patches/patch-src_platform_posix_psep__open.c
	arcan/patches/patch-src_platform_posix_random.c

Log Message:
Add arcan 0.5.5.2.

Arcan is a powerful development framework for creating virtually
anything from user interfaces for specialized embedded applications
all the way to full-blown standalone desktop environments.

At its heart lies a robust and portable multimedia engine, with a
well-tested and well-documented Lua scripting interface. The
development emphasizes security, debuggability and performance --
guided by a principle of least surprise in terms of API design.

Adapted to netbsd, but it doesn't run on it yet. Note that in TODO.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9db81ac5ec51a7e3e221b2ff85646f7830814b2b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 arcan/DESCR                                        |   8 +
 arcan/Makefile                                     |  42 ++++
 arcan/PLIST                                        | 273 +++++++++++++++++++++
 arcan/TODO                                         |   1 +
 arcan/distinfo                                     |  14 ++
 .../patch-src_frameserver_avfeed_CMakeLists.txt    |  15 ++
 ...src_frameserver_terminal_default_CMakeLists.txt |  15 ++
 ...-src_frameserver_terminal_default_tsm_shl-pty.c |  15 ++
 .../patch-src_platform_cmake_CMakeLists.BSD        |  29 +++
 ...tch-src_platform_cmake_modules_FindGBMKMS.cmake |  30 +++
 ...tch-src_platform_cmake_modules_FindOpenGL.cmake |  16 ++
 .../patches/patch-src_platform_posix_psep__open.c  |  16 ++
 arcan/patches/patch-src_platform_posix_random.c    |  23 ++
 13 files changed, 497 insertions(+)

diffs:
diff --git a/arcan/DESCR b/arcan/DESCR
new file mode 100644
index 0000000000..439ee1b883
--- /dev/null
+++ b/arcan/DESCR
@@ -0,0 +1,8 @@
+Arcan is a powerful development framework for creating virtually
+anything from user interfaces for specialized embedded applications
+all the way to full-blown standalone desktop environments.
+
+At its heart lies a robust and portable multimedia engine, with a
+well-tested and well-documented Lua scripting interface. The
+development emphasizes security, debuggability and performance --
+guided by a principle of least surprise in terms of API design.
diff --git a/arcan/Makefile b/arcan/Makefile
new file mode 100644
index 0000000000..44a5a5787b
--- /dev/null
+++ b/arcan/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	arcan
+DISTNAME=	0.5.5.2
+PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_GITHUB:=letoram/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	coypu+arcan%sdf.org@localhost
+HOMEPAGE=	https://github.com/letoram/arcan/
+COMMENT=	Graphical development toolkit
+LICENSE=	modified-bsd AND gnu-gpl-v2 AND gnu-lgpl-v2 AND public-domain
+
+WRKSRC=		${WRKDIR}/arcan-${DISTNAME}
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+USE_CMAKE=	yes
+CMAKE_ARG_PATH=	src
+
+PKGCONFIG_OVERRIDE+=	src/platform/cmake/shmif_ext.pc.in
+PKGCONFIG_OVERRIDE+=	src/platform/cmake/shmif.pc.in
+PKGCONFIG_OVERRIDE+=	src/platform/cmake/shmif_srv.pc.in
+PKGCONFIG_OVERRIDE+=	src/platform/cmake/shmif_tui.pc.in
+
+BUILDLINK_TRANSFORM+=	rm:-march=native
+
+# Ruby replace happens too late.
+pre-configure: 
+	chmod +x ${WRKSRC}/doc/docgen.rb
+	cd ${WRKSRC}/doc && ruby${RUBY_VER} ./docgen.rb mangen
+
+.include "../../lang/ruby/buildlink3.mk"
+BUILDLINK_DEPMETHOD.${RUBY_BASE}=	build
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../fonts/harfbuzz/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../lang/LuaJIT2/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/arcan/PLIST b/arcan/PLIST
new file mode 100644
index 0000000000..92afcee494
--- /dev/null
+++ b/arcan/PLIST
@@ -0,0 +1,273 @@
+@comment $NetBSD$
+bin/afsrv_avfeed
+bin/afsrv_game
+bin/afsrv_terminal
+bin/arcan
+bin/arcan_db
+bin/arcan_frameserver
+include/arcan/arcan_tui.h
+include/arcan/arcan_tuidefs.h
+include/arcan/arcan_tuisym.h
+include/arcan/shmif/arcan_shmif.h
+include/arcan/shmif/arcan_shmif_cfg.h
+include/arcan/shmif/arcan_shmif_control.h
+include/arcan/shmif/arcan_shmif_defs.h
+include/arcan/shmif/arcan_shmif_event.h
+include/arcan/shmif/arcan_shmif_interop.h
+include/arcan/shmif/arcan_shmif_server.h
+include/arcan/shmif/arcan_shmif_sub.h
+lib/libarcan_shmif.a
+lib/libarcan_shmif.${RUBY_DLEXT}
+lib/libarcan_shmif.so.0.11
+lib/libarcan_shmif_ext.${RUBY_DLEXT}
+lib/libarcan_shmif_ext.so.0.11
+lib/libarcan_shmif_server.${RUBY_DLEXT}
+lib/libarcan_shmif_server.so.0.11
+lib/libarcan_tui.${RUBY_DLEXT}
+lib/libarcan_tui.so.0.11
+libdata/pkgconfig/arcan-shmif-ext.pc
+libdata/pkgconfig/arcan-shmif-srv.pc
+libdata/pkgconfig/arcan-shmif-tui.pc
+libdata/pkgconfig/arcan-shmif.pc
+man/man1/arcan.1
+man/man1/arcan_db.1
+man/man3/accept_target.3
+man/man3/add_3dmesh.3
+man/man3/alloc_surface.3
+man/man3/arcan_api_overview.3
+man/man3/attrtag_model.3
+man/man3/audio_buffer_size.3
+man/man3/audio_gain.3
+man/man3/benchmark_data.3
+man/man3/benchmark_enable.3
+man/man3/benchmark_timestamp.3
+man/man3/blend_image.3
+man/man3/bond_target.3
+man/man3/build_3dbox.3
+man/man3/build_3dplane.3
+man/man3/build_cylinder.3
+man/man3/build_pointcloud.3
+man/man3/build_shader.3
+man/man3/build_sphere.3
+man/man3/camtag_model.3
+man/man3/capture_audio.3
+man/man3/center_image.3
+man/man3/close_rawresource.3
+man/man3/color_surface.3
+man/man3/controller_leds.3
+man/man3/copy_image_transform.3
+man/man3/copy_surface_properties.3
+man/man3/crop_image.3
+man/man3/current_context_usage.3
+man/man3/cursor_position.3
+man/man3/cursor_setstorage.3
+man/man3/decode_modifiers.3
+man/man3/define_arcantarget.3
+man/man3/define_calctarget.3
+man/man3/define_feedtarget.3
+man/man3/define_linktarget.3
+man/man3/define_nulltarget.3
+man/man3/define_recordtarget.3
+man/man3/define_rendertarget.3
+man/man3/delete_audio.3
+man/man3/delete_image.3
+man/man3/delete_shader.3
+man/man3/expire_image.3
+man/man3/fill_surface.3
+man/man3/finalize_3dmodel.3
+man/man3/force_image_blend.3
+man/man3/forward3d_model.3
+man/man3/frameserver_debugstall.3
+man/man3/freeze_image.3
+man/man3/get_key.3
+man/man3/get_keys.3
+man/man3/glob_resource.3
+man/man3/hide_image.3
+man/man3/image_access_storage.3
+man/man3/image_active_frame.3
+man/man3/image_children.3
+man/man3/image_clip_off.3
+man/man3/image_clip_on.3
+man/man3/image_color.3
+man/man3/image_framecyclemode.3
+man/man3/image_framesetsize.3
+man/man3/image_get_txcos.3
+man/man3/image_hit.3
+man/man3/image_inherit_order.3
+man/man3/image_loaded.3
+man/man3/image_mask_clear.3
+man/man3/image_mask_clearall.3
+man/man3/image_mask_set.3
+man/man3/image_mask_toggle.3
+man/man3/image_matchstorage.3
+man/man3/image_mipmap.3
+man/man3/image_origo_offset.3
+man/man3/image_parent.3
+man/man3/image_pushasynch.3
+man/man3/image_resize_storage.3
+man/man3/image_scale_txcos.3
+man/man3/image_screen_coordinates.3
+man/man3/image_set_txcos.3
+man/man3/image_set_txcos_default.3
+man/man3/image_shader.3
+man/man3/image_sharestorage.3
+man/man3/image_state.3
+man/man3/image_storage_properties.3
+man/man3/image_storage_slice.3
+man/man3/image_surface_initial.3
+man/man3/image_surface_initial_properties.3
+man/man3/image_surface_properties.3
+man/man3/image_surface_resolve.3
+man/man3/image_surface_resolve_properties.3
+man/man3/image_tesselation.3
+man/man3/image_texfilter.3
+man/man3/image_tracetag.3
+man/man3/image_transform_cycle.3
+man/man3/input_capabilities.3
+man/man3/input_samplebase.3
+man/man3/input_target.3
+man/man3/inputanalog_filter.3
+man/man3/inputanalog_query.3
+man/man3/inputanalog_toggle.3
+man/man3/instant_image_transform.3
+man/man3/kbd_repeat.3
+man/man3/launch_avfeed.3
+man/man3/launch_decode.3
+man/man3/launch_target.3
+man/man3/led_intensity.3
+man/man3/link_image.3
+man/man3/list_audio_inputs.3
+man/man3/list_target_tags.3
+man/man3/list_targets.3
+man/man3/load_asample.3
+man/man3/load_image.3
+man/man3/load_image_asynch.3
+man/man3/load_movie.3
+man/man3/map_video_display.3
+man/man3/match_keys.3
+man/man3/max_current_image_order.3
+man/man3/mesh_shader.3
+man/man3/message_target.3
+man/man3/move3d_model.3
+man/man3/move_cursor.3
+man/man3/move_image.3
+man/man3/net_accept.3
+man/man3/net_authenticate.3
+man/man3/net_disconnect.3
+man/man3/net_discover.3
+man/man3/net_listen.3
+man/man3/net_open.3
+man/man3/net_push.3
+man/man3/net_push_srv.3
+man/man3/new_3dmodel.3
+man/man3/nudge_cursor.3
+man/man3/nudge_image.3
+man/man3/null_surface.3
+man/man3/open_nonblock.3
+man/man3/open_rawresource.3
+man/man3/order_image.3
+man/man3/orient3d_model.3
+man/man3/pacify_target.3
+man/man3/persist_image.3
+man/man3/pick_items.3
+man/man3/play_audio.3
+man/man3/pop_video_context.3
+man/man3/push_video_context.3
+man/man3/random_surface.3
+man/man3/raw_surface.3
+man/man3/read_rawresource.3
+man/man3/recordtarget_gain.3
+man/man3/render_text.3
+man/man3/rendertarget_attach.3
+man/man3/rendertarget_detach.3
+man/man3/rendertarget_forceupdate.3
+man/man3/rendertarget_id.3
+man/man3/rendertarget_noclear.3
+man/man3/rendertarget_range.3
+man/man3/rendertarget_reconfigure.3
+man/man3/rendertarget_vids.3
+man/man3/resample_image.3
+man/man3/reset_image_transform.3
+man/man3/reset_target.3
+man/man3/resize_cursor.3
+man/man3/resize_image.3
+man/man3/resize_video_canvas.3
+man/man3/resource.3
+man/man3/restore_target.3
+man/man3/resume_target.3
+man/man3/rotate3d_model.3
+man/man3/rotate_image.3
+man/man3/save_screenshot.3
+man/man3/scale3d_model.3
+man/man3/scale_3dvertices.3
+man/man3/scale_image.3
+man/man3/set_context_attachment.3
+man/man3/set_image_as_frame.3
+man/man3/set_led.3
+man/man3/set_led_rgb.3
+man/man3/shader_ugroup.3
+man/man3/shader_uniform.3
+man/man3/show_image.3
+man/man3/shutdown.3
+man/man3/snapshot_target.3
+man/man3/step3d_model.3
+man/man3/stepframe_target.3
+man/man3/store_key.3
+man/man3/storepop_video_context.3
+man/man3/storepush_video_context.3
+man/man3/strafe3d_model.3
+man/man3/subsystem_reset.3
+man/man3/suspend_target.3
+man/man3/switch_default_imageproc.3
+man/man3/switch_default_scalemode.3
+man/man3/switch_default_texfilter.3
+man/man3/switch_default_texmode.3
+man/man3/swizzle_model.3
+man/man3/system_collapse.3
+man/man3/system_context_size.3
+man/man3/system_defaultfont.3
+man/man3/system_identstr.3
+man/man3/system_load.3
+man/man3/system_snapshot.3
+man/man3/tag_image_transform.3
+man/man3/target_alloc.3
+man/man3/target_configurations.3
+man/man3/target_coreopt.3
+man/man3/target_devicehint.3
+man/man3/target_displayhint.3
+man/man3/target_flags.3
+man/man3/target_fonthint.3
+man/man3/target_framemode.3
+man/man3/target_graphmode.3
+man/man3/target_input.3
+man/man3/target_parent.3
+man/man3/target_portconfig.3
+man/man3/target_seek.3
+man/man3/target_synchronous.3
+man/man3/target_updatehandler.3
+man/man3/target_verbose.3
+man/man3/text_dimensions.3
+man/man3/toggle_mouse_grab.3
+man/man3/transfer_image_transform.3
+man/man3/utf8kind.3
+man/man3/valid_vid.3
+man/man3/video_3dorder.3
+man/man3/video_display_state.3
+man/man3/video_displaydescr.3
+man/man3/video_displaygamma.3
+man/man3/video_displaymodes.3
+man/man3/video_synchronization.3
+man/man3/vr_map_limb.3
+man/man3/vr_metadata.3
+man/man3/vr_setup.3
+man/man3/warning.3
+man/man3/write_rawresource.3
+man/man3/zap_resource.3
+share/arcan/appl/welcome/welcome.lua
+share/arcan/resources/fonts/default.ttf
+share/arcan/resources/images/icons/arcanicon.png
+share/arcan/scripts/builtin/debug.lua
+share/arcan/scripts/builtin/hook/input_playback.lua
+share/arcan/scripts/builtin/hook/input_record.lua
+share/arcan/scripts/builtin/keyboard.lua
+share/arcan/scripts/builtin/mouse.lua
diff --git a/arcan/TODO b/arcan/TODO
new file mode 100644
index 0000000000..fb118697ae
--- /dev/null
+++ b/arcan/TODO
@@ -0,0 +1 @@
+- Doesn't actually run in my test setup!
diff --git a/arcan/distinfo b/arcan/distinfo
new file mode 100644
index 0000000000..e332b0714c
--- /dev/null
+++ b/arcan/distinfo
@@ -0,0 +1,14 @@
+$NetBSD$
+
+SHA1 (arcan/0.5.5.2.tar.gz) = 16e9f1eeb4b6d4c9266cf56ed149c79afe695422
+RMD160 (arcan/0.5.5.2.tar.gz) = 255986c9d5c19f241b1d056da9f1289286dada2e
+SHA512 (arcan/0.5.5.2.tar.gz) = 482ade8e02cbc31d57dc08120f48ed0eeec830dd7ffb2b6e8cb727083140015762f114f1d7a41b7f7cbbfc959c7145bb2e5642809af6ad606aa3215aa53d5349
+Size (arcan/0.5.5.2.tar.gz) = 10481194 bytes
+SHA1 (patch-src_frameserver_avfeed_CMakeLists.txt) = 40a3213f7b97257f8601c3775084551566faed73
+SHA1 (patch-src_frameserver_terminal_default_CMakeLists.txt) = 96bb15a2e9a66e8d661437d0487824fde07dcd3d
+SHA1 (patch-src_frameserver_terminal_default_tsm_shl-pty.c) = 1dff9cc7d83c0db4772a22d810e98f663961bf9e
+SHA1 (patch-src_platform_cmake_CMakeLists.BSD) = e000c19441ea30627d4a41b4753f2281d834890a
+SHA1 (patch-src_platform_cmake_modules_FindGBMKMS.cmake) = eedb39e5a3ac1120ce5fa1fa6416017c98afd6f2
+SHA1 (patch-src_platform_cmake_modules_FindOpenGL.cmake) = 4863462a8342306e3c4392404f11394b577db178
+SHA1 (patch-src_platform_posix_psep__open.c) = 96d7b761bfb9078013273164acd9debcd9bb9e6b
+SHA1 (patch-src_platform_posix_random.c) = c43219b53d2fabe88dc23bc631a06129231d555c
diff --git a/arcan/patches/patch-src_frameserver_avfeed_CMakeLists.txt b/arcan/patches/patch-src_frameserver_avfeed_CMakeLists.txt
new file mode 100644
index 0000000000..557708462b
--- /dev/null
+++ b/arcan/patches/patch-src_frameserver_avfeed_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Link with -lrt which is needed for shm_open
+XXX unclear why only netbsd needs it
+
+--- src/frameserver/avfeed/CMakeLists.txt.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/frameserver/avfeed/CMakeLists.txt
+@@ -17,6 +17,6 @@ if (AVFEED_SOURCES)
+ 		${AVFEED_DEFS}
+ 	)
+ 	target_include_directories(afsrv_avfeed PRIVATE ${FSRV_ROOT} ${AVFEED_INCLUDE_DIRS})
+-	target_link_libraries(afsrv_avfeed ${STDLIB} arcan_shmif_int ${AVFEED_LIBS})
++	target_link_libraries(afsrv_avfeed ${STDLIB} arcan_shmif_int ${AVFEED_LIBS} rt)
+ 	install(TARGETS afsrv_avfeed DESTINATION bin)
+ endif()
diff --git a/arcan/patches/patch-src_frameserver_terminal_default_CMakeLists.txt b/arcan/patches/patch-src_frameserver_terminal_default_CMakeLists.txt
new file mode 100644
index 0000000000..58e137adf4
--- /dev/null
+++ b/arcan/patches/patch-src_frameserver_terminal_default_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Link against -lrt for shm_open
+XXX unclear why only netbsd needs this
+
+--- src/frameserver/terminal/default/CMakeLists.txt.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/frameserver/terminal/default/CMakeLists.txt
+@@ -8,6 +8,7 @@ SET(TERMINAL_SOURCES
+ )
+ 
+ SET(TERMINAL_LIBS
++	rt
+ 	util
+ 	arcan_tui
+ 	PARENT_SCOPE
diff --git a/arcan/patches/patch-src_frameserver_terminal_default_tsm_shl-pty.c b/arcan/patches/patch-src_frameserver_terminal_default_tsm_shl-pty.c
new file mode 100644
index 0000000000..d7a21d05b3
--- /dev/null
+++ b/arcan/patches/patch-src_frameserver_terminal_default_tsm_shl-pty.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Treat NetBSD as OpenBSD.
+
+--- src/frameserver/terminal/default/tsm/shl-pty.c.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/frameserver/terminal/default/tsm/shl-pty.c
+@@ -15,7 +15,7 @@
+ 
+ #ifdef __APPLE__
+ #include <util.h>
+-#elif defined(__OpenBSD__)
++#elif defined(__OpenBSD__) || defined(__NetBSD__)
+ #ifndef IUTF8
+ #define IUTF8 0x00004000
+ #endif
diff --git a/arcan/patches/patch-src_platform_cmake_CMakeLists.BSD b/arcan/patches/patch-src_platform_cmake_CMakeLists.BSD
new file mode 100644
index 0000000000..1f3d1f1e2d
--- /dev/null
+++ b/arcan/patches/patch-src_platform_cmake_CMakeLists.BSD
@@ -0,0 +1,29 @@
+$NetBSD$
+
+Don't require libiconv to be a separate library.
+(Its in libc in netbsd)
+
+--- src/platform/cmake/CMakeLists.BSD.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/platform/cmake/CMakeLists.BSD
+@@ -48,7 +48,7 @@ list(APPEND ARCAN_PLATFORM
+ set(LWA_PLATFORM ${ARCAN_PLATFORM})
+ 
+ # then the variant specific changes
+-if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
++if (${CMAKE_SYSTEM_NAME} MATCHES "(OpenBSD|NetBSD)")
+ # force these options here for now
+ 	set(ENABLE_LWA OFF)
+ 
+@@ -100,8 +100,10 @@ add_definitions(
+ 	${BSD_VARIANT_DEFINITIONS}
+ )
+ 
+-find_library(ICONV NAMES iconv REQUIRED)
+-LIST(APPEND ARCAN_LIBRARIES ${ICONV})
++find_library(ICONV NAMES iconv)
++if(ICONV)
++	LIST(APPEND ARCAN_LIBRARIES ${ICONV})
++endif()
+ 
+ set_property(SOURCE platform/posix/fdpassing.c
+ 	APPEND PROPERTY COMPILE_FLAGS -w)
diff --git a/arcan/patches/patch-src_platform_cmake_modules_FindGBMKMS.cmake b/arcan/patches/patch-src_platform_cmake_modules_FindGBMKMS.cmake
new file mode 100644
index 0000000000..ae7a72b58f
--- /dev/null
+++ b/arcan/patches/patch-src_platform_cmake_modules_FindGBMKMS.cmake
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Tolerate /usr/X11R7
+XXX pkgconfig would be good to add, too.
+
+--- src/platform/cmake/modules/FindGBMKMS.cmake.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/platform/cmake/modules/FindGBMKMS.cmake
+@@ -9,6 +9,7 @@ find_path(DRM_INCLUDE_DIR drm.h
+     /usr/include/libdrm
+     /usr/include/drm
+     /usr/X11R6/include/libdrm
++    /usr/X11R7/include/libdrm
+ )
+ 
+ find_path(GBM_INCLUDE_DIR gbm.h
+@@ -16,12 +17,14 @@ find_path(GBM_INCLUDE_DIR gbm.h
+ 		/usr/local/include
+ 		/usr/include
+                 /usr/X11R6/include 
++		/usr/X11R7/include
+ )
+ 
+ set(GBMKMS_LIB_PATHS
+ 	/usr/local/lib
+ 	/usr/lib
+ 	/usr/X11R6/lib
++	/usr/X11R7/lib
+ )
+ 
+ find_library(GBMKMS_DRM_LIBRARY NAMES drm HINTS ${GBMKMS_LIB_PATHS} REQUIRED)
diff --git a/arcan/patches/patch-src_platform_cmake_modules_FindOpenGL.cmake b/arcan/patches/patch-src_platform_cmake_modules_FindOpenGL.cmake
new file mode 100644
index 0000000000..22b2ef1976
--- /dev/null
+++ b/arcan/patches/patch-src_platform_cmake_modules_FindOpenGL.cmake
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Tolerate /usr/X11R7/lib, too.
+XXX possibly not necessary
+
+--- src/platform/cmake/modules/FindOpenGL.cmake.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/platform/cmake/modules/FindOpenGL.cmake
+@@ -84,7 +84,7 @@ else ()
+ 			NAMES GL MesaGL OSMesa
+       PATHS /opt/graphics/OpenGL/lib
+             /usr/openwin/lib
+-            /usr/shlib /usr/X11R6/lib
++	    /usr/shlib /usr/X11R6/lib /usr/X11R7/lib
+             ${_OPENGL_LIB_PATH}
+     )
+ 
diff --git a/arcan/patches/patch-src_platform_posix_psep__open.c b/arcan/patches/patch-src_platform_posix_psep__open.c
new file mode 100644
index 0000000000..1ace9ec6ba
--- /dev/null
+++ b/arcan/patches/patch-src_platform_posix_psep__open.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Handle NetBSD like OpenBSD
+XXX might be the reason this doesn't run!
+
+--- src/platform/posix/psep_open.c.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/platform/posix/psep_open.c
+@@ -126,7 +126,7 @@ struct whitelist whitelist[] = {
+  * is needed for backlight controls as backlight resolves here */
+ 	{"/sys/devices/", -1, MODE_PREFIX},
+ 	{"/dev/tty", -1, MODE_PREFIX | MODE_TTY},
+-#elif defined(__OpenBSD__)
++#elif defined(__OpenBSD__) || defined(__NetBSD__)
+ 	{"/dev/wsmouse", -1, MODE_DEFAULT},
+ 	{"/dev/wsmouse0", -1, MODE_DEFAULT},
+ 	{"/dev/wsmouse1", -1, MODE_DEFAULT},
diff --git a/arcan/patches/patch-src_platform_posix_random.c b/arcan/patches/patch-src_platform_posix_random.c
new file mode 100644
index 0000000000..0f3c71d516
--- /dev/null
+++ b/arcan/patches/patch-src_platform_posix_random.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+NetBSD has KERN_ARND like FreeBSD, share code.
+
+--- src/platform/posix/random.c.orig	2018-12-10 23:33:36.000000000 +0000
++++ src/platform/posix/random.c
+@@ -40,7 +40,7 @@ failure:
+ 	errno = EIO;
+ 	return -1;
+ }
+-#elif __FreeBSD__
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/sysctl.h>
+ extern int __sysctl(int*, u_int, void*, size_t*, void*, size_t);
+ static int getentropy(void* buf, size_t buflen)
+@@ -66,6 +66,7 @@ out:
+ 	return 0;
+ }
+ 
++
+ #elif __OpenBSD__
+ #include <unistd.h>
+ #else


Home | Main Index | Thread Index | Old Index