Index: head/x11-wm/chamfer/Makefile =================================================================== --- head/x11-wm/chamfer/Makefile (revision 522981) +++ head/x11-wm/chamfer/Makefile (revision 522982) @@ -1,59 +1,62 @@ # $FreeBSD$ PORTNAME= chamfer -DISTVERSION= s20191115 -PORTREVISION= 1 +DISTVERSION= s20200112 CATEGORIES= x11-wm MAINTAINER= jbeich@FreeBSD.org COMMENT= Tiling X11 window manager with Vulkan compositor LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers \ +BUILD_DEPENDS= spirv-opt:devel/spirv-tools \ + vulkan-headers>0:devel/vulkan-headers \ glslc:graphics/shaderc \ glm>0:math/glm LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ ${PY_BOOST} \ libvulkan.so:graphics/vulkan-loader \ + libfreetype.so:print/freetype2 \ + libharfbuzz.so:print/harfbuzz \ + libfontconfig.so:x11-fonts/fontconfig \ libxcb-cursor.so:x11/xcb-util-cursor \ libxcb-keysyms.so:x11/xcb-util-keysyms \ libxcb-icccm.so:x11/xcb-util-wm RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR} USES= compiler:c++17-lang meson localbase pkgconfig python:3.3+ xorg USE_GITHUB= yes USE_XORG= xcb GH_ACCOUNT= jaelpark GH_PROJECT= ${PORTNAME}wm -GH_TAGNAME= ed8b707 +GH_TAGNAME= 78168e0 CXXFLAGS+= -Wno-narrowing post-patch: @${REINPLACE_CMD} -e 's,/usr,${PREFIX},' \ ${WRKSRC}/src/config.cpp ${WRKSRC}/src/main.cpp # XXX import('python').find_installation().dependency() # XXX https://github.com/mesonbuild/meson/issues/4788 @${REINPLACE_CMD} -e '/boost/!s/python3/python-${PYTHON_VER}/' \ -e '/boost/s/python3/python${PYTHON_SUFFIX}/' \ `if [ ${PYTHON_REL} -lt 3800 ]; then \ printf "%s %s" -e '/python.*embed/d'; \ fi` \ ${WRKSRC}/meson.build do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR}/shaders ${INSTALL_DATA} ${INSTALL_WRKSRC}/*.spv \ ${STAGEDIR}${DATADIR}/shaders ${MKDIR} ${STAGEDIR}${DATADIR}/config ${INSTALL_DATA} ${WRKSRC}/config/config.py \ ${STAGEDIR}${DATADIR}/config/config.py.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions/ ${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.desktop \ ${STAGEDIR}${PREFIX}/share/xsessions/ .include Index: head/x11-wm/chamfer/distinfo =================================================================== --- head/x11-wm/chamfer/distinfo (revision 522981) +++ head/x11-wm/chamfer/distinfo (revision 522982) @@ -1,3 +1,3 @@ -TIMESTAMP = 1573823654 -SHA256 (jaelpark-chamferwm-s20191115-ed8b707_GH0.tar.gz) = 53169c187525af8398a7a0c01a9c04d2e17cb7c102f4633fe32627715b41ea59 -SIZE (jaelpark-chamferwm-s20191115-ed8b707_GH0.tar.gz) = 119479 +TIMESTAMP = 1578781326 +SHA256 (jaelpark-chamferwm-s20200112-78168e0_GH0.tar.gz) = b493058ff022f3b31eaaf536c96cec5f8d5a73f5c8ed2b4097a654ee5b5bb7cc +SIZE (jaelpark-chamferwm-s20200112-78168e0_GH0.tar.gz) = 137316 Index: head/x11-wm/chamfer/files/patch-main.cpp =================================================================== --- head/x11-wm/chamfer/files/patch-main.cpp (revision 522981) +++ head/x11-wm/chamfer/files/patch-main.cpp (revision 522982) @@ -1,13 +1,13 @@ - Add default shader path ---- src/main.cpp.orig 2019-08-02 19:10:02 UTC +--- src/main.cpp.orig 2020-01-11 22:22:06 UTC +++ src/main.cpp -@@ -806,7 +806,7 @@ int main(sint argc, const char **pargv){ - args::ValueFlag deviceIndexOpt(group_comp,"id","GPU to use by its index. By default the first device in the list of enumerated GPUs will be used.",{"device-index"}); +@@ -817,7 +817,7 @@ int main(sint argc, const char **pargv){ args::Flag debugLayersOpt(group_comp,"debugLayers","Enable Vulkan debug layers.",{"debug-layers",'l'},false); args::Flag noScissoringOpt(group_comp,"noScissoring","Disable scissoring optimization.",{"no-scissoring"},false); + args::Flag noHostMemoryImportOpt(group_comp,"noHostMemoryImport","Disable host shared memory import.",{"no-host-memory-import"},false); - args::ValueFlagList shaderPaths(group_comp,"path","Shader lookup path. SPIR-V shader objects are identified by an '.spv' extension. Multiple paths may be specified.",{"shader-path"}); + args::ValueFlagList shaderPaths(group_comp,"path","Shader lookup path. SPIR-V shader objects are identified by an '.spv' extension. Multiple paths may be specified.",{"shader-path"},{"/usr/share/chamfer/shaders"}); try{ parser.ParseCLI(argc,pargv); Index: head/x11-wm/chamfer/files/patch-src_compositor.cpp =================================================================== --- head/x11-wm/chamfer/files/patch-src_compositor.cpp (nonexistent) +++ head/x11-wm/chamfer/files/patch-src_compositor.cpp (revision 522982) @@ -0,0 +1,15 @@ +../src/compositor.cpp:62:7: error: 'alignas' attribute cannot be applied to types + char alignas(16) pushConstantBuffer[128]; + ^ + +--- src/compositor.cpp.orig 2020-01-11 22:22:06 UTC ++++ src/compositor.cpp +@@ -59,7 +59,7 @@ bool Drawable::AssignPipeline(const Pipeline *prenderP + } + + void Drawable::BindShaderResources(const std::vector> *pVarAddrs, const VkCommandBuffer *pcommandBuffer){ +- char alignas(16) pushConstantBuffer[128]; ++ alignas(16) char pushConstantBuffer[128]; + for(uint i = 0, p = 0; i < Pipeline::SHADER_MODULE_COUNT; ++i){ + //bind descriptor sets + if(!passignedSet->p->pshaderModule[i]) Property changes on: head/x11-wm/chamfer/files/patch-src_compositor.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/chamfer/files/patch-src_compositor.h =================================================================== --- head/x11-wm/chamfer/files/patch-src_compositor.h (nonexistent) +++ head/x11-wm/chamfer/files/patch-src_compositor.h (revision 522982) @@ -0,0 +1,19 @@ +In file included from ../src/CompositorFont.cpp:5: +../src/compositor.h:75:14: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' + std::string title; + ^ +/usr/include/c++/v1/iosfwd:210:32: note: template is declared here + class _LIBCPP_TEMPLATE_VIS basic_string; + ^ + +--- src/compositor.h.orig 2020-01-11 22:22:06 UTC ++++ src/compositor.h +@@ -9,6 +9,8 @@ + #include + #include + ++#include ++ + //struct gbm_device; + + namespace Backend{ Property changes on: head/x11-wm/chamfer/files/patch-src_compositor.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/chamfer/files/patch-src_config.cpp =================================================================== --- head/x11-wm/chamfer/files/patch-src_config.cpp (nonexistent) +++ head/x11-wm/chamfer/files/patch-src_config.cpp (revision 522982) @@ -0,0 +1,15 @@ +../src/config.cpp:198:33: error: ordered comparison between pointer and zero ('const std::__1::basic_string, std::__1::allocator >::value_type *' (aka 'const char *') and 'int') + (*m)->fragmentShader.c_str() > 0?(*m)->fragmentShader.c_str():0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ + +--- src/config.cpp.orig 2020-01-11 22:22:06 UTC ++++ src/config.cpp +@@ -195,7 +195,7 @@ void ContainerInterface::UpdateShaders(){ + const char *pshaderName[Compositor::Pipeline::SHADER_MODULE_COUNT] = { + (*m)->vertexShader.size() > 0?(*m)->vertexShader.c_str():0, + (*m)->geometryShader.size() > 0?(*m)->geometryShader.c_str():0, +- (*m)->fragmentShader.c_str() > 0?(*m)->fragmentShader.c_str():0 ++ (*m)->fragmentShader.size() > 0?(*m)->fragmentShader.c_str():0 + }; + pclientFrame->SetShaders(pshaderName); + Property changes on: head/x11-wm/chamfer/files/patch-src_config.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/chamfer/files/patch-src_main.cpp =================================================================== --- head/x11-wm/chamfer/files/patch-src_main.cpp (nonexistent) +++ head/x11-wm/chamfer/files/patch-src_main.cpp (revision 522982) @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2020-01-11 22:22:06 UTC ++++ src/main.cpp +@@ -159,7 +159,7 @@ class RunBackend : public Config::BackendConfig{ (publ + Config::ContainerInterface &containerInt = SetupContainer(pcreateInfo); + containerInt.OnSetupContainer(); + +- Compositor::CompositorInterface *pcompInt = dynamic_cast(pcomp); ++ Compositor::CompositorInterface *pcompInt = reinterpret_cast(pcomp); + + WManager::Container::Setup setup; + if(containerInt.floatingMode == Config::ContainerInterface::FLOAT_ALWAYS || Property changes on: head/x11-wm/chamfer/files/patch-src_main.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/chamfer/pkg-plist =================================================================== --- head/x11-wm/chamfer/pkg-plist (revision 522981) +++ head/x11-wm/chamfer/pkg-plist (revision 522982) @@ -1,10 +1,12 @@ bin/chamfer @sample %%DATADIR%%/config/config.py.sample %%DATADIR%%/shaders/default_fragment.spv %%DATADIR%%/shaders/default_geometry.spv %%DATADIR%%/shaders/default_vertex.spv %%DATADIR%%/shaders/frame_fragment.spv %%DATADIR%%/shaders/frame_geometry.spv %%DATADIR%%/shaders/frame_vertex.spv %%DATADIR%%/shaders/solid_fragment.spv +%%DATADIR%%/shaders/text_fragment.spv +%%DATADIR%%/shaders/text_vertex.spv share/xsessions/chamfer.desktop