diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index ec65532eed9e..0da1553ee8a9 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -1,241 +1,242 @@ COMMENT = X11 toolkits SUBDIR += SoXt SUBDIR += Xaw3d SUBDIR += Xmt SUBDIR += amtk SUBDIR += blt SUBDIR += bwidget SUBDIR += color-widgets-qt5 SUBDIR += copperspice SUBDIR += ctk SUBDIR += fltk SUBDIR += fox14 SUBDIR += fox16 SUBDIR += fox17 SUBDIR += fpc-gtk2 SUBDIR += fpc-xforms SUBDIR += fxscintilla SUBDIR += gdl SUBDIR += girara SUBDIR += gnocl SUBDIR += gnome-pty-helper SUBDIR += gnustep-back SUBDIR += gnustep-gui SUBDIR += granite SUBDIR += granite7 SUBDIR += gstreamer1-plugins-gtk SUBDIR += gstreamer1-plugins-pango SUBDIR += gtk-layer-shell SUBDIR += gtk-sharp-beans SUBDIR += gtk-sharp20 SUBDIR += gtk-sharp30 SUBDIR += gtk20 SUBDIR += gtk30 SUBDIR += gtk40 SUBDIR += gtkd SUBDIR += gtkdatabox SUBDIR += gtkextra SUBDIR += gtkglarea2 SUBDIR += gtkglext SUBDIR += gtkglextmm SUBDIR += gtkimageview SUBDIR += gtkmathview SUBDIR += gtkmm24 SUBDIR += gtkmm30 SUBDIR += gtksourceview2 SUBDIR += gtksourceview3 SUBDIR += gtksourceview4 SUBDIR += gtksourceview5 SUBDIR += gtksourceviewmm3 SUBDIR += guile-gnome-platform SUBDIR += irrlicht SUBDIR += itk SUBDIR += iwidgets SUBDIR += kf5-attica SUBDIR += kf5-kcompletion SUBDIR += kf5-kconfigwidgets SUBDIR += kf5-kdesignerplugin SUBDIR += kf5-kguiaddons SUBDIR += kf5-kirigami2 SUBDIR += kf5-kitemviews SUBDIR += kf5-kjobwidgets SUBDIR += kf5-ktextwidgets SUBDIR += kf5-kwidgetsaddons SUBDIR += kf5-kxmlgui SUBDIR += kproperty SUBDIR += lesstif SUBDIR += libXaw SUBDIR += libXmu SUBDIR += libXt SUBDIR += libadwaita SUBDIR += libdazzle SUBDIR += libdecor SUBDIR += libgdiplus SUBDIR += libhandy SUBDIR += libhandy0 SUBDIR += libsexy SUBDIR += libshumate SUBDIR += libunique3 SUBDIR += libwnck SUBDIR += libwnck3 SUBDIR += libxaw3dxft SUBDIR += linux-c7-gtk2 SUBDIR += linux-c7-gtk3 SUBDIR += linux-c7-openmotif SUBDIR += linux-c7-pango SUBDIR += linux-c7-qt-x11 SUBDIR += linux-c7-tk85 SUBDIR += movingmotif SUBDIR += mowitz SUBDIR += mygui SUBDIR += mygui-dummy SUBDIR += mygui-ogre SUBDIR += mygui-opengl SUBDIR += nanogui SUBDIR += neXtaw SUBDIR += ntk SUBDIR += nuklear SUBDIR += ocaml-lablgtk2 SUBDIR += ocaml-labltk SUBDIR += open-motif SUBDIR += open-motif-devel SUBDIR += osm-gps-map SUBDIR += otk SUBDIR += p5-Alien-wxWidgets SUBDIR += p5-Glade2 SUBDIR += p5-Gtk2 SUBDIR += p5-Gtk2-Chmod SUBDIR += p5-Gtk2-Ex-Dialogs SUBDIR += p5-Gtk2-Ex-FormFactory SUBDIR += p5-Gtk2-Ex-PodViewer SUBDIR += p5-Gtk2-Ex-Simple-List SUBDIR += p5-Gtk2-Ex-Utils SUBDIR += p5-Gtk2-GladeXML SUBDIR += p5-Gtk2-ImageView SUBDIR += p5-Gtk2-PathButtonBar SUBDIR += p5-Gtk2-TrayIcon SUBDIR += p5-Gtk3 SUBDIR += p5-Gtk3-ImageView SUBDIR += p5-Gtk3-SimpleList SUBDIR += p5-Pango SUBDIR += p5-Prima SUBDIR += p5-Tk SUBDIR += p5-Tk-Action SUBDIR += p5-Tk-Autoscroll SUBDIR += p5-Tk-ColourChooser SUBDIR += p5-Tk-Contrib SUBDIR += p5-Tk-CursorControl SUBDIR += p5-Tk-DKW SUBDIR += p5-Tk-Date SUBDIR += p5-Tk-DynaTabFrame SUBDIR += p5-Tk-Enscript SUBDIR += p5-Tk-FileDialog SUBDIR += p5-Tk-FontDialog SUBDIR += p5-Tk-GBARR SUBDIR += p5-Tk-Getopt SUBDIR += p5-Tk-HistEntry SUBDIR += p5-Tk-JComboBox SUBDIR += p5-Tk-ResizeButton SUBDIR += p5-Tk-Role-Dialog SUBDIR += p5-Tk-Role-HasWidgets SUBDIR += p5-Tk-Splashscreen SUBDIR += p5-Tk-Sugar SUBDIR += p5-Tk-TableMatrix SUBDIR += p5-Tk-ToolBar SUBDIR += p5-Tk-WaitBox SUBDIR += pango SUBDIR += pangolin SUBDIR += pangomm SUBDIR += pangox-compat SUBDIR += plasma5-kdeplasma-addons SUBDIR += plib SUBDIR += py-AnyQt SUBDIR += py-Pmw SUBDIR += py-awesometkinter SUBDIR += py-easygui SUBDIR += py-fltk SUBDIR += py-guietta SUBDIR += py-python-xlib SUBDIR += py-qt5-chart SUBDIR += py-qt6-chart SUBDIR += py-tkinter SUBDIR += py-tktreectrl SUBDIR += py-wxPython4 SUBDIR += qml-box2d SUBDIR += qt5-charts SUBDIR += qt5-datavis3d SUBDIR += qt5-declarative SUBDIR += qt5-declarative-test SUBDIR += qt5-gamepad SUBDIR += qt5-gui SUBDIR += qt5-quick3d SUBDIR += qt5-quickcontrols SUBDIR += qt5-quickcontrols2 SUBDIR += qt5-quicktimeline SUBDIR += qt5-uiplugin SUBDIR += qt5-virtualkeyboard SUBDIR += qt5-widgets SUBDIR += qt5pas SUBDIR += qt6-charts SUBDIR += qt6-datavis3d SUBDIR += qt6-declarative SUBDIR += qt6-quick3d SUBDIR += qt6-quicktimeline SUBDIR += qt6-shadertools SUBDIR += qt6-virtualkeyboard SUBDIR += qtermwidget SUBDIR += qwt5-qt5 SUBDIR += qwt6 SUBDIR += redkite SUBDIR += rep-gtk2 SUBDIR += rubygem-gdk3 SUBDIR += rubygem-gdk4 SUBDIR += rubygem-gtk2 SUBDIR += rubygem-gtk3 SUBDIR += rubygem-gtk4 SUBDIR += rubygem-gtksourceview3 SUBDIR += rubygem-gtksourceview4 SUBDIR += rubygem-pango SUBDIR += rubygem-poppler SUBDIR += rubygem-tk SUBDIR += rubygem-uh SUBDIR += rubygem-vte3 SUBDIR += scintilla SUBDIR += sdl_pango SUBDIR += shared-desktop-ontologies SUBDIR += skinlf SUBDIR += soqt SUBDIR += swt SUBDIR += tepl6 SUBDIR += termit SUBDIR += tix SUBDIR += tk-wrapper SUBDIR += tk85 SUBDIR += tk86 SUBDIR += tk87 SUBDIR += tkdnd SUBDIR += tkshape SUBDIR += tktable SUBDIR += tktray SUBDIR += tktreectrl SUBDIR += unique SUBDIR += vdk SUBDIR += viewklass SUBDIR += vte SUBDIR += vte3 SUBDIR += wlroots SUBDIR += wlroots-devel + SUBDIR += wlroots015 SUBDIR += wmapp SUBDIR += wxgtk28 SUBDIR += wxgtk28-common SUBDIR += wxgtk28-contrib SUBDIR += wxgtk28-contrib-common SUBDIR += wxgtk30 SUBDIR += wxgtk32 SUBDIR += xbae SUBDIR += xforms SUBDIR += xmhtml SUBDIR += ztoolkit .include diff --git a/x11-toolkits/wlroots015/Makefile b/x11-toolkits/wlroots015/Makefile new file mode 100644 index 000000000000..c625c7f399eb --- /dev/null +++ b/x11-toolkits/wlroots015/Makefile @@ -0,0 +1,84 @@ +PORTNAME= wlroots +DISTVERSION= 0.15.1 +DISTVERSIONSUFFIX= -g${GL_COMMIT:C/(.{12}).*/\1/} +CATEGORIES= x11-toolkits +PKGNAMESUFFIX= 015 + +PATCH_SITES+= https://github.com/swaywm/${GL_PROJECT}/commit/:github +PATCHFILES+= 7c0e2a271a4c.patch:-p1:github # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2064 +PATCHFILES+= 55a8d225cf8c.patch:-p1:github # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2064 +PATCH_SITES+= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/ +PATCHFILES+= 347b32642fb6.patch:-p1 # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3318 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Modular Wayland compositor library (deprecated 0.15.* series) +WWW= https://gitlab.freedesktop.org/wlroots/wlroots + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>=1.24:graphics/wayland-protocols +LIB_DEPENDS= libudev.so:devel/libudev-devd \ + libdrm.so:graphics/libdrm \ + libwayland-server.so:graphics/wayland \ + libseat.so:sysutils/seatd \ + libxkbcommon.so:x11/libxkbcommon + +USES= compiler:c11 gl meson pkgconfig xorg +USE_GITLAB= yes +USE_GL= gbm +USE_XORG= pixman +USE_LDCONFIG= yes +GL_SITE= https://gitlab.freedesktop.org +GL_COMMIT= 29938b74251e826f3778f6bf9c54974a30488cc1 +MESON_ARGS= -Dexamples=false -Dbackends=${BACKENDS:ts,} -Drenderers=${RENDERERS:ts,} + +.ifdef PKGNAMESUFFIX +PORTSCOUT= limit:^0\.15\. +PREFIX= ${LOCALBASE}/${PKGBASE} # avoid conflict with the default +MESON_ARGS+= -Ddatadir="${LOCALBASE}/share" +.endif + +OPTIONS_DEFINE= DRM NVIDIA OPENGL VULKAN X11 +OPTIONS_DEFAULT=DRM OPENGL VULKAN X11 +OPTIONS_SUB= yes + +DRM_DESC= KMS console support +DRM_LIB_DEPENDS= libinput.so:x11/libinput +DRM_VARS= BACKENDS+="drm libinput" + +NVIDIA_DESC= EGLStreams support for DRM backend (experimental) +NVIDIA_PATCH_SITES= https://github.com/danvd/${GL_PROJECT}-eglstreams/commit/:nvidia +NVIDIA_PATCHFILES= c0fc017207f0.patch:-p1:nvidia # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2769 +NVIDIA_IMPLIES= DRM OPENGL X11 +.if make(makesum) +.MAKEFLAGS: WITH+=NVIDIA +.endif + +OPENGL_RUN_DEPENDS= mesa-dri>0:graphics/mesa-dri +OPENGL_USE= GL=egl,glesv2 +OPENGL_VARS= RENDERERS+=gles2 + +VULKAN_DESC= Vulkan renderer +VULKAN_BUILD_DEPENDS= glslangValidator:graphics/glslang \ + vulkan-headers>0:graphics/vulkan-headers +VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader +VULKAN_RUN_DEPENDS= mesa-dri>0:graphics/mesa-dri +VULKAN_VARS= RENDERERS+=vulkan + +X11_LIB_DEPENDS= libxcb-errors.so:x11/xcb-util-errors \ + libxcb-render-util.so:x11/xcb-util-renderutil \ + libxcb-icccm.so:x11/xcb-util-wm +X11_BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ + xwayland-devel>0:x11-servers/xwayland-devel +X11_RUN_DEPENDS= xwayland-devel>0:x11-servers/xwayland-devel +X11_USE= XORG=xcb +X11_MESON_ENABLED= xwayland +X11_VARS= BACKENDS+=x11 + +post-patch: +# Extract (snapshot) version from the port instead of meson.build + @${REINPLACE_CMD} "/STR/s/meson.project_version()/'${DISTVERSIONFULL}'/" \ + ${WRKSRC}/include/wlr/meson.build + +.include diff --git a/x11-toolkits/wlroots015/distinfo b/x11-toolkits/wlroots015/distinfo new file mode 100644 index 000000000000..de04adb00a97 --- /dev/null +++ b/x11-toolkits/wlroots015/distinfo @@ -0,0 +1,11 @@ +TIMESTAMP = 1643923194 +SHA256 (wlroots-wlroots-29938b74251e826f3778f6bf9c54974a30488cc1_GL0.tar.gz) = 7d3bc1ee9851354a76632de5d0428a3b9583f43ee3e3194f7be616f404f8eae1 +SIZE (wlroots-wlroots-29938b74251e826f3778f6bf9c54974a30488cc1_GL0.tar.gz) = 566013 +SHA256 (7c0e2a271a4c.patch) = 2b92d3dde7640061ed85ab1690031f7627bebc2366e8c4da217017188ba7195e +SIZE (7c0e2a271a4c.patch) = 5729 +SHA256 (55a8d225cf8c.patch) = f9df98540fdabe35c61ed828f6d64633aab72edf0ba1c7ad0849594f10383ce7 +SIZE (55a8d225cf8c.patch) = 4209 +SHA256 (347b32642fb6.patch) = 56804ce34cd02cb3b2b11a0dbf27c2820c2c0d112f351cdaed5d160e0536d418 +SIZE (347b32642fb6.patch) = 3810 +SHA256 (c0fc017207f0.patch) = bdafef91a067cc95d9b47f5a837e400b641d9479393136818c34f5eb6b846d71 +SIZE (c0fc017207f0.patch) = 108229 diff --git a/x11-toolkits/wlroots015/override.mk b/x11-toolkits/wlroots015/override.mk new file mode 100644 index 000000000000..556e497fa9e2 --- /dev/null +++ b/x11-toolkits/wlroots015/override.mk @@ -0,0 +1,8 @@ +WLR_SUFFIX= 015 + +BUILD_DEPENDS:= ${BUILD_DEPENDS:S/wlroots/&${WLR_SUFFIX}/g} +LIB_DEPENDS:= ${LIB_DEPENDS:S/wlroots$/&${WLR_SUFFIX}/} + +USES+= localbase # -isystem +CONFIGURE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/wlroots${WLR_SUFFIX}/libdata/pkgconfig" +MAKE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/wlroots${WLR_SUFFIX}/libdata/pkgconfig" diff --git a/x11-toolkits/wlroots015/pkg-descr b/x11-toolkits/wlroots015/pkg-descr new file mode 100644 index 000000000000..6daf6a788b68 --- /dev/null +++ b/x11-toolkits/wlroots015/pkg-descr @@ -0,0 +1,28 @@ +Pluggable, composable, unopinionated modules for building a Wayland +compositor; or about 60,000 lines of code you were going to write anyway. + +- wlroots provides backends that abstract the underlying display and input + hardware, including KMS/DRM, libinput, Wayland, X11, and headless backends, + plus any custom backends you choose to write, which can all be created or + destroyed at runtime and used in concert with each other. +- wlroots provides unopinionated, mostly standalone implementations of many + Wayland interfaces, both from wayland.xml and various protocol extensions. + We also promote the standardization of portable extensions across + many compositors. +- wlroots provides several powerful, standalone, and optional tools that + implement components common to many compositors, such as the arrangement of + outputs in physical space. +- wlroots provides an Xwayland abstraction that allows you to have excellent + Xwayland support without worrying about writing your own X11 window manager + on top of writing your compositor. +- wlroots provides a renderer abstraction that simple compositors can use to + avoid writing GL code directly, but which steps out of the way when your + needs demand custom rendering code. + +wlroots implements a huge variety of Wayland compositor features and implements +them *right*, so you can focus on the features that make your compositor +unique. By using wlroots, you get high performance, excellent hardware +compatibility, broad support for many wayland interfaces, and comfortable +development tools - or any subset of these features you like, because all of +them work independently of one another and freely compose with anything you want +to implement yourself. diff --git a/x11-toolkits/wlroots015/pkg-message b/x11-toolkits/wlroots015/pkg-message new file mode 100644 index 000000000000..59db8a7fadd8 --- /dev/null +++ b/x11-toolkits/wlroots015/pkg-message @@ -0,0 +1,9 @@ +[ +{ type: install + message: <