summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2015-10-25 11:53:24 +0000
committerjmcneill <jmcneill@pkgsrc.org>2015-10-25 11:53:24 +0000
commit25934d46fe48526e7e13444a01c2f028a5b1c65c (patch)
treebaf612892056c4477cb0664bec390edabdf60339 /www
parent617ad81e74cb5731c9fb497344565fc5a64af597 (diff)
downloadpkgsrc-25934d46fe48526e7e13444a01c2f028a5b1c65c.tar.gz
Add a pkg option for building with gtk3 support.
Diffstat (limited to 'www')
-rw-r--r--www/midori/Makefile6
-rw-r--r--www/midori/options.mk22
2 files changed, 25 insertions, 3 deletions
diff --git a/www/midori/Makefile b/www/midori/Makefile
index 18ea26b18cf..bd3ad6fd75d 100644
--- a/www/midori/Makefile
+++ b/www/midori/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.83 2015/10/10 01:58:22 ryoon Exp $
+# $NetBSD: Makefile,v 1.84 2015/10/25 11:53:24 jmcneill Exp $
DISTNAME= midori_0.5.9_all_
PKGNAME= ${DISTNAME:S/_all_//:S/_/-/}
@@ -45,6 +45,8 @@ CONFIGURE_ENV= VALAC=${VALAC}
pre-configure:
${RM} ${WRKSRC}/extensions/history-list.vala.orig
+.include "options.mk"
+
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
@@ -54,9 +56,7 @@ pre-configure:
#.include "../../security/gnome-keyring/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../www/webkit24-gtk/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
BUILDLINK_DEPMETHOD.vala= build
.include "../../lang/vala/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/midori/options.mk b/www/midori/options.mk
new file mode 100644
index 00000000000..d5775dae113
--- /dev/null
+++ b/www/midori/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2015/10/25 11:53:24 jmcneill Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.midori
+
+PKG_OPTIONS_REQUIRED_GROUPS= gtk
+PKG_OPTIONS_GROUP.gtk= gtk2 gtk3
+
+PKG_SUGGESTED_OPTIONS= gtk2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk2)
+.include "../../www/webkit24-gtk/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mgtk3)
+CONFIGURE_ARGS+= --enable-gtk3
+CMAKE_ARGS+= -DUSE_GTK3=1
+.include "../../www/webkit24-gtk3/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.endif