pkgsrc-WIP-changes archive

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

gambas3-runtime: Add gtk2 and gtk3 options



Module Name:	pkgsrc-wip
Committed By:	bgermann <bastiangermann%fishpost.de@localhost>
Pushed By:	bgermann
Date:		Sat Sep 15 00:08:00 2018 +0200
Changeset:	e14238048c2b15ae32422f383b888d4b41377d38

Modified Files:
	gambas3-runtime/Makefile
	gambas3-runtime/PLIST
	gambas3-runtime/options.mk

Log Message:
gambas3-runtime: Add gtk2 and gtk3 options

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e14238048c2b15ae32422f383b888d4b41377d38

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gambas3-runtime/Makefile   |  1 +
 gambas3-runtime/PLIST      |  8 ++++----
 gambas3-runtime/options.mk | 14 +++++++++++++-
 3 files changed, 18 insertions(+), 5 deletions(-)

diffs:
diff --git a/gambas3-runtime/Makefile b/gambas3-runtime/Makefile
index 619aa85337..b89fa010e4 100644
--- a/gambas3-runtime/Makefile
+++ b/gambas3-runtime/Makefile
@@ -6,6 +6,7 @@ BUILD_DIRS=	main comp
 PKGNAME=	gambas3-runtime-${GB_VERSION}
 MAINTAINER=	bastiangermann%fishpost.de@localhost
 COMMENT=	Gambas interpreter and basic runtime
+PLIST_VARS+=	gui
 
 .include "options.mk"
 .include "../../devel/libffi/buildlink3.mk"
diff --git a/gambas3-runtime/PLIST b/gambas3-runtime/PLIST
index 71ad83bcd7..bffd25c4c1 100644
--- a/gambas3-runtime/PLIST
+++ b/gambas3-runtime/PLIST
@@ -10,8 +10,8 @@ lib/gambas3/gb.draw.la
 lib/gambas3/gb.eval.component
 lib/gambas3/gb.eval.la
 lib/gambas3/gb.geom.la
-lib/gambas3/gb.gui.base.component
-lib/gambas3/gb.gui.base.gambas
+${PLIST.gui}lib/gambas3/gb.gui.base.component
+${PLIST.gui}lib/gambas3/gb.gui.base.gambas
 lib/gambas3/gb.gui.component
 lib/gambas3/gb.gui.la
 lib/gambas3/gb.gui.opengl.component
@@ -29,8 +29,8 @@ share/gambas3/info/gb.debug.info
 share/gambas3/info/gb.debug.list
 share/gambas3/info/gb.eval.info
 share/gambas3/info/gb.eval.list
-share/gambas3/info/gb.gui.base.info
-share/gambas3/info/gb.gui.base.list
+${PLIST.gui}share/gambas3/info/gb.gui.base.info
+${PLIST.gui}share/gambas3/info/gb.gui.base.list
 share/gambas3/info/gb.gui.info
 share/gambas3/info/gb.gui.list
 share/gambas3/info/gb.gui.opengl.info
diff --git a/gambas3-runtime/options.mk b/gambas3-runtime/options.mk
index 77af767bf2..ccab134224 100644
--- a/gambas3-runtime/options.mk
+++ b/gambas3-runtime/options.mk
@@ -1,11 +1,23 @@
 # $NetBSD$
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.gambas3-runtime
-PKG_SUPPORTED_OPTIONS=	qt4
+PKG_SUPPORTED_OPTIONS=	qt4 gtk2 gtk3
+PKG_SUGGESTED_OPTIONS=	qt4
 
 .include "../../mk/bsd.options.mk"
 
+.if !empty(PKG_OPTIONS:Mgtk2)
+BUILD_DEPENDS+=	gambas3-gb-gtk-${GB_VERSION}:../../wip/gambas3-gb-gtk
+PLIST.gui=	yes
+.endif
+
+.if !empty(PKG_OPTIONS:Mgtk3)
+BUILD_DEPENDS+=	gambas3-gb-gtk3-${GB_VERSION}:../../wip/gambas3-gb-gtk3
+PLIST.gui=	yes
+.endif
+
 .if !empty(PKG_OPTIONS:Mqt4)
 BUILD_DEPENDS+=	gambas3-gb-qt4-opengl-${GB_VERSION}:../../wip/gambas3-gb-qt4-opengl
 BUILD_DEPENDS+=	gambas3-gb-qt4-webkit-${GB_VERSION}:../../wip/gambas3-gb-qt4-webkit
+PLIST.gui=	yes
 .endif


Home | Main Index | Thread Index | Old Index