mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
fe76e5da0d
- Rootful HiDPI[1] introduces non-trivial conflicts to rootless HiDPI - AUR[2] tracks Xwayland releases, so may not help with rebases - Sway should probably adopt zero scaling from Mir/KWin/Hyprland - Xwayland usage has reduced since 2020 [1] https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1197 [2] https://aur.archlinux.org/packages/xorg-xwayland-hidpi-xprop This reverts commit466f3a1eab
. This reverts commit843e295cf3
. This reverts commitdce99729d7
. PR: 278495 Approved by: manu
74 lines
2.3 KiB
Makefile
74 lines
2.3 KiB
Makefile
PORTNAME= wlroots
|
|
DISTVERSION= 0.16.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-toolkits
|
|
PKGNAMESUFFIX= 016
|
|
|
|
PATCH_SITES+= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/
|
|
PATCHFILES+= f3ba14e49133.patch:-p1 # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3850
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Modular Wayland compositor library (deprecated 0.16.* series)
|
|
WWW= https://gitlab.freedesktop.org/wlroots/wlroots
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= wayland-protocols>=1.27: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
|
|
MESON_ARGS= -Dexamples=false -Dbackends=${BACKENDS:ts,} -Drenderers=${RENDERERS:ts,}
|
|
|
|
.ifdef PKGNAMESUFFIX
|
|
PORTSCOUT= limit:^0\.16\.
|
|
PREFIX= ${LOCALBASE}/${PKGBASE} # avoid conflict with the default
|
|
MESON_ARGS+= -Ddatadir="${LOCALBASE}/share"
|
|
.endif
|
|
|
|
OPTIONS_DEFINE= DRM OPENGL VULKAN X11
|
|
OPTIONS_DEFAULT=DRM OPENGL VULKAN X11
|
|
OPTIONS_SUB= yes
|
|
|
|
DRM_DESC= KMS console support
|
|
DRM_BUILD_DEPENDS= hwdata>0:misc/hwdata
|
|
DRM_LIB_DEPENDS= libinput.so:x11/libinput
|
|
DRM_VARS= BACKENDS+="drm libinput"
|
|
|
|
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:x11-servers/xwayland
|
|
X11_RUN_DEPENDS= Xwayland:x11-servers/xwayland
|
|
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 <bsd.port.mk>
|