From nobody Mon Nov 07 17:58:19 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N5f9766FQz4hX1D; Mon, 7 Nov 2022 17:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5f9757Tpz4S1F; Mon, 7 Nov 2022 17:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667843899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uiS2jMqOc6ttTRvJJdpysUeZAP2ijLEOuv8Blvre8PQ=; b=xm4szFVuxVmoMUMJR5q7GnXI0RRN5Z5HVizQQH+OlpNHOlTqpNSBAcIsY+et/sVDZK/ToK 3jgBsEmWbD2/b9fScLGoWcXy5QBRgJ7kFTkqHDTBsaYotQvoUPbZB18PTMmJpy8Q2j9L1Z QH9ddOLZXahlj08T22l0MZeFnaOG5f0YCC58R4+Op8yKzzaSUYkdk7g9lVV5+NEXdtIMFv 6F/pzw3pQ7ki3nd5oBAy86WJIyZtt3uBd/sBylcCf4QHRa6TdFkWyX5ltg0EqmVe+tR+OR PG37ZtRNGfBRPfdXzKizyHwzdT4vxJMRAwUiMlZNN+Gz/LWExU3HuDf/soy5FQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5f974DMfz19KS; Mon, 7 Nov 2022 17:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A7HwJ5m050884; Mon, 7 Nov 2022 17:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A7HwJHt050883; Mon, 7 Nov 2022 17:58:19 GMT (envelope-from git) Date: Mon, 7 Nov 2022 17:58:19 GMT Message-Id: <202211071758.2A7HwJHt050883@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: cfe9880ad43f - main - x11-wm/hyprland-devel: add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cfe9880ad43f6392345ef62f5528b268e523c45e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667843899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uiS2jMqOc6ttTRvJJdpysUeZAP2ijLEOuv8Blvre8PQ=; b=qHhngbgD4R3rriuiLKSouuwzVH57tshJcr4TrS+vCMJt59h3terVj9LUwBgixc98qYR7rN SDqTIY9DapJwjHTnkPf19vreYdI8MTLES1t0cGIB1ovzMIkIKSG80JiI96CKJUtwEe9/0J PLtwqM/p+MMO0+l47ugdHMRnHZrJLO6xYhMdZJ1x6+Opm5G2GFDKx3iU8ksdoiJ3LbWCht D4p1/+MdSbCGfS8XyOiUvtbeAH+mpJscLliS3dWTBqDABNFzfZqx+SQRm2dus2UCn7oO0z AlF7ARs9TVTCeaKeNxfal/ssLqTeCpflFOdcAMcrgDpwE6GGMFmWj7f/ZgAHSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667843899; a=rsa-sha256; cv=none; b=sA9BdcCJVdAZiL/40/tbNpOOHZtQGhKaD1tnzF3fvxwmX8Poa7Rwydivq64sz1EucXZ3Ai eRb0Vo0np7Bh5C8ficY4HxzcqUvEhBIPoNOzYIEGXkD52U1Fo7gYkSF5BalVJc1Wq/3Wta MVmLucH8DkN+jXxf+ndYE2ok3txk6yV/xU5CHenJWZmLiFnSKZcwURuoQmzDVgMlKc7tGC 6xzq/+s9/0okKv1ynABRm/f6LJWLfIIqbVftykmtIGVXCcPecFFPnZapqY8F/iRVI5MtID h61ppM9CRP8UFv0vsK2i2YkQ0rKI1W/gHewp+7YH5isSDTrvWNXTzavV5naL9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=cfe9880ad43f6392345ef62f5528b268e523c45e commit cfe9880ad43f6392345ef62f5528b268e523c45e Author: Jan Beich AuthorDate: 2022-11-07 12:16:30 +0000 Commit: Jan Beich CommitDate: 2022-11-07 17:58:09 +0000 x11-wm/hyprland-devel: add new port Hyprland is a dynamic tiling Wayland compositor based on wlroots that doesn't sacrifice on its looks. It supports multiple layouts, fancy effects, has a very flexible IPC model allowing for a lot of customization, and more. https://hyprland.org/ --- x11-wm/Makefile | 1 + x11-wm/hyprland-devel/Makefile | 54 ++++++++++++++++++++++++ x11-wm/hyprland-devel/distinfo | 5 +++ x11-wm/hyprland-devel/files/patch-system-wlroots | 26 ++++++++++++ x11-wm/hyprland-devel/pkg-descr | 5 +++ x11-wm/hyprland-devel/pkg-plist | 9 ++++ 6 files changed, 100 insertions(+) diff --git a/x11-wm/Makefile b/x11-wm/Makefile index 282b2c3ef57e..1a7c263cb77b 100644 --- a/x11-wm/Makefile +++ b/x11-wm/Makefile @@ -45,6 +45,7 @@ SUBDIR += herbstluftwm SUBDIR += hikari SUBDIR += hs-xmonad + SUBDIR += hyprland-devel SUBDIR += i3 SUBDIR += i3-gaps SUBDIR += icewm diff --git a/x11-wm/hyprland-devel/Makefile b/x11-wm/hyprland-devel/Makefile new file mode 100644 index 000000000000..5fd77a23dcec --- /dev/null +++ b/x11-wm/hyprland-devel/Makefile @@ -0,0 +1,54 @@ +PORTNAME= hyprland +DISTVERSIONPREFIX= v +DISTVERSION= 0.17.0beta-51 +DISTVERSIONSUFFIX= -g1a55fb4 +CATEGORIES= x11-wm wayland +PKGNAMESUFFIX= -devel + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= 74c6424a7e8b.patch:-p1 # https://github.com/hyprwm/Hyprland/pull/971 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Dynamic tiling Wayland compositor that doesn't sacrifice on its looks #' +WWW= https://hyprland.org/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ + wayland-protocols>=1.25:graphics/wayland-protocols \ + wlroots>=0.15.0.478<0.17.0:x11-toolkits/wlroots +LIB_DEPENDS= libwayland-server.so:graphics/wayland \ + libwlroots.so:x11-toolkits/wlroots \ + libinput.so:x11/libinput \ + libxkbcommon.so:x11/libxkbcommon + +USES= compiler:c++11-lib gl gnome meson pkgconfig xorg +USE_GCC= 12+:build +USE_GITHUB= yes +USE_GL= egl gl +USE_GNOME= cairo +USE_XORG= pixman +GH_ACCOUNT= hyprwm +GH_PROJECT= Hyprland +LDFLAGS+= -static-libstdc++ -static-libgcc # avoid libc++ conflict + +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 "/GIT_BRANCH/s/run_command.*/'main'/" \ + -e "/GIT_COMMIT_HASH/s/run_command.*/'${DISTVERSIONFULL}'/" \ + -e "/GIT_COMMIT_MESSAGE/s/run_command.*/''/" \ + -e "/GIT_DIRTY/s/run_command.*/'portbld'/" \ + ${WRKSRC}/meson.build +# Respect PREFIX for wallpapers + @${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \ + ${WRKSRC}/src/render/OpenGL.cpp + +.include "${.CURDIR:H:H}/x11-toolkits/wlroots-devel/override.mk" +.include diff --git a/x11-wm/hyprland-devel/distinfo b/x11-wm/hyprland-devel/distinfo new file mode 100644 index 000000000000..117af9b5125f --- /dev/null +++ b/x11-wm/hyprland-devel/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1667823390 +SHA256 (hyprwm-Hyprland-v0.17.0beta-51-g1a55fb4_GH0.tar.gz) = 044b3da4456d0533168d5690ea71e6b10dc0ce60467490c5e1d294d7e3feed6f +SIZE (hyprwm-Hyprland-v0.17.0beta-51-g1a55fb4_GH0.tar.gz) = 683730 +SHA256 (74c6424a7e8b.patch) = 6a30db3bf98d4cad1c5107ebe5b830c047d580ceabc91f7eaf738f2c82fb6ca1 +SIZE (74c6424a7e8b.patch) = 713 diff --git a/x11-wm/hyprland-devel/files/patch-system-wlroots b/x11-wm/hyprland-devel/files/patch-system-wlroots new file mode 100644 index 000000000000..aaf80e30da0c --- /dev/null +++ b/x11-wm/hyprland-devel/files/patch-system-wlroots @@ -0,0 +1,26 @@ +Allow system wlroots to reduce maintenance (wlroots has tons of options) + +--- meson.build.orig 2022-11-07 12:16:30 UTC ++++ meson.build +@@ -37,8 +37,8 @@ add_project_arguments( + ], + language: 'cpp') + +-wlroots = subproject('wlroots', default_options: ['examples=false']) +-have_xwlr = wlroots.get_variable('features').get('xwayland') ++wlroots = dependency('wlroots', version: ['>=0.16.0', '<0.17.0'], default_options: ['examples=false']) ++have_xwlr = wlroots.get_variable(pkgconfig: 'have_xwayland', internal: 'have_xwayland') == 'true' + xcb_dep = dependency('xcb', required: get_option('xwayland')) + + if get_option('xwayland').enabled() and not have_xwlr +--- src/meson.build.orig 2022-11-07 12:16:30 UTC ++++ src/meson.build +@@ -7,7 +7,7 @@ executable('Hyprland', src, + server_protos, + dependency('wayland-server'), + dependency('wayland-client'), +- wlroots.get_variable('wlroots'), ++ wlroots, + dependency('cairo'), + dependency('pango'), + dependency('pangocairo'), diff --git a/x11-wm/hyprland-devel/pkg-descr b/x11-wm/hyprland-devel/pkg-descr new file mode 100644 index 000000000000..20c74f73f889 --- /dev/null +++ b/x11-wm/hyprland-devel/pkg-descr @@ -0,0 +1,5 @@ +Hyprland is a dynamic tiling Wayland compositor based on wlroots that +doesn't sacrifice on its looks. + +It supports multiple layouts, fancy effects, has a very flexible IPC +model allowing for a lot of customization, and more. diff --git a/x11-wm/hyprland-devel/pkg-plist b/x11-wm/hyprland-devel/pkg-plist new file mode 100644 index 000000000000..3c6d77e4eefd --- /dev/null +++ b/x11-wm/hyprland-devel/pkg-plist @@ -0,0 +1,9 @@ +bin/Hyprland +bin/hyprctl +man/man1/Hyprland.1.gz +man/man1/hyprctl.1.gz +%%DATADIR%%/hyprland.conf +%%DATADIR%%/wall_2K.png +%%DATADIR%%/wall_4K.png +%%DATADIR%%/wall_8K.png +share/wayland-sessions/hyprland.desktop