pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/lxterminal lxterminal: add optional GTK3 support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe16f637286a
branches:  trunk
changeset: 376494:fe16f637286a
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Fri Apr 08 22:31:47 2022 +0000

description:
lxterminal: add optional GTK3 support

Add the option of using GTK3 as the base X11 toolkit, rather than GTK2.
(No change to default build.)

diffstat:

 x11/lxterminal/Makefile   |   6 +++---
 x11/lxterminal/options.mk |  18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 163c9d3cde10 -r fe16f637286a x11/lxterminal/Makefile
--- a/x11/lxterminal/Makefile   Fri Apr 08 21:37:17 2022 +0000
+++ b/x11/lxterminal/Makefile   Fri Apr 08 22:31:47 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2021/12/08 16:07:09 adam Exp $
+# $NetBSD: Makefile,v 1.22 2022/04/08 22:31:47 gutteridge Exp $
 
 DISTNAME=      lxterminal-0.4.0
 PKGREVISION=   1
@@ -16,8 +16,8 @@
 
 LDFLAGS.SunOS+=        -lsocket
 
+.include "options.mk"
+
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/vte/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 163c9d3cde10 -r fe16f637286a x11/lxterminal/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/lxterminal/options.mk Fri Apr 08 22:31:47 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2022/04/08 22:31:47 gutteridge Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.lxterminal
+PKG_OPTIONS_REQUIRED_GROUPS+=  toolkit
+PKG_OPTIONS_GROUP.toolkit=     gtk2 gtk3
+PKG_SUGGESTED_OPTIONS=         gtk2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk3)
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/vte029/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-gtk3
+.else
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/vte/buildlink3.mk"
+# No CONFIGURE_ARGS needed, it's the default
+.endif



Home | Main Index | Thread Index | Old Index