pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import wayland/labwc
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Wed May 27 11:42:15 2026 +0200
Changeset: 6cd1e2b4ed262f70e5101513c06c8b9c577e3a03
Modified Files:
Makefile
Added Files:
labwc/DESCR
labwc/Makefile
labwc/PLIST
labwc/distinfo
labwc/files/startlabwc.sh.in
labwc/options.mk
labwc/patches/patch-docs_meson.build
Log Message:
Import wayland/labwc
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6cd1e2b4ed262f70e5101513c06c8b9c577e3a03
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
labwc/DESCR | 8 +++++
labwc/Makefile | 51 ++++++++++++++++++++++++++++++
labwc/PLIST | 60 ++++++++++++++++++++++++++++++++++++
labwc/distinfo | 6 ++++
labwc/files/startlabwc.sh.in | 17 ++++++++++
labwc/options.mk | 11 +++++++
labwc/patches/patch-docs_meson.build | 13 ++++++++
8 files changed, 167 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 5d996aafd2..10e2bead78 100644
--- a/Makefile
+++ b/Makefile
@@ -1968,6 +1968,7 @@ SUBDIR+= kvirc
SUBDIR+= kyototycoon
SUBDIR+= kyra2
SUBDIR+= l2tpd
+SUBDIR+= labwc
SUBDIR+= ladybird-git
SUBDIR+= lambertw
SUBDIR+= lander
diff --git a/labwc/DESCR b/labwc/DESCR
new file mode 100644
index 0000000000..33f94bf1f4
--- /dev/null
+++ b/labwc/DESCR
@@ -0,0 +1,8 @@
+Labwc is a wlroots-based window-stacking compositor for
+Wayland, inspired by Openbox. It is lightweight and
+independent with a focus on simply stacking windows well,
+and rendering some window decorations. It relies on clients
+for panels, screenshots, wallpapers, and so on to create
+a full desktop environment. Labwc tries to stay in keeping
+with wlroots and sway in terms of general approach
+and coding style.
diff --git a/labwc/Makefile b/labwc/Makefile
new file mode 100644
index 0000000000..354881eff5
--- /dev/null
+++ b/labwc/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.2 2026/04/18 09:31:41 kikadf Exp $
+
+DISTNAME= labwc-0.9.7
+CATEGORIES= wayland
+MASTER_SITES= ${MASTER_SITE_GITHUB:=labwc/}
+
+MAINTAINER= kikadf.01%gmail.com@localhost
+HOMEPAGE= https://labwc.github.io/
+COMMENT= Wlroots-based compositor for Wayland, inspired by Openbox
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= pkg-config
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-configure
+SUBST_MESSAGE.path= Fixing pathes
+SUBST_FILES.path+= startlabwc.sh
+SUBST_VARS.path+= PREFIX PKG_SYSCONFBASE
+
+EGDIR= ${PREFIX}/share/examples/labwc
+PKG_SYSCONFSUBDIR= xdg/labwc
+INSTALL_MAKE_FLAGS+= rcdir=${EGDIR}
+
+# Fix: [../src/main.c:94] no fonts are available
+DEPENDS+= nerd-fonts-Hack-[0-9]*:../../fonts/nerd-fonts-Hack
+
+CFLAGS+= -I${BUILDLINK_PREFIX.libepoll-shim}/include/libepoll-shim
+
+post-extract:
+ ${CP} ${FILESDIR}/startlabwc.sh.in ${WRKSRC}/startlabwc.sh
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/startlabwc.sh \
+ ${DESTDIR}${PREFIX}/bin/startlabwc
+
+.include "options.mk"
+
+.include "../../devel/meson/build.mk"
+.include "../../textproc/scdoc/tool.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/libepoll-shim/buildlink3.mk"
+.include "../../devel/libsfdo/buildlink3.mk"
+.include "../../devel/pango/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../sysutils/dbus/buildlink3.mk"
+.include "../../sysutils/seatd/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../wayland/wlroots/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/labwc/PLIST b/labwc/PLIST
new file mode 100644
index 0000000000..5227c75065
--- /dev/null
+++ b/labwc/PLIST
@@ -0,0 +1,60 @@
+@comment $NetBSD: PLIST,v 1.1 2026/04/14 10:52:51 kikadf Exp $
+bin/lab-sensible-terminal
+bin/labnag
+bin/labwc
+bin/startlabwc
+man/man1/labnag.1
+man/man1/labwc.1
+man/man5/labwc-actions.5
+man/man5/labwc-config.5
+man/man5/labwc-menu.5
+man/man5/labwc-theme.5
+share/examples/labwc/README
+share/examples/labwc/autostart
+share/examples/labwc/environment
+share/examples/labwc/menu.xml
+share/examples/labwc/rc.xml
+share/examples/labwc/rc.xml.all
+share/examples/labwc/shutdown
+share/examples/labwc/themerc
+share/icons/hicolor/scalable/apps/labwc-symbolic.svg
+share/icons/hicolor/scalable/apps/labwc.svg
+share/locale/ar/LC_MESSAGES/labwc.mo
+share/locale/ca/LC_MESSAGES/labwc.mo
+share/locale/cs/LC_MESSAGES/labwc.mo
+share/locale/da/LC_MESSAGES/labwc.mo
+share/locale/de/LC_MESSAGES/labwc.mo
+share/locale/el/LC_MESSAGES/labwc.mo
+share/locale/es/LC_MESSAGES/labwc.mo
+share/locale/et/LC_MESSAGES/labwc.mo
+share/locale/eu/LC_MESSAGES/labwc.mo
+share/locale/fa/LC_MESSAGES/labwc.mo
+share/locale/fi/LC_MESSAGES/labwc.mo
+share/locale/fr/LC_MESSAGES/labwc.mo
+share/locale/gl/LC_MESSAGES/labwc.mo
+share/locale/he/LC_MESSAGES/labwc.mo
+share/locale/hr/LC_MESSAGES/labwc.mo
+share/locale/hu/LC_MESSAGES/labwc.mo
+share/locale/id/LC_MESSAGES/labwc.mo
+share/locale/it/LC_MESSAGES/labwc.mo
+share/locale/ja/LC_MESSAGES/labwc.mo
+share/locale/ka/LC_MESSAGES/labwc.mo
+share/locale/kk/LC_MESSAGES/labwc.mo
+share/locale/ko/LC_MESSAGES/labwc.mo
+share/locale/lt/LC_MESSAGES/labwc.mo
+share/locale/ms/LC_MESSAGES/labwc.mo
+share/locale/nl/LC_MESSAGES/labwc.mo
+share/locale/pa/LC_MESSAGES/labwc.mo
+share/locale/pl/LC_MESSAGES/labwc.mo
+share/locale/pt/LC_MESSAGES/labwc.mo
+share/locale/pt_BR/LC_MESSAGES/labwc.mo
+share/locale/ru/LC_MESSAGES/labwc.mo
+share/locale/sk/LC_MESSAGES/labwc.mo
+share/locale/sv/LC_MESSAGES/labwc.mo
+share/locale/tr/LC_MESSAGES/labwc.mo
+share/locale/uk/LC_MESSAGES/labwc.mo
+share/locale/vi/LC_MESSAGES/labwc.mo
+share/locale/zh_CN/LC_MESSAGES/labwc.mo
+share/locale/zh_TW/LC_MESSAGES/labwc.mo
+share/wayland-sessions/labwc.desktop
+share/xdg-desktop-portal/labwc-portals.conf
diff --git a/labwc/distinfo b/labwc/distinfo
new file mode 100644
index 0000000000..9901e6b7a8
--- /dev/null
+++ b/labwc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.2 2026/04/18 09:31:41 kikadf Exp $
+
+BLAKE2s (labwc-0.9.7.tar.gz) = ee1dee5d646cee18196e626fb4cdc70179c18c260053ef65e5516a5fae6ff114
+SHA512 (labwc-0.9.7.tar.gz) = 299b6b46961450d60355b45d8e5565d64800abc58e2ef95d6c8f27b9665ff45712108611d4272450761c962d3943de2b73c9de55a2d1189a061eb24985ccfbe6
+Size (labwc-0.9.7.tar.gz) = 548483 bytes
+SHA1 (patch-docs_meson.build) = 0f84be326a5f0f3f6611476df344076d851236af
diff --git a/labwc/files/startlabwc.sh.in b/labwc/files/startlabwc.sh.in
new file mode 100644
index 0000000000..ca2f4993ec
--- /dev/null
+++ b/labwc/files/startlabwc.sh.in
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -eu
+
+: ${XDG_CURRENT_DESKTOP:=labwc}
+: ${XDG_RUNTIME_DIR:=/tmp/$(id -un)-runtime}
+: ${XDG_CONFIG_DIRS:=@PKG_SYSCONFBASE@/xdg}
+: ${XDG_DATA_DIRS:=@PREFIX@/share}
+: ${QT_QPA_PLATFORM:=wayland;xcb}
+
+export XDG_CURRENT_DESKTOP XDG_RUNTIME_DIR QT_QPA_PLATFORM
+export XDG_CONFIG_DIRS XDG_DATA_DIRS
+
+[ -d "${XDG_RUNTIME_DIR}" ] || mkdir -p -m 700 "${XDG_RUNTIME_DIR}"
+
+exec @PREFIX@/bin/seatd-launch \
+ @PREFIX@/bin/dbus-run-session \
+ @PREFIX@/bin/labwc "$@"
diff --git a/labwc/options.mk b/labwc/options.mk
new file mode 100644
index 0000000000..f41e75273c
--- /dev/null
+++ b/labwc/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2026/04/14 10:52:51 kikadf Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.labwc
+PKG_SUPPORTED_OPTIONS+= xwayland
+PKG_SUGGESTED_OPTIONS+= xwayland
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mxwayland)
+MESON_ARGS+= -Dxwayland=disabled
+.endif
diff --git a/labwc/patches/patch-docs_meson.build b/labwc/patches/patch-docs_meson.build
new file mode 100644
index 0000000000..ee4a9af6f1
--- /dev/null
+++ b/labwc/patches/patch-docs_meson.build
@@ -0,0 +1,13 @@
+$NetBSD: patch-docs_meson.build,v 1.1 2026/04/14 10:52:51 kikadf Exp $
+
+* Install config files to examples
+
+--- docs/meson.build.orig 2025-09-19 13:20:08.642600567 +0000
++++ docs/meson.build
+@@ -35,5 +35,5 @@ install_data(
+ 'rc.xml',
+ 'rc.xml.all'
+ ],
+- install_dir: get_option('datadir') / 'doc' / meson.project_name()
++ install_dir: get_option('datadir') / 'examples' / meson.project_name()
+ )
Home |
Main Index |
Thread Index |
Old Index