pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libportal-gtk4



New sysutils/nautilus has a hard dependency on libportal-gtk4. We already
have libportal with gtk4/buildlink3.mk handily already present but commented
out. 

Currently

morden$ make show-deps PKG=libportal
net/deskflow
morden$

is the only libportal consumer, includes qt6-qtbase, and is obviously
happy without the gtk4.

I made a libportal-gtk4 package in the sense of


# $NetBSD$

.include "../../devel/libportal/Makefile.common"

PKGNAME=        ${DISTNAME:S/libportal/libportal-gtk4/}

COMMENT=        Flatpak portal library with gtk4 interface

DISTINFO_FILE=  ../../devel/libportal/distinfo
PATCHDIR=       ../../devel/libportal/patches
PLIST.gtk4=     yes
PLIST_SRC=      ../../devel/libportal/PLIST
MESON_ARGS+=    -Dbackend-gtk4=enabled

PKGCONFIG_OVERRIDE+=            output/meson-private/libportal-gtk4.pc


.include "../../x11/gtk4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"


to get going. This conflicts with libportal. If in the future say a
package wanting libportal-qt6 appears, then this will be messy.

Would the best thing rather be to invoke options, and add a gtk4
default on option to cater for new nautilus?

(Might be a while as nautilus also wants localsearch
  https://gitlab.gnome.org/GNOME/localsearch/-/blob/main/meson.build
which has the kitchen sink as a dependency)


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index