diff --git a/x11-wm/phoc/Makefile b/x11-wm/phoc/Makefile index 05ca77d8ee49..083dbae31388 100644 --- a/x11-wm/phoc/Makefile +++ b/x11-wm/phoc/Makefile @@ -1,36 +1,49 @@ PORTNAME= phoc DISTVERSIONPREFIX= v DISTVERSION= 0.21.1 CATEGORIES= x11-wm wayland MAINTAINER= jbeich@FreeBSD.org COMMENT= Phone compositor WWW= https://gitlab.gnome.org/World/Phosh/phoc LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ wayland-protocols>=1.15:graphics/wayland-protocols \ wlroots>=0.15.1<0.16.0:x11-toolkits/wlroots LIB_DEPENDS= libwayland-server.so:graphics/wayland \ libwlroots.so:x11-toolkits/wlroots \ libinput.so:x11/libinput \ libxkbcommon.so:x11/libxkbcommon RUN_DEPENDS= ${LOCALBASE}/share/glib-2.0/schemas/org.gnome.mutter.gschema.xml:x11-wm/mutter +FLAVORS= default phosh + USES= compiler:c11 gl gnome meson pkgconfig python:build shebangfix xorg USE_GITLAB= yes USE_GL= glesv2 USE_GNOME= gnomedesktop3 USE_XORG= pixman xcb GL_SITE= https://gitlab.gnome.org GL_ACCOUNT= World/Phosh GL_COMMIT= 0bcb87984fc08f7417baf9aa25a1707126620a6e SHEBANG_FILES= build-aux/post_install.py CFLAGS+= -Wno-error=format-nonliteral # clang PLIST_FILES= bin/${PORTNAME} GLIB_SCHEMAS= sm.puri.phoc.gschema.xml +.if ${FLAVOR:U} == phosh +PKGNAMESUFFIX= -${FLAVOR} +COMMENT+= (with patched wlroots from PureOS) +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-private-wlroots +CONFLICTS_INSTALL= ${PORTNAME} .include "${.CURDIR}/Makefile.wlroots" +.else +COMMENT+= (with system wlroots) +CONFLICTS_INSTALL= ${PORTNAME}-phosh +.include "${.CURDIR:H:H}/x11-toolkits/wlroots015/override.mk" +.endif + .include diff --git a/x11-wm/phoc/files/patch-private-wlroots b/x11-wm/phoc/files/extra-patch-private-wlroots similarity index 100% rename from x11-wm/phoc/files/patch-private-wlroots rename to x11-wm/phoc/files/extra-patch-private-wlroots