680de7db8c
$ wayfire ld-elf.so.1: Shared object "libwf-utils.so.0" not found, required by "wayfire" ld-elf.so.1: Shared object "libwf-utils.so.0" not found, required by "libwindow-rules.so"
79 lines
2.4 KiB
Makefile
79 lines
2.4 KiB
Makefile
PORTNAME= wayfire
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.8.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-wm wayland
|
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
PATCHFILES+= dd479c06bf84.patch:-p1 # https://github.com/WayfireWM/wayfire/issues/599
|
|
PATCHFILES+= 564b75a45d7c.patch:-p1 # https://github.com/WayfireWM/wayfire/pull/1943
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= 3D Wayland compositor
|
|
WWW= https://wayfire.org/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \
|
|
nlohmann-json>0:devel/nlohmann-json \
|
|
wf-config>=0.8.0<0.9.0:devel/wf-config \
|
|
${LOCALBASE}/include/xf86drmMode.h:graphics/libdrm \
|
|
wayland-protocols>=1.12:graphics/wayland-protocols \
|
|
glm>=0.9.8:math/glm \
|
|
wlroots>=0.16.0<0.17.0:x11-toolkits/wlroots
|
|
LIB_DEPENDS= libevdev.so:devel/libevdev \
|
|
libinotify.so:devel/libinotify \
|
|
libwf-config.so:devel/wf-config \
|
|
libpng.so:graphics/png \
|
|
libwayland-server.so:graphics/wayland \
|
|
libwlroots.so:x11-toolkits/wlroots \
|
|
libinput.so:x11/libinput \
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
TEST_DEPENDS= doctest>0:devel/doctest
|
|
|
|
USES= compiler:c++17-lang gl gnome jpeg meson pkgconfig xorg
|
|
USE_GITHUB= yes
|
|
USE_GL= egl glesv2
|
|
USE_GNOME= cairo pango
|
|
USE_XORG= pixman
|
|
GH_ACCOUNT= WayfireWM
|
|
GH_TUPLE= WayfireWM:wf-touch:8974eb0:wftouch/subprojects/wf-touch \
|
|
WayfireWM:wf-utils:15f8e16:wfutils/subprojects/wf-utils
|
|
MESON_ARGS= -Dtests=disabled \
|
|
-Dwf-touch:tests=disabled \
|
|
-Dwf-utils:default_library=static \
|
|
${NULL}
|
|
|
|
OPTIONS_DEFINE= X11
|
|
OPTIONS_DEFAULT=X11
|
|
|
|
X11_USE= XORG=xcb
|
|
X11_MESON_ENABLED= xwayland
|
|
|
|
post-patch:
|
|
# Extract (snapshot) version from the port instead of meson.build
|
|
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
|
|
-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
|
|
${WRKSRC}/meson.build
|
|
|
|
.ifdef GH_TUPLE
|
|
post-configure:
|
|
@${REINPLACE_CMD} 's/meson install/& \
|
|
--skip-subprojects/' ${BUILD_WRKSRC}/build.ninja
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
pre-test:
|
|
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
|
|
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
|
|
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=enabled"; \
|
|
${TOUCH} ${WRKDIR}/.meson_build_tests; \
|
|
fi
|
|
|
|
# Keep override.mk in sync with x11/wcm + x11/wf-shell
|
|
.include "${.CURDIR:H:H}/x11-toolkits/wlroots016/override.mk"
|
|
.include <bsd.port.mk>
|