Edit

IABSD.fr/ports/wayland/wayfire/Makefile

Branch :

  • Show log

    Commit

  • Author : landry
    Date : 2026-08-01 07:49:47
    Hash : ad643fd3
    Message : wayland/wayfire: update to 0.11.0, switches to wlroots 0.20. see https://wayfire.org/2026/07/24/Wayfire-0-11.html and https://github.com/WayfireWM/wayfire/releases/tag/v0.11.0

  • wayland/wayfire/Makefile
  • COMMENT =	modular and extensible wayland compositor
    
    V =		0.11.0
    GH_ACCOUNT =	WayfireWM
    
    DISTNAME =	wayfire-${V}
    
    SHARED_LIBS +=	wf-utils 0.0 # 0.0
    CATEGORIES =	wayland
    
    MAINTAINER =	Landry Breuil <landry@openbsd.org>
    # MIT
    PERMIT_PACKAGE =	Yes
    
    # git submodules when not building a release
    DIST_TUPLE +=	github ${GH_ACCOUNT} wf-utils 329c3ff01724d82947f61c45332f75d3534e8454 subprojects/wf-utils
    DIST_TUPLE +=	github ${GH_ACCOUNT} wf-touch d7ae5e7fa4de9536e2de2af74f168f981eb8a77a subprojects/wf-touch
    DIST_TUPLE +=	github ${GH_ACCOUNT} wf-json 70039e13cdeaebd8ec498ed30bf5ab91c2e313ec subprojects/wf-json
    
    SITES =		https://github.com/WayfireWM/wayfire/releases/download/v${V}/
    EXTRACT_SUFX =	.tar.xz
    
    HOMEPAGE =	https://wayfire.org
    
    # C++
    COMPILER =	base-clang ports-gcc
    
    MODULES =	devel/meson wayland/wlroots
    MODWLROOTS_VERSION=	0.20
    BUILD_DEPENDS =	graphics/glm \
    		devel/cmake/core \
    		devel/gettext,-tools \
    		wayland/wayland-protocols
    
    # include/wayfire/touch/touch.hpp needs glm/vec2.hpp
    # include/wayfire/opengl.hpp needs glm/vec4.hpp
    RUN_DEPENDS +=	graphics/glm
    
    CONFIGURE_ARGS =-Duse_system_wfconfig=enabled \
    		-Duse_system_wlroots=enabled \
    		-Denable_openmp=false \
    		-Dtests=disabled
    
    LIB_DEPENDS =	devel/pango \
    		devel/libinotify \
    		devel/yyjson \
    		graphics/jpeg \
    		wayland/libevdev-openbsd \
    		wayland/libinput-openbsd \
    		wayland/wayland \
    		wayland/wf-config>=0.11 \
    		x11/xkbcommon
    
    WANTLIB += ${COMPILER_LIBCXX} EGL GLESv2 c cairo evdev execinfo
    WANTLIB += gobject-2.0 input jpeg m pango-1.0 pangocairo-1.0 pixman-1
    WANTLIB += png wayland-client wayland-server wf-config xcb xkbcommon
    WANTLIB += udev yyjson
    WANTLIB += lib/inotify/inotify
    
    # hack for gbm getting -I/usr/local/lib and failing build in wf-touch ?
    CONFIGURE_ENV +=	CPPFLAGS=-I/usr/local/include
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wayfire/
    	${INSTALL_DATA} ${WRKSRC}/wayfire.ini ${PREFIX}/share/examples/wayfire/
    	${INSTALL_SCRIPT} ${FILESDIR}/startwayfire.sh ${PREFIX}/bin
    
    .include <bsd.port.mk>