Add a pkg option for building with gtk3 support.

This commit is contained in:
jmcneill 2015-10-25 11:53:24 +00:00
parent 5d291fcbd8
commit 760e4769f2
2 changed files with 25 additions and 3 deletions

View file

@ -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"

22
www/midori/options.mk Normal file
View file

@ -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